Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qnativesocketengine.cpp File Reference
#include "qnativesocketengine_p_p.h"
#include <qabstracteventdispatcher.h>
#include <qsocketnotifier.h>
#include <qnetworkinterface.h>
#include <private/qthread_p.h>
#include <private/qobject_p.h>
#include "qnetworkproxy.h"
#include "qabstractsocket.h"
#include "qtcpserver.h"
#include "qsctpserver.h"
#include "moc_qnativesocketengine_p.cpp"
+ Include dependency graph for qnativesocketengine.cpp:

Go to the source code of this file.

Classes

class  QReadNotifier
 
class  QWriteNotifier
 
class  QExceptionNotifier
 

Macros

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

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 114 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)

Definition at line 124 of file qnativesocketengine.cpp.

◆ 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)

Definition at line 119 of file qnativesocketengine.cpp.

◆ 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)

Definition at line 129 of file qnativesocketengine.cpp.

◆ Q_CHECK_STATES3

#define Q_CHECK_STATES3 (   function,
  state1,
  state2,
  state3,
  returnValue 
)
Value:
do { \
if (d->socketState != (state1) && d->socketState != (state2) && d->socketState != (state3)) { \
qWarning(""#function" was called" \
" not in "#state1" or "#state2); \
return (returnValue); \
} } while (0)

Definition at line 135 of file qnativesocketengine.cpp.

◆ Q_CHECK_TYPE

#define Q_CHECK_TYPE (   function,
  type,
  returnValue 
)
Value:
do { \
if (d->socketType != (type)) { \
qWarning(#function" was called by a" \
" socket other than "#type""); \
return (returnValue); \
} } while (0)
GLenum type

Definition at line 141 of file qnativesocketengine.cpp.

◆ Q_CHECK_TYPES

#define Q_CHECK_TYPES (   function,
  type1,
  type2,
  returnValue 
)
Value:
do { \
if (d->socketType != (type1) && d->socketType != (type2)) { \
qWarning(#function" was called by a" \
" socket other than "#type1" or "#type2); \
return (returnValue); \
} } while (0)

Definition at line 147 of file qnativesocketengine.cpp.

◆ Q_CHECK_VALID_SOCKETLAYER

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

Definition at line 109 of file qnativesocketengine.cpp.

◆ Q_TR

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

Definition at line 153 of file qnativesocketengine.cpp.

◆ Q_VOID

#define Q_VOID

Definition at line 106 of file qnativesocketengine.cpp.