42 #ifndef QDBUSCONNECTION_H 43 #define QDBUSCONNECTION_H 45 #include <QtDBus/qdbusmacros.h> 46 #include <QtCore/qstring.h> 84 ExportAdaptors = 0x01,
86 ExportScriptableSlots = 0x10,
87 ExportScriptableSignals = 0x20,
88 ExportScriptableProperties = 0x40,
89 ExportScriptableInvokables = 0x80,
90 ExportScriptableContents = 0xf0,
92 ExportNonScriptableSlots = 0x100,
93 ExportNonScriptableSignals = 0x200,
94 ExportNonScriptableProperties = 0x400,
95 ExportNonScriptableInvokables = 0x800,
96 ExportNonScriptableContents = 0xf00,
98 ExportAllSlots = ExportScriptableSlots|ExportNonScriptableSlots,
99 ExportAllSignals = ExportScriptableSignals|ExportNonScriptableSignals,
100 ExportAllProperties = ExportScriptableProperties|ExportNonScriptableProperties,
101 ExportAllInvokables = ExportScriptableInvokables|ExportNonScriptableInvokables,
102 ExportAllContents = ExportScriptableContents|ExportNonScriptableContents,
106 ExportAllSignal = ExportAllSignals,
108 ExportChildObjects = 0x1000
111 enum UnregisterMode {
127 UnixFileDescriptorPassing = 0x0001
137 bool isConnected()
const;
141 ConnectionCapabilities connectionCapabilities()
const;
145 const char *returnMethod,
const char *errorMethod,
146 int timeout = -1)
const;
148 const char *slot,
int timeout = -1)
const;
150 int timeout = -1)
const;
157 QObject *receiver,
const char *slot);
160 QObject *receiver,
const char *slot);
166 QObject *receiver,
const char *slot);
169 QObject *receiver,
const char *slot);
172 RegisterOptions options = ExportAdaptors);
173 void unregisterObject(
const QString &path, UnregisterMode mode = UnregisterNode);
179 bool registerService(
const QString &serviceName);
180 bool unregisterService(
const QString &serviceName);
184 void *internalPointer()
const;
189 static void disconnectFromBus(
const QString &
name);
190 static void disconnectFromPeer(
const QString &
name);
UnregisterMode
The mode for unregistering an object path:
The QDBusConnectionInterface class provides access to the D-Bus bus daemon service.
#define QT_END_NAMESPACE
This macro expands to.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
CallMode
This enum describes the various ways of placing a function call.
The QByteArray class provides an array of bytes.
The QDBusError class represents an error received from the D-Bus bus or from remote applications foun...
The QDBusPendingCall class refers to one pending asynchronous call.
The QDBusInterface class is a proxy for interfaces on remote objects.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
ConnectionCapability
This enum describes the available capabilities for a D-Bus connection.
The QDBus namespace contains miscellaneous identifiers used throughout the QtDBus library...
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
The QStringList class provides a list of strings.
BusType
Specifies the type of the bus connection.
The QDBusVirtualObject class is used to handle several DBus paths with one class. ...
QDBusConnectionPrivate * d
The QDBusConnection class represents a connection to the D-Bus bus daemon.
The QDBusMessage class represents one message sent or received over the D-Bus bus.
RegisterOption
Specifies the options for registering objects with the connection.
VirtualObjectRegisterOption
Specifies the options for registering virtual objects with the connection.