Qt 4.8
Classes | Macros
qnativesocketengine.cpp File Reference
#include <qabstracteventdispatcher.h>
#include <qsocketnotifier.h>
#include <qnetworkinterface.h>
#include "qnativesocketengine_p.h"
#include <private/qthread_p.h>
#include <private/qobject_p.h>
#include "qnetworkproxy.h"
#include "qabstractsocket.h"
#include "qtcpserver.h"

Go to the source code of this file.

Classes

class  QExceptionNotifier
 
class  QReadNotifier
 
class  QWriteNotifier
 

Macros

#define Q_CHECK_INVALID_SOCKETLAYER(function, returnValue)
 
#define Q_CHECK_NOT_STATE(function, checkState, returnValue)
 
#define Q_CHECK_STATE(function, checkState, returnValue)
 
#define Q_CHECK_STATES(function, state1, state2, returnValue)
 
#define Q_CHECK_TYPE(function, type, returnValue)
 
#define Q_CHECK_VALID_SOCKETLAYER(function, returnValue)
 
#define Q_TR(a)   QT_TRANSLATE_NOOP(QNativeSocketEngine, a)
 
#define Q_VOID
 

Macro Definition Documentation

◆ Q_CHECK_INVALID_SOCKETLAYER

#define Q_CHECK_INVALID_SOCKETLAYER (   function,
  returnValue 
)
Value:
do { \
if (isValid()) { \
qWarning(""#function" was called on an already initialized socket device"); \
return returnValue; \
} } while (0)

Definition at line 128 of file qnativesocketengine.cpp.

◆ Q_CHECK_NOT_STATE

#define Q_CHECK_NOT_STATE (   function,
  checkState,
  returnValue 
)
Value:
do { \
if (d->socketState == (checkState)) { \
qWarning(""#function" was called in "#checkState); \
return (returnValue); \
} } while (0)
double d
Definition: qnumeric_p.h:62

Definition at line 138 of file qnativesocketengine.cpp.

Referenced by QNativeSocketEngine::bytesAvailable(), QNativeSocketEngine::hasPendingDatagrams(), QNativeSocketEngine::waitForRead(), QNativeSocketEngine::waitForReadOrWrite(), and QNativeSocketEngine::waitForWrite().

◆ Q_CHECK_STATE

#define Q_CHECK_STATE (   function,
  checkState,
  returnValue 
)
Value:
do { \
if (d->socketState != (checkState)) { \
qWarning(""#function" was not called in "#checkState); \
return (returnValue); \
} } while (0)
double d
Definition: qnumeric_p.h:62

Definition at line 133 of file qnativesocketengine.cpp.

Referenced by QNativeSocketEngine::accept(), QNativeSocketEngine::bind(), QNativeSocketEngine::joinMulticastGroup(), QNativeSocketEngine::leaveMulticastGroup(), QNativeSocketEngine::listen(), and QNativeSocketEngine::write().

◆ Q_CHECK_STATES

#define Q_CHECK_STATES (   function,
  state1,
  state2,
  returnValue 
)
Value:
do { \
if (d->socketState != (state1) && d->socketState != (state2)) { \
qWarning(""#function" was called" \
" not in "#state1" or "#state2); \
return (returnValue); \
} } while (0)
double d
Definition: qnumeric_p.h:62

Definition at line 143 of file qnativesocketengine.cpp.

Referenced by QNativeSocketEngine::connectToHost(), and QNativeSocketEngine::read().

◆ Q_CHECK_TYPE

#define Q_CHECK_TYPE (   function,
  type,
  returnValue 
)

◆ Q_CHECK_VALID_SOCKETLAYER

#define Q_CHECK_VALID_SOCKETLAYER (   function,
  returnValue 
)

◆ Q_TR

#define Q_TR (   a)    QT_TRANSLATE_NOOP(QNativeSocketEngine, a)

Definition at line 155 of file qnativesocketengine.cpp.

◆ Q_VOID

#define Q_VOID