Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QLocalServerPrivate Class Reference

#include <qlocalserver_p.h>

Inheritance diagram for QLocalServerPrivate:
Collaboration diagram for QLocalServerPrivate:

Public Member Functions

 QLocalServerPrivate ()
void init ()
bool listen (const QString &name)
bool listen (qintptr socketDescriptor)
void closeServer ()
void waitForNewConnection (int msec, bool *timedOut)
void _q_onNewConnection ()
void setError (const QString &function)
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
void setParent_helper (QObject *)
void moveToThread_helper ()
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
QObjectList receiverList (const char *signal) const
void ensureConnectionData ()
void addConnection (int signal, Connection *c)
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
bool maybeSignalConnected (uint signalIndex) const
bool isDeclarativeSignalConnected (uint signalIdx) const
void connectNotify (const QMetaMethod &signal)
void disconnectNotify (const QMetaMethod &signal)
void reinitBindingStorageAfterThreadMove ()
virtual std::string flagsForDumping () const
virtual void writeToDebugStream (QDebug &) const
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
Public Member Functions inherited from QObjectData
 QObjectData ()=default
virtual ~QObjectData ()=0
const QMetaObjectdynamicMetaObject () const

Static Public Member Functions

static bool removeServer (const QString &name)
Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
static QObjectPrivateget (QObject *o)
static const QObjectPrivateget (const QObject *o)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static bool disconnect (const QObject *sender, int signal_index, void **slot)
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)

Public Attributes

int listenSocket
QSocketNotifiersocketNotifier
QString serverName
QString fullServerName
int maxPendingConnections
QQueue< QLocalSocket * > pendingConnections
QString errorString
QAbstractSocket::SocketError error
int listenBacklog = 50
Public Attributes inherited from QObjectPrivate
ExtraDataextraData
QAtomicPointer< QThreadDatathreadData
QAtomicPointer< ConnectionDataconnections
union { 
   QObject *   currentChildBeingDeleted 
   QAbstractDeclarativeData *   declarativeData 
}; 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
Public Attributes inherited from QObjectData
QObjectq_ptr
QObjectparent
QObjectList children
uint isWidget: 1
uint blockSig: 1
uint wasDeleted: 1
uint isDeletingChildren: 1
uint sendChildEvents: 1
uint receiveChildEvents: 1
uint isWindow: 1
uint deleteLaterCalled: 1
uint isQuickItem: 1
uint willBeWidget: 1
uint wasWidget: 1
uint receiveParentEvents: 1
uint unused: 20
QAtomicInt postedEvents
QDynamicMetaObjectDatametaObject
QBindingStorage bindingStorage

Additional Inherited Members

Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>

Detailed Description

Definition at line 40 of file qlocalserver_p.h.

Constructor & Destructor Documentation

◆ QLocalServerPrivate()

QLocalServerPrivate::QLocalServerPrivate ( )
inline

Definition at line 45 of file qlocalserver_p.h.

Member Function Documentation

◆ _q_onNewConnection()

void QLocalServerPrivate::_q_onNewConnection ( )

We have received a notification that we can read on the listen socket. Accept the new socket.

Definition at line 71 of file qlocalserver_tcp.cpp.

◆ closeServer()

void QLocalServerPrivate::closeServer ( )
See also
QLocalServer::closeServer()

Definition at line 53 of file qlocalserver_tcp.cpp.

◆ init()

void QLocalServerPrivate::init ( )

Definition at line 18 of file qlocalserver_tcp.cpp.

◆ listen() [1/2]

bool QLocalServerPrivate::listen ( const QString & name)

Definition at line 24 of file qlocalserver_tcp.cpp.

◆ listen() [2/2]

bool QLocalServerPrivate::listen ( qintptr socketDescriptor)

Definition at line 48 of file qlocalserver_tcp.cpp.

◆ removeServer()

bool QLocalServerPrivate::removeServer ( const QString & name)
static

Definition at line 85 of file qlocalserver_tcp.cpp.

◆ setError()

void QLocalServerPrivate::setError ( const QString & function)

Definition at line 305 of file qlocalserver_unix.cpp.

◆ waitForNewConnection()

void QLocalServerPrivate::waitForNewConnection ( int msec,
bool * timedOut )

Definition at line 63 of file qlocalserver_tcp.cpp.

Member Data Documentation

◆ error

QAbstractSocket::SocketError QLocalServerPrivate::error

Definition at line 94 of file qlocalserver_p.h.

◆ errorString

QString QLocalServerPrivate::errorString

Definition at line 93 of file qlocalserver_p.h.

◆ fullServerName

QString QLocalServerPrivate::fullServerName

Definition at line 90 of file qlocalserver_p.h.

◆ listenBacklog

int QLocalServerPrivate::listenBacklog = 50

Definition at line 95 of file qlocalserver_p.h.

◆ listenSocket

int QLocalServerPrivate::listenSocket

Definition at line 85 of file qlocalserver_p.h.

◆ maxPendingConnections

int QLocalServerPrivate::maxPendingConnections

Definition at line 91 of file qlocalserver_p.h.

◆ pendingConnections

QQueue<QLocalSocket*> QLocalServerPrivate::pendingConnections

Definition at line 92 of file qlocalserver_p.h.

◆ serverName

QString QLocalServerPrivate::serverName

Definition at line 89 of file qlocalserver_p.h.

◆ socketNotifier

QSocketNotifier* QLocalServerPrivate::socketNotifier

Definition at line 86 of file qlocalserver_p.h.


The documentation for this class was generated from the following files: