QtBase  v6.3.1
Classes | Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
QDBusConnectionPrivate Class Reference

#include <qdbusconnection_p.h>

Inheritance diagram for QDBusConnectionPrivate:
Inheritance graph
[legend]
Collaboration diagram for QDBusConnectionPrivate:
Collaboration graph
[legend]

Classes

struct  ArgMatchRules
 
struct  ObjectTreeNode
 
struct  SignalHook
 
struct  WatchedServiceData
 
struct  Watcher
 

Public Types

enum  ConnectionMode { InvalidMode , ServerMode , ClientMode , PeerMode }
 
enum  TreeNodeType { Object = 0x0 , VirtualObject = 0x01000000 }
 
typedef QMultiHash< qintptr, WatcherWatcherHash
 
typedef QHash< int, DBusTimeout * > TimeoutHash
 
typedef QList< QDBusMessagePendingMessageList
 
typedef QMultiHash< QString, SignalHookSignalHookHash
 
typedef QHash< QString, QDBusMetaObject * > MetaObjectHash
 
typedef QHash< QByteArray, int > MatchRefCountHash
 
typedef QList< QDBusPendingCallPrivate * > PendingCallList
 
typedef QHash< QString, WatchedServiceDataWatchedServicesHash
 

Public Slots

void setDispatchEnabled (bool enable)
 
void doDispatch ()
 
void socketRead (qintptr)
 
void socketWrite (qintptr)
 
void objectDestroyed (QObject *o)
 
void relaySignal (QObject *obj, const QMetaObject *, int signalId, const QVariantList &args)
 
bool addSignalHook (const QString &key, const SignalHook &hook)
 
bool removeSignalHook (const QString &key, const SignalHook &hook)
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void dispatchStatusChanged ()
 
void spyHooksFinished (const QDBusMessage &msg)
 
void messageNeedsSending (QDBusPendingCallPrivate *pcall, void *msg, int timeout=-1)
 
bool signalNeedsConnecting (const QString &key, const QDBusConnectionPrivate::SignalHook &hook)
 
bool signalNeedsDisconnecting (const QString &key, const QDBusConnectionPrivate::SignalHook &hook)
 
void serviceOwnerChanged (const QString &name, const QString &oldOwner, const QString &newOwner)
 
void callWithCallbackFailed (const QDBusError &error, const QDBusMessage &message)
 
void newServerConnection (QDBusConnectionPrivate *newConnection)
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 

Public Member Functions

 QDBusConnectionPrivate (QObject *parent=nullptr)
 
 ~QDBusConnectionPrivate ()
 
void createBusService ()
 
void setPeer (DBusConnection *connection, const QDBusErrorInternal &error)
 
void setConnection (DBusConnection *connection, const QDBusErrorInternal &error)
 
void setServer (QDBusServer *object, DBusServer *server, const QDBusErrorInternal &error)
 
void closeConnection ()
 
QString getNameOwner (const QString &service)
 
bool shouldWatchService (const QString &service)
 
void watchService (const QString &service, QDBusServiceWatcher::WatchMode mode, QObject *obj, const char *member)
 
void unwatchService (const QString &service, QDBusServiceWatcher::WatchMode mode, QObject *obj, const char *member)
 
bool send (const QDBusMessage &message)
 
QDBusMessage sendWithReply (const QDBusMessage &message, int mode, int timeout=-1)
 
QDBusMessage sendWithReplyLocal (const QDBusMessage &message)
 
QDBusPendingCallPrivatesendWithReplyAsync (const QDBusMessage &message, QObject *receiver, const char *returnMethod, const char *errorMethod, int timeout=-1)
 
bool connectSignal (const QString &service, const QString &path, const QString &interface, const QString &name, const QStringList &argumentMatch, const QString &signature, QObject *receiver, const char *slot)
 
bool disconnectSignal (const QString &service, const QString &path, const QString &interface, const QString &name, const QStringList &argumentMatch, const QString &signature, QObject *receiver, const char *slot)
 
bool connectSignal (const QString &service, const QString &path, const QString &interface, const QString &name, const ArgMatchRules &argumentMatch, const QString &signature, QObject *receiver, const char *slot)
 
bool disconnectSignal (const QString &service, const QString &path, const QString &interface, const QString &name, const ArgMatchRules &argumentMatch, const QString &signature, QObject *receiver, const char *slot)
 
void registerObject (const ObjectTreeNode *node)
 
void unregisterObject (const QString &path, QDBusConnection::UnregisterMode mode)
 
void connectRelay (const QString &service, const QString &path, const QString &interface, QDBusAbstractInterface *receiver, const QMetaMethod &signal)
 
void disconnectRelay (const QString &service, const QString &path, const QString &interface, QDBusAbstractInterface *receiver, const QMetaMethod &signal)
 
void registerService (const QString &serviceName)
 
void unregisterService (const QString &serviceName)
 
bool handleMessage (const QDBusMessage &msg)
 
QDBusMetaObjectfindMetaObject (const QString &service, const QString &path, const QString &interface, QDBusError &error)
 
void postEventToThread (int action, QObject *target, QEvent *event)
 
QDBusConnection::ConnectionCapabilities connectionCapabilities () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 
virtual ~QObject ()
 
virtual bool event (QEvent *event)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 
bool isWindowType () const
 
bool signalsBlocked () const noexcept
 
bool blockSignals (bool b) noexcept
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 
template<typename T >
T findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<typename T >
QList< TfindChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<typename T >
QList< TfindChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
const QObjectListchildren () const
 
void setParent (QObject *parent)
 
void installEventFilter (QObject *filterObj)
 
void removeEventFilter (QObject *obj)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 
void dumpObjectInfo () const
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Static Public Member Functions

static int findSlot (QObject *obj, const QByteArray &normalizedName, QList< QMetaType > &params)
 
static bool prepareHook (QDBusConnectionPrivate::SignalHook &hook, QString &key, const QString &service, const QString &path, const QString &interface, const QString &name, const ArgMatchRules &argMatch, QObject *receiver, const char *signal, int minMIdx, bool buildSignature)
 
static DBusHandlerResult messageFilter (DBusConnection *, DBusMessage *, void *)
 
static QDBusCallDeliveryEventprepareReply (QDBusConnectionPrivate *target, QObject *object, int idx, const QList< QMetaType > &metaTypes, const QDBusMessage &msg)
 
static void processFinishedCall (QDBusPendingCallPrivate *call)
 
static QDBusConnectionPrivated (const QDBusConnection &q)
 
static QDBusConnection q (QDBusConnectionPrivate *connection)
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
static QMetaObject::Connection ::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot)
 
static QMetaObject::Connection ::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot)
 
template<typename Func1 , typename Func2 >
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 

Public Attributes

QAtomicInt ref
 
QAtomicInt capabilities
 
QString name
 
QString baseService
 
QStringList serverConnectionNames
 
ConnectionMode mode
 
union {
   QDBusConnectionInterface *   busService
 
   QDBusServer *   serverObject
 
}; 
 
union {
   DBusConnection *   connection
 
   DBusServer *   server
 
}; 
 
WatcherHash watchers
 
TimeoutHash timeouts
 
PendingMessageList pendingMessages
 
QReadWriteLock lock
 
QDBusError lastError
 
QStringList serviceNames
 
WatchedServicesHash watchedServices
 
SignalHookHash signalHooks
 
MatchRefCountHash matchRefCounts
 
ObjectTreeNode rootNode
 
MetaObjectHash cachedMetaObjects
 
PendingCallList pendingCalls
 
bool anonymousAuthenticationAllowed
 
bool dispatchEnabled
 
bool isAuthenticated
 

Protected Member Functions

void timerEvent (QTimerEvent *e) override
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void childEvent (QChildEvent *event)
 
virtual void customEvent (QEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 

Friends

class QDBusActivateObjectEvent
 
class QDBusCallDeliveryEvent
 
class QDBusServer
 

Additional Inherited Members

- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Properties inherited from QObject
QString objectName
 the name of this object More...
 

Detailed Description

Definition at line 110 of file qdbusconnection_p.h.

Member Typedef Documentation

◆ MatchRefCountHash

Definition at line 183 of file qdbusconnection_p.h.

◆ MetaObjectHash

Definition at line 182 of file qdbusconnection_p.h.

◆ PendingCallList

Definition at line 184 of file qdbusconnection_p.h.

◆ PendingMessageList

Definition at line 179 of file qdbusconnection_p.h.

◆ SignalHookHash

Definition at line 181 of file qdbusconnection_p.h.

◆ TimeoutHash

typedef QHash<int, DBusTimeout *> QDBusConnectionPrivate::TimeoutHash

Definition at line 178 of file qdbusconnection_p.h.

◆ WatchedServicesHash

Definition at line 194 of file qdbusconnection_p.h.

◆ WatcherHash

Definition at line 177 of file qdbusconnection_p.h.

Member Enumeration Documentation

◆ ConnectionMode

Enumerator
InvalidMode 
ServerMode 
ClientMode 
PeerMode 

Definition at line 115 of file qdbusconnection_p.h.

◆ TreeNodeType

Enumerator
Object 
VirtualObject 

Definition at line 145 of file qdbusconnection_p.h.

Constructor & Destructor Documentation

◆ QDBusConnectionPrivate()

QDBusConnectionPrivate::QDBusConnectionPrivate ( QObject parent = nullptr)
explicit

Definition at line 1027 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ ~QDBusConnectionPrivate()

QDBusConnectionPrivate::~QDBusConnectionPrivate ( )

Definition at line 1071 of file qdbusintegrator.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addSignalHook

bool QDBusConnectionPrivate::addSignalHook ( const QString key,
const SignalHook hook 
)
slot

Definition at line 2253 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ callWithCallbackFailed

void QDBusConnectionPrivate::callWithCallbackFailed ( const QDBusError error,
const QDBusMessage message 
)
signal
Here is the caller graph for this function:

◆ closeConnection()

void QDBusConnectionPrivate::closeConnection ( )

Definition at line 1115 of file qdbusintegrator.cpp.

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

◆ connectionCapabilities()

QDBusConnection::ConnectionCapabilities QDBusConnectionPrivate::connectionCapabilities ( ) const
inline

Definition at line 315 of file qdbusconnection_p.h.

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

◆ connectRelay()

void QDBusConnectionPrivate::connectRelay ( const QString service,
const QString path,
const QString interface,
QDBusAbstractInterface receiver,
const QMetaMethod signal 
)

Definition at line 2450 of file qdbusintegrator.cpp.

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

◆ connectSignal() [1/2]

bool QDBusConnectionPrivate::connectSignal ( const QString service,
const QString path,
const QString interface,
const QString name,
const ArgMatchRules argumentMatch,
const QString signature,
QObject receiver,
const char *  slot 
)

Definition at line 2236 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ connectSignal() [2/2]

bool QDBusConnectionPrivate::connectSignal ( const QString service,
const QString path,
const QString interface,
const QString name,
const QStringList argumentMatch,
const QString signature,
QObject receiver,
const char *  slot 
)

Definition at line 2226 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ createBusService()

void QDBusConnectionPrivate::createBusService ( )

Definition at line 1189 of file qdbusconnection.cpp.

Here is the call graph for this function:

◆ d()

static QDBusConnectionPrivate* QDBusConnectionPrivate::d ( const QDBusConnection q)
inlinestatic

Definition at line 368 of file qdbusconnection_p.h.

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

◆ disconnectRelay()

void QDBusConnectionPrivate::disconnectRelay ( const QString service,
const QString path,
const QString interface,
QDBusAbstractInterface receiver,
const QMetaMethod signal 
)

Definition at line 2471 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ disconnectSignal() [1/2]

bool QDBusConnectionPrivate::disconnectSignal ( const QString service,
const QString path,
const QString interface,
const QString name,
const ArgMatchRules argumentMatch,
const QString signature,
QObject receiver,
const char *  slot 
)

Definition at line 2323 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ disconnectSignal() [2/2]

bool QDBusConnectionPrivate::disconnectSignal ( const QString service,
const QString path,
const QString interface,
const QString name,
const QStringList argumentMatch,
const QString signature,
QObject receiver,
const char *  slot 
)

Definition at line 2313 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ dispatchStatusChanged

void QDBusConnectionPrivate::dispatchStatusChanged ( )
signal
Here is the caller graph for this function:

◆ doDispatch

void QDBusConnectionPrivate::doDispatch ( )
slot

Definition at line 1200 of file qdbusintegrator.cpp.

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

◆ findMetaObject()

QDBusMetaObject * QDBusConnectionPrivate::findMetaObject ( const QString service,
const QString path,
const QString interface,
QDBusError error 
)

Definition at line 2582 of file qdbusintegrator.cpp.

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

◆ findSlot()

int QDBusConnectionPrivate::findSlot ( QObject obj,
const QByteArray normalizedName,
QList< QMetaType > &  params 
)
static

Definition at line 1322 of file qdbusintegrator.cpp.

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

◆ getNameOwner()

QString QDBusConnectionPrivate::getNameOwner ( const QString service)

Definition at line 2537 of file qdbusintegrator.cpp.

Here is the caller graph for this function:

◆ handleMessage()

bool QDBusConnectionPrivate::handleMessage ( const QDBusMessage msg)

Definition at line 538 of file qdbusintegrator.cpp.

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

◆ messageFilter()

static DBusHandlerResult QDBusConnectionPrivate::messageFilter ( DBusConnection ,
DBusMessage *  ,
void  
)
static

◆ messageNeedsSending

void QDBusConnectionPrivate::messageNeedsSending ( QDBusPendingCallPrivate pcall,
void msg,
int  timeout = -1 
)
signal
Here is the caller graph for this function:

◆ newServerConnection

void QDBusConnectionPrivate::newServerConnection ( QDBusConnectionPrivate newConnection)
signal

◆ objectDestroyed

void QDBusConnectionPrivate::objectDestroyed ( QObject o)
slot

Definition at line 1250 of file qdbusintegrator.cpp.

Here is the caller graph for this function:

◆ postEventToThread()

void QDBusConnectionPrivate::postEventToThread ( int  action,
QObject target,
QEvent event 
)

Definition at line 2662 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ prepareHook()

bool QDBusConnectionPrivate::prepareHook ( QDBusConnectionPrivate::SignalHook hook,
QString key,
const QString service,
const QString path,
const QString interface,
const QString name,
const ArgMatchRules argMatch,
QObject receiver,
const char *  signal,
int  minMIdx,
bool  buildSignature 
)
static

Definition at line 1337 of file qdbusintegrator.cpp.

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

◆ prepareReply()

QDBusCallDeliveryEvent * QDBusConnectionPrivate::prepareReply ( QDBusConnectionPrivate target,
QObject object,
int  idx,
const QList< QMetaType > &  metaTypes,
const QDBusMessage msg 
)
static

Definition at line 779 of file qdbusintegrator.cpp.

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

◆ processFinishedCall()

void QDBusConnectionPrivate::processFinishedCall ( QDBusPendingCallPrivate call)
static

Definition at line 1885 of file qdbusintegrator.cpp.

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

◆ q()

static QDBusConnection QDBusConnectionPrivate::q ( QDBusConnectionPrivate connection)
inlinestatic

Definition at line 369 of file qdbusconnection_p.h.

◆ registerObject()

void QDBusConnectionPrivate::registerObject ( const ObjectTreeNode node)

Definition at line 2413 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ registerService()

void QDBusConnectionPrivate::registerService ( const QString serviceName)

Definition at line 2629 of file qdbusintegrator.cpp.

◆ relaySignal

void QDBusConnectionPrivate::relaySignal ( QObject obj,
const QMetaObject mo,
int  signalId,
const QVariantList args 
)
slot

Definition at line 1266 of file qdbusintegrator.cpp.

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

◆ removeSignalHook

bool QDBusConnectionPrivate::removeSignalHook ( const QString key,
const SignalHook hook 
)
slot

Definition at line 2343 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ send()

bool QDBusConnectionPrivate::send ( const QDBusMessage message)

Definition at line 1947 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ sendWithReply()

QDBusMessage QDBusConnectionPrivate::sendWithReply ( const QDBusMessage message,
int  mode,
int  timeout = -1 
)

Definition at line 2068 of file qdbusintegrator.cpp.

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

◆ sendWithReplyAsync()

QDBusPendingCallPrivate * QDBusConnectionPrivate::sendWithReplyAsync ( const QDBusMessage message,
QObject receiver,
const char *  returnMethod,
const char *  errorMethod,
int  timeout = -1 
)

Definition at line 2132 of file qdbusintegrator.cpp.

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

◆ sendWithReplyLocal()

QDBusMessage QDBusConnectionPrivate::sendWithReplyLocal ( const QDBusMessage message)

Definition at line 2099 of file qdbusintegrator.cpp.

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

◆ serviceOwnerChanged

void QDBusConnectionPrivate::serviceOwnerChanged ( const QString name,
const QString oldOwner,
const QString newOwner 
)
signal

◆ setConnection()

void QDBusConnectionPrivate::setConnection ( DBusConnection connection,
const QDBusErrorInternal error 
)

Definition at line 1817 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ setDispatchEnabled

void QDBusConnectionPrivate::setDispatchEnabled ( bool  enable)
slot

Definition at line 769 of file qdbusintegrator.cpp.

◆ setPeer()

void QDBusConnectionPrivate::setPeer ( DBusConnection connection,
const QDBusErrorInternal error 
)

Definition at line 1756 of file qdbusintegrator.cpp.

◆ setServer()

void QDBusConnectionPrivate::setServer ( QDBusServer object,
DBusServer *  server,
const QDBusErrorInternal error 
)

Definition at line 1717 of file qdbusintegrator.cpp.

◆ shouldWatchService()

bool QDBusConnectionPrivate::shouldWatchService ( const QString service)

Definition at line 2492 of file qdbusintegrator.cpp.

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

◆ signalNeedsConnecting

bool QDBusConnectionPrivate::signalNeedsConnecting ( const QString key,
const QDBusConnectionPrivate::SignalHook hook 
)
signal
Here is the caller graph for this function:

◆ signalNeedsDisconnecting

bool QDBusConnectionPrivate::signalNeedsDisconnecting ( const QString key,
const QDBusConnectionPrivate::SignalHook hook 
)
signal
Here is the caller graph for this function:

◆ socketRead

void QDBusConnectionPrivate::socketRead ( qintptr  fd)
slot

Definition at line 1217 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ socketWrite

void QDBusConnectionPrivate::socketWrite ( qintptr  fd)
slot

Definition at line 1234 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ spyHooksFinished

void QDBusConnectionPrivate::spyHooksFinished ( const QDBusMessage msg)
signal

◆ timerEvent()

void QDBusConnectionPrivate::timerEvent ( QTimerEvent event)
overrideprotectedvirtual

This event handler can be reimplemented in a subclass to receive timer events for the object.

QTimer provides a higher-level interface to the timer functionality, and also more general information about timers. The timer event is passed in the event parameter.

See also
startTimer(), killTimer(), event()

Reimplemented from QObject.

Definition at line 1189 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ unregisterObject()

void QDBusConnectionPrivate::unregisterObject ( const QString path,
QDBusConnection::UnregisterMode  mode 
)

Definition at line 2435 of file qdbusintegrator.cpp.

Here is the call graph for this function:

◆ unregisterService()

void QDBusConnectionPrivate::unregisterService ( const QString serviceName)

Definition at line 2640 of file qdbusintegrator.cpp.

◆ unwatchService()

void QDBusConnectionPrivate::unwatchService ( const QString service,
QDBusServiceWatcher::WatchMode  mode,
QObject obj,
const char *  member 
)

Removes a watch rule set up by QDBusConnectionPrivate::watchService(). The arguments to this function must be the same as the ones for that function.

Sets up a watch rule for service service for the change described by mode mode. When the change happens, slot member in object obj will be called.

Definition at line 2530 of file qdbusintegrator.cpp.

◆ watchService()

void QDBusConnectionPrivate::watchService ( const QString service,
QDBusServiceWatcher::WatchMode  mode,
QObject obj,
const char *  member 
)

Sets up a watch rule for service service for the change described by mode mode. When the change happens, slot member in object obj will be called.

The caller should call QDBusConnectionPrivate::shouldWatchService() before calling this function to check whether the service needs to be watched at all. Failing to do so may add rules that are never activated.

Definition at line 2515 of file qdbusintegrator.cpp.

Friends And Related Function Documentation

◆ QDBusActivateObjectEvent

friend class QDBusActivateObjectEvent
friend

Definition at line 371 of file qdbusconnection_p.h.

◆ QDBusCallDeliveryEvent

friend class QDBusCallDeliveryEvent
friend

Definition at line 372 of file qdbusconnection_p.h.

◆ QDBusServer

friend class QDBusServer
friend

Definition at line 373 of file qdbusconnection_p.h.

Member Data Documentation

◆ 

union { ... }

◆ 

union { ... }

◆ anonymousAuthenticationAllowed

bool QDBusConnectionPrivate::anonymousAuthenticationAllowed

Definition at line 349 of file qdbusconnection_p.h.

◆ baseService

QString QDBusConnectionPrivate::baseService

Definition at line 320 of file qdbusconnection_p.h.

◆ busService

QDBusConnectionInterface* QDBusConnectionPrivate::busService

Definition at line 325 of file qdbusconnection_p.h.

◆ cachedMetaObjects

MetaObjectHash QDBusConnectionPrivate::cachedMetaObjects

Definition at line 346 of file qdbusconnection_p.h.

◆ capabilities

QAtomicInt QDBusConnectionPrivate::capabilities

Definition at line 314 of file qdbusconnection_p.h.

◆ connection

DBusConnection* QDBusConnectionPrivate::connection

Definition at line 330 of file qdbusconnection_p.h.

◆ dispatchEnabled

bool QDBusConnectionPrivate::dispatchEnabled

Definition at line 350 of file qdbusconnection_p.h.

◆ isAuthenticated

bool QDBusConnectionPrivate::isAuthenticated

Definition at line 351 of file qdbusconnection_p.h.

◆ lastError

QDBusError QDBusConnectionPrivate::lastError

Definition at line 339 of file qdbusconnection_p.h.

◆ lock

QReadWriteLock QDBusConnectionPrivate::lock

Definition at line 338 of file qdbusconnection_p.h.

◆ matchRefCounts

MatchRefCountHash QDBusConnectionPrivate::matchRefCounts

Definition at line 344 of file qdbusconnection_p.h.

◆ mode

ConnectionMode QDBusConnectionPrivate::mode

Definition at line 323 of file qdbusconnection_p.h.

◆ name

QString QDBusConnectionPrivate::name

Definition at line 319 of file qdbusconnection_p.h.

◆ pendingCalls

PendingCallList QDBusConnectionPrivate::pendingCalls

Definition at line 347 of file qdbusconnection_p.h.

◆ pendingMessages

PendingMessageList QDBusConnectionPrivate::pendingMessages

Definition at line 335 of file qdbusconnection_p.h.

◆ ref

QAtomicInt QDBusConnectionPrivate::ref

Definition at line 313 of file qdbusconnection_p.h.

◆ rootNode

ObjectTreeNode QDBusConnectionPrivate::rootNode

Definition at line 345 of file qdbusconnection_p.h.

◆ server

DBusServer* QDBusConnectionPrivate::server

Definition at line 331 of file qdbusconnection_p.h.

◆ serverConnectionNames

QStringList QDBusConnectionPrivate::serverConnectionNames

Definition at line 321 of file qdbusconnection_p.h.

◆ serverObject

QDBusServer* QDBusConnectionPrivate::serverObject

Definition at line 326 of file qdbusconnection_p.h.

◆ serviceNames

QStringList QDBusConnectionPrivate::serviceNames

Definition at line 341 of file qdbusconnection_p.h.

◆ signalHooks

SignalHookHash QDBusConnectionPrivate::signalHooks

Definition at line 343 of file qdbusconnection_p.h.

◆ timeouts

TimeoutHash QDBusConnectionPrivate::timeouts

Definition at line 334 of file qdbusconnection_p.h.

◆ watchedServices

WatchedServicesHash QDBusConnectionPrivate::watchedServices

Definition at line 342 of file qdbusconnection_p.h.

◆ watchers

WatcherHash QDBusConnectionPrivate::watchers

Definition at line 333 of file qdbusconnection_p.h.


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