Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QDBusConnectionManager Class Reference

#include <qdbusconnectionmanager_p.h>

+ Inheritance diagram for QDBusConnectionManager:
+ Collaboration diagram for QDBusConnectionManager:

Classes

struct  ConnectionRequestData
 

Signals

void connectionRequested (ConnectionRequestData *)
 
void serverRequested (const QString &address, void *server)
 

Public Member Functions

 QDBusConnectionManager ()
 
 ~QDBusConnectionManager ()
 
QDBusConnectionPrivatebusConnection (QDBusConnection::BusType type)
 
QDBusConnectionPrivateconnection (const QString &name) const
 
void removeConnection (const QString &name)
 
void setConnection (const QString &name, QDBusConnectionPrivate *c)
 
QDBusConnectionPrivateconnectToBus (QDBusConnection::BusType type, const QString &name, bool suspendedDelivery)
 
QDBusConnectionPrivateconnectToBus (const QString &address, const QString &name)
 
QDBusConnectionPrivateconnectToPeer (const QString &address, const QString &name)
 

Static Public Member Functions

static QDBusConnectionManagerinstance ()
 

Public Attributes

QMutex mutex
 

Protected Member Functions

void run () override
 

Detailed Description

Definition at line 28 of file qdbusconnectionmanager_p.h.

Constructor & Destructor Documentation

◆ QDBusConnectionManager()

QDBusConnectionManager::QDBusConnectionManager ( )

Definition at line 83 of file qdbusconnection.cpp.

References Qt::BlockingQueuedConnection, connect(), connectionRequested(), moveToThread(), and serverRequested().

+ Here is the call graph for this function:

◆ ~QDBusConnectionManager()

QDBusConnectionManager::~QDBusConnectionManager ( )

Definition at line 99 of file qdbusconnection.cpp.

Member Function Documentation

◆ busConnection()

QT_BEGIN_NAMESPACE QDBusConnectionPrivate * QDBusConnectionManager::busConnection ( QDBusConnection::BusType  type)

Definition at line 42 of file qdbusconnection.cpp.

References QThread::currentThread(), Q_ASSERT, qApp, qdbus_loadLibDBus(), QStringLiteral, QDBusConnection::SessionBus, and QDBusConnection::SystemBus.

+ Here is the call graph for this function:

◆ connection()

QDBusConnectionPrivate * QDBusConnectionManager::connection ( const QString name) const

Definition at line 64 of file qdbusconnection.cpp.

References QHash< Key, T >::value().

+ Here is the call graph for this function:

◆ connectionRequested

void QDBusConnectionManager::connectionRequested ( ConnectionRequestData )
signal

Referenced by QDBusConnectionManager(), connectToBus(), connectToBus(), and connectToPeer().

+ Here is the caller graph for this function:

◆ connectToBus() [1/2]

QDBusConnectionPrivate * QDBusConnectionManager::connectToBus ( const QString address,
const QString name 
)

Definition at line 157 of file qdbusconnection.cpp.

References connectionRequested(), QDBusConnectionManager::ConnectionRequestData::ConnectToBusByAddress, and emit.

+ Here is the call graph for this function:

◆ connectToBus() [2/2]

QDBusConnectionPrivate * QDBusConnectionManager::connectToBus ( QDBusConnection::BusType  type,
const QString name,
bool  suspendedDelivery 
)

Definition at line 141 of file qdbusconnection.cpp.

References connectionRequested(), QDBusConnectionManager::ConnectionRequestData::ConnectToStandardBus, emit, and qApp.

+ Here is the call graph for this function:

◆ connectToPeer()

QDBusConnectionPrivate * QDBusConnectionManager::connectToPeer ( const QString address,
const QString name 
)

Definition at line 169 of file qdbusconnection.cpp.

References connectionRequested(), QDBusConnectionManager::ConnectionRequestData::ConnectToPeerByAddress, and emit.

+ Here is the call graph for this function:

◆ instance()

QDBusConnectionManager * QDBusConnectionManager::instance ( )
static

Definition at line 105 of file qdbusconnection.cpp.

Referenced by QDBusServer::QDBusServer(), QDBusServer::QDBusServer(), QDBusServer::~QDBusServer(), and qDBusNewConnection().

+ Here is the caller graph for this function:

◆ removeConnection()

void QDBusConnectionManager::removeConnection ( const QString name)

Definition at line 69 of file qdbusconnection.cpp.

References d, and QHash< Key, T >::take().

+ Here is the call graph for this function:

◆ run()

void QDBusConnectionManager::run ( )
overrideprotected

Definition at line 121 of file qdbusconnection.cpp.

References QHash< Key, T >::clear(), d, exec(), moveToThread(), and mutex.

+ Here is the call graph for this function:

◆ serverRequested

void QDBusConnectionManager::serverRequested ( const QString address,
void server 
)
signal

Referenced by QDBusConnectionManager(), QDBusServer::QDBusServer(), and QDBusServer::QDBusServer().

+ Here is the caller graph for this function:

◆ setConnection()

void QDBusConnectionManager::setConnection ( const QString name,
QDBusConnectionPrivate c 
)

Definition at line 115 of file qdbusconnection.cpp.

Referenced by qDBusNewConnection().

+ Here is the caller graph for this function:

Member Data Documentation

◆ mutex

QMutex QDBusConnectionManager::mutex
mutable

Definition at line 45 of file qdbusconnectionmanager_p.h.

Referenced by run().


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