![]() |
Qt 6.x
The Qt SDK
|
#include <qdbusconnectionmanager_p.h>
Classes | |
struct | ConnectionRequestData |
Signals | |
void | connectionRequested (ConnectionRequestData *) |
void | serverRequested (const QString &address, void *server) |
Public Member Functions | |
QDBusConnectionManager () | |
~QDBusConnectionManager () | |
QDBusConnectionPrivate * | busConnection (QDBusConnection::BusType type) |
QDBusConnectionPrivate * | connection (const QString &name) const |
void | removeConnection (const QString &name) |
void | setConnection (const QString &name, QDBusConnectionPrivate *c) |
QDBusConnectionPrivate * | connectToBus (QDBusConnection::BusType type, const QString &name, bool suspendedDelivery) |
QDBusConnectionPrivate * | connectToBus (const QString &address, const QString &name) |
QDBusConnectionPrivate * | connectToPeer (const QString &address, const QString &name) |
Static Public Member Functions | |
static QDBusConnectionManager * | instance () |
Public Attributes | |
QMutex | mutex |
Protected Member Functions | |
void | run () override |
Definition at line 28 of file qdbusconnectionmanager_p.h.
QDBusConnectionManager::QDBusConnectionManager | ( | ) |
Definition at line 83 of file qdbusconnection.cpp.
References Qt::BlockingQueuedConnection, connect(), connectionRequested(), moveToThread(), and serverRequested().
QDBusConnectionManager::~QDBusConnectionManager | ( | ) |
Definition at line 99 of file qdbusconnection.cpp.
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.
QDBusConnectionPrivate * QDBusConnectionManager::connection | ( | const QString & | name | ) | const |
Definition at line 64 of file qdbusconnection.cpp.
References QHash< Key, T >::value().
|
signal |
Referenced by QDBusConnectionManager(), connectToBus(), connectToBus(), and connectToPeer().
QDBusConnectionPrivate * QDBusConnectionManager::connectToBus | ( | const QString & | address, |
const QString & | name | ||
) |
Definition at line 157 of file qdbusconnection.cpp.
References connectionRequested(), QDBusConnectionManager::ConnectionRequestData::ConnectToBusByAddress, and emit.
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.
QDBusConnectionPrivate * QDBusConnectionManager::connectToPeer | ( | const QString & | address, |
const QString & | name | ||
) |
Definition at line 169 of file qdbusconnection.cpp.
References connectionRequested(), QDBusConnectionManager::ConnectionRequestData::ConnectToPeerByAddress, and emit.
|
static |
Definition at line 105 of file qdbusconnection.cpp.
Referenced by QDBusServer::QDBusServer(), QDBusServer::QDBusServer(), QDBusServer::~QDBusServer(), and qDBusNewConnection().
Definition at line 69 of file qdbusconnection.cpp.
References d, and QHash< Key, T >::take().
|
overrideprotected |
Definition at line 121 of file qdbusconnection.cpp.
References QHash< Key, T >::clear(), d, exec(), moveToThread(), and mutex.
Referenced by QDBusConnectionManager(), QDBusServer::QDBusServer(), and QDBusServer::QDBusServer().
void QDBusConnectionManager::setConnection | ( | const QString & | name, |
QDBusConnectionPrivate * | c | ||
) |
Definition at line 115 of file qdbusconnection.cpp.
Referenced by qDBusNewConnection().
|
mutable |
Definition at line 45 of file qdbusconnectionmanager_p.h.
Referenced by run().