aboutsummaryrefslogtreecommitdiff
path: root/libcontextsubscriber/src/contextkitplugin.h
diff options
context:
space:
mode:
authorGergely Risko <gergely+context@risko.hu>2009-10-21 13:37:15 +0300
committerGergely Risko <gergely+context@risko.hu>2009-10-21 13:37:15 +0300
commit6f68045d5880b6aecd46a4c2eec76466833a30d4 (patch)
tree7ea8819c153e7227fd1162910c232b8dc2a29da1 /libcontextsubscriber/src/contextkitplugin.h
parentebcd52f4a2277479d8df91c4b907919ed62ed197 (diff)
libcontextsubscriber: switch to new protocol in contextkitplugin if old is not supported
Diffstat (limited to 'libcontextsubscriber/src/contextkitplugin.h')
-rw-r--r--libcontextsubscriber/src/contextkitplugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcontextsubscriber/src/contextkitplugin.h b/libcontextsubscriber/src/contextkitplugin.h
index 5fd3b8d2..b5d2c44d 100644
--- a/libcontextsubscriber/src/contextkitplugin.h
+++ b/libcontextsubscriber/src/contextkitplugin.h
@@ -67,6 +67,8 @@ private slots:
void onProviderDisappeared();
private:
+ void reset();
+
QMap<QString, QVariant>& mergeNullsWithMap(QMap<QString, QVariant> &map, QStringList nulls) const;
DBusNameListener *providerListener; ///< Listens to provider's (dis)appearance over DBus
@@ -76,6 +78,8 @@ private:
QDBusConnection *connection; ///< The connection to DBus
QString busName; ///< The D-Bus service name of the ContextKit provider connected to
+ bool newProtocol; ///< The provider on D-Bus speaks the new protocol only.
+
static const QString managerIName; ///< org.freedesktop.ContextKit.Manager
static const QString subscriberIName; ///< org.freedesktop.ContextKit.Subscriber
static const QString managerPath; ///< /org/freedesktop/ContextKit/Manager