summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusconnection.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-02-14 12:22:05 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-03-29 10:44:42 (GMT)
commitee1af4d59da999df32276889d3b40fb01deb0acc (patch)
tree050f7fb27736a9cdaf7e1b0c3011037df0565cf7 /src/dbus/qdbusconnection.h
parente2f060294c1f9707fed48c532ba7de382efe3925 (diff)
downloadQt-ee1af4d59da999df32276889d3b40fb01deb0acc.zip
Qt-ee1af4d59da999df32276889d3b40fb01deb0acc.tar.gz
Qt-ee1af4d59da999df32276889d3b40fb01deb0acc.tar.bz2
Add a set of connection capabilities to QDBusConnection
The capabilities are negotiated with the D-Bus peer or bus at connection time and may include extra features not available when D-Bus 1.0 was released. Currently (as of D-Bus 1.4), the only additional feature is Unix file descriptor passing. Proposed features are "maybe types" and single-precision floating point. They may be added to D-Bus 1.6. Task-number: QTBUG-17478
Diffstat (limited to 'src/dbus/qdbusconnection.h')
-rw-r--r--src/dbus/qdbusconnection.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dbus/qdbusconnection.h b/src/dbus/qdbusconnection.h
index c0b9905..6ab0ea2 100644
--- a/src/dbus/qdbusconnection.h
+++ b/src/dbus/qdbusconnection.h
@@ -111,9 +111,13 @@ public:
UnregisterNode,
UnregisterTree
};
-
Q_DECLARE_FLAGS(RegisterOptions, RegisterOption)
+ enum ConnectionCapability {
+ UnixFileDescriptorPassing = 0x0001
+ };
+ Q_DECLARE_FLAGS(ConnectionCapabilities, ConnectionCapability)
+
QDBusConnection(const QString &name);
QDBusConnection(const QDBusConnection &other);
~QDBusConnection();
@@ -124,6 +128,7 @@ public:
QString baseService() const;
QDBusError lastError() const;
QString name() const;
+ ConnectionCapabilities connectionCapabilities() const;
bool send(const QDBusMessage &message) const;
bool callWithCallback(const QDBusMessage &message, QObject *receiver,