aboutsummaryrefslogtreecommitdiff
path: root/libcontextsubscriber/src/contextkitplugin.h
diff options
context:
space:
mode:
authorGergely Risko <gergely+context@risko.hu>2009-12-03 15:06:54 +0200
committerGergely Risko <gergely+context@risko.hu>2009-12-03 15:06:54 +0200
commit59cbfca962e7a6a80904d8937d355692070872be (patch)
treefa3591e1780ece452de047f697e214cbbe01b507 /libcontextsubscriber/src/contextkitplugin.h
parent32f3d70a1edc914b0843cae3f9704b82c1e5877d (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.h5
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