diff options
author | Gergely Risko <gergely+context@risko.hu> | 2009-12-03 15:06:54 +0200 |
---|---|---|
committer | Gergely Risko <gergely+context@risko.hu> | 2009-12-03 15:06:54 +0200 |
commit | 59cbfca962e7a6a80904d8937d355692070872be (patch) | |
tree | fa3591e1780ece452de047f697e214cbbe01b507 /libcontextsubscriber/src/contextkitplugin.h | |
parent | 32f3d70a1edc914b0843cae3f9704b82c1e5877d (diff) |
Only try the old protocol for the commander, not for real providers.
Signed-off-by: Akos Pasztory <ext-akos.pasztory@nokia.com>
Diffstat (limited to 'libcontextsubscriber/src/contextkitplugin.h')
-rw-r--r-- | libcontextsubscriber/src/contextkitplugin.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcontextsubscriber/src/contextkitplugin.h b/libcontextsubscriber/src/contextkitplugin.h index c0adb555..860f4338 100644 --- a/libcontextsubscriber/src/contextkitplugin.h +++ b/libcontextsubscriber/src/contextkitplugin.h @@ -69,6 +69,7 @@ public: ContextKitPlugin(const QDBusConnection bus, const QString& busName); void subscribe(QSet<QString> keys); void unsubscribe(QSet<QString> keys); + void setDefaultNewProtocol(bool s); signals: #ifdef DOXYGEN_ONLY @@ -97,6 +98,7 @@ private: static QString pathToKey(QString key); void reset(); + void useNewProtocol(); QMap<QString, QVariant>& mergeNullsWithMap(QMap<QString, QVariant> &map, QStringList nulls) const; @@ -107,7 +109,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. + bool newProtocol; ///< The current provider on D-Bus speaks the new protocol only. + bool defaultNewProtocol; ///< Let's only try the new protocol to talk with the provider. static const QString managerIName; ///< org.freedesktop.ContextKit.Manager static const QString subscriberIName; ///< org.freedesktop.ContextKit.Subscriber |