30 #ifndef TST_QDBUSCONNECTION_H
31 #define TST_QDBUSCONNECTION_H
35 #include <QTestEventLoop>
36 #include <QDBusMessage>
37 #include <QDBusConnection>
38 #include <QDBusServer>
39 #include <QDBusVirtualObject>
106 void connectToPeer();
112 void sendSignalToName();
113 void sendSignalToOtherName();
115 void registerObject_data();
116 void registerObject();
117 void registerObjectWithInterface_data();
118 void registerObjectWithInterface();
119 void registerObjectPeer_data();
120 void registerObjectPeer();
121 void registerObject2();
122 void registerObjectPeer2();
124 void registerQObjectChildren();
125 void registerQObjectChildrenPeer();
128 void callSelfByAnotherName_data();
129 void callSelfByAnotherName();
130 void multipleInterfacesInQObject();
132 void connectSignal();
133 void slotsWithLessParameters();
134 void nestedCallWithCallback();
136 void serviceRegistrationRaceCondition();
138 void registerVirtualObject();
139 void callVirtualObject();
140 void callVirtualObjectLocal();
141 void pendingCallWhenDisconnected();
193 c.unregisterObject(m_path);
200 m_connections <<
c.name();
small capitals from c petite p scientific i
[1]
BaseObject(QObject *parent=nullptr)
void method(const QDBusMessage &msg)
MyObject(QObject *parent=nullptr)
MyObjectWithoutInterface(QObject *parent=nullptr)
void method(const QDBusMessage &msg)
void handleConnection(const QDBusConnection &c)
QDBusConnection connection()
void handleConnection(const QDBusConnection &c)
bool registerObject(const QDBusConnection &c)
The QDBusConnection class represents a connection to the D-Bus bus daemon.
QObject * objectRegisteredAt(const QString &path) const
bool registerObject(const QString &path, QObject *object, RegisterOptions options=ExportAdaptors)
The QDBusMessage class represents one message sent or received over the D-Bus bus.
The QDBusServer class provides peer-to-peer communication between processes on the same computer.
void newConnection(const QDBusConnection &connection)
void handlePing(const QString &str)
void asyncReply(const QDBusMessage &msg)
The QDBusVirtualObject class is used to handle several DBus paths with one class.
The QObject class is the base class of all Qt objects.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
The QString class provides a Unicode character string.
static QString number(int, int base=10)
The QStringList class provides a list of strings.
static QTestEventLoop & instance()
virtual ~RaceConditionSignalWaiter()
RaceConditionSignalWaiter()
void secondCallWithCallback()
void oneSlot(const QString &arg)
TestObject(QObject *parent=nullptr)
QVariantList replyArguments
QString introspect(const QString &) const override
bool handleMessage(const QDBusMessage &message, const QDBusConnection &connection) override
void messageReceived(const QDBusMessage &message) const
QString serviceName() const
bool callMethodPeer(const QDBusConnection &conn, const QString &path)
bool callMethod(const QDBusConnection &conn, const QString &path)
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char * interface
DBusConnection * connection
GLenum GLuint GLenum GLsizei const GLchar * message
GLenum GLenum GLsizei count
GLsizei const GLchar *const * path
#define QVERIFY(statement)