Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
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
 
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 39 of file qlocalserver_p.h.

Constructor & Destructor Documentation

◆ QLocalServerPrivate()

QLocalServerPrivate::QLocalServerPrivate ( )
inline

Definition at line 44 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 70 of file qlocalserver_tcp.cpp.

References qWarning.

Referenced by init().

+ Here is the caller graph for this function:

◆ closeServer()

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

Definition at line 52 of file qlocalserver_tcp.cpp.

References fullServerName, QSettings::remove(), settings, and QSettings::setValue().

+ Here is the call graph for this function:

◆ init()

void QLocalServerPrivate::init ( )

Definition at line 17 of file qlocalserver_tcp.cpp.

References _q_onNewConnection(), SIGNAL, and SLOT.

+ Here is the call graph for this function:

◆ listen() [1/2]

bool QLocalServerPrivate::listen ( const QString & name)

Definition at line 23 of file qlocalserver_tcp.cpp.

References QSettings::contains(), fullServerName, listenBacklog, QHostAddress::LocalHost, qWarning, settings, and QSettings::setValue().

+ Here is the call graph for this function:

◆ listen() [2/2]

bool QLocalServerPrivate::listen ( qintptr socketDescriptor)

Definition at line 47 of file qlocalserver_tcp.cpp.

◆ removeServer()

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

Definition at line 84 of file qlocalserver_tcp.cpp.

References QSettings::contains(), QSettings::remove(), serverName, and settings.

Referenced by QLocalServer::removeServer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setError()

void QLocalServerPrivate::setError ( const QString & function)

Definition at line 304 of file qlocalserver_unix.cpp.

References QAbstractSocket::AddressInUseError, QString::arg(), error, errorString, fullServerName, QAbstractSocket::HostNotFoundError, qWarning, QAbstractSocket::SocketAccessError, and QAbstractSocket::UnknownSocketError.

+ Here is the call graph for this function:

◆ waitForNewConnection()

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

Definition at line 62 of file qlocalserver_tcp.cpp.

References QList< T >::isEmpty(), and pendingConnections.

+ Here is the call graph for this function:

Member Data Documentation

◆ error

QAbstractSocket::SocketError QLocalServerPrivate::error

Definition at line 93 of file qlocalserver_p.h.

Referenced by setError().

◆ errorString

QString QLocalServerPrivate::errorString

Definition at line 92 of file qlocalserver_p.h.

Referenced by setError().

◆ fullServerName

QString QLocalServerPrivate::fullServerName

Definition at line 89 of file qlocalserver_p.h.

Referenced by closeServer(), listen(), and setError().

◆ listenBacklog

int QLocalServerPrivate::listenBacklog = 50

Definition at line 94 of file qlocalserver_p.h.

Referenced by listen().

◆ listenSocket

int QLocalServerPrivate::listenSocket

Definition at line 84 of file qlocalserver_p.h.

◆ maxPendingConnections

int QLocalServerPrivate::maxPendingConnections

Definition at line 90 of file qlocalserver_p.h.

◆ pendingConnections

QQueue<QLocalSocket*> QLocalServerPrivate::pendingConnections

Definition at line 91 of file qlocalserver_p.h.

Referenced by waitForNewConnection().

◆ serverName

QString QLocalServerPrivate::serverName

Definition at line 88 of file qlocalserver_p.h.

Referenced by removeServer().

◆ socketNotifier

QSocketNotifier* QLocalServerPrivate::socketNotifier

Definition at line 85 of file qlocalserver_p.h.


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