#include <subscriberinterface.h>
Signals | |
| void | valuesChanged (QMap< QString, QVariant > values) |
| void | subscribeFinished (QList< QString > keys) |
| void | subscribeFailed (QList< QString > keys, QString error) |
| void | Changed (const QMap< QString, QVariant > &values, const QStringList &unknownKeys) |
Public Member Functions | |
| SubscriberInterface (const QDBusConnection connection, const QString &busName, const QString &objectPath, QObject *parent=0) | |
| Constructs the SubscriberInterface. | |
| void | subscribe (QSet< QString > keys) |
| Calls the Subscribe function over DBus asynchronously. | |
| void | unsubscribe (QSet< QString > keys) |
| Calls the Unsubscribe function over DBus asynchronously. | |
Protected Member Functions | |
| void | connectNotify (const char *signal) |
| void | disconnectNotify (const char *signal) |
Static Protected Attributes | |
| static const char * | interfaceName = "org.freedesktop.ContextKit.Subscriber" |
Private Slots | |
| void | onSubscribeFinished (QDBusPendingCallWatcher *watcher) |
| Is called when the asynchronous DBus call to Subscribe has finished. | |
| void | onChanged (const QMap< QString, QVariant > &values, const QStringList &unknownKeys) |
| Processes the results of the Changed signal which comes over DBus. | |
Private Member Functions | |
| SubscriberInterface (const SubscriberInterface &other) | |
| SubscriberInterface & | operator= (const SubscriberInterface &other) |
| QMap< QString, QVariant > & | mergeNullsWithMap (QMap< QString, QVariant > &map, QStringList nulls) const |
| A helper function. Sets the values of given keys to a null QVariant in a QMap. | |
| SubscriberInterface::SubscriberInterface | ( | const QDBusConnection | connection, | |
| const QString & | busName, | |||
| const QString & | objectPath, | |||
| QObject * | parent = 0 | |||
| ) |
Constructs the SubscriberInterface.
Connects to the DBus object specified by busType (session or system bus), busName and objectPath.
| ContextSubscriber::SubscriberInterface::SubscriberInterface | ( | const SubscriberInterface & | other | ) | [private] |
| void SubscriberInterface::subscribe | ( | QSet< QString > | keys | ) |
Calls the Subscribe function over DBus asynchronously.
| void SubscriberInterface::unsubscribe | ( | QSet< QString > | keys | ) |
Calls the Unsubscribe function over DBus asynchronously.
| void SubscriberInterface::valuesChanged | ( | QMap< QString, QVariant > | values | ) | [signal] |
| void SubscriberInterface::subscribeFinished | ( | QList< QString > | keys | ) | [signal] |
| void SubscriberInterface::subscribeFailed | ( | QList< QString > | keys, | |
| QString | error | |||
| ) | [signal] |
| void SubscriberInterface::Changed | ( | const QMap< QString, QVariant > & | values, | |
| const QStringList & | unknownKeys | |||
| ) | [signal] |
| void SubscriberInterface::onSubscribeFinished | ( | QDBusPendingCallWatcher * | watcher | ) | [private, slot] |
Is called when the asynchronous DBus call to Subscribe has finished.
Emits the signal valuesChanged with the return values of the subscribed keys.
| void SubscriberInterface::onChanged | ( | const QMap< QString, QVariant > & | values, | |
| const QStringList & | unknownKeys | |||
| ) | [private, slot] |
Processes the results of the Changed signal which comes over DBus.
| SubscriberInterface& ContextSubscriber::SubscriberInterface::operator= | ( | const SubscriberInterface & | other | ) | [private] |
| QMap< QString, QVariant > & SubscriberInterface::mergeNullsWithMap | ( | QMap< QString, QVariant > & | map, | |
| QStringList | nulls | |||
| ) | const [private] |
A helper function. Sets the values of given keys to a null QVariant in a QMap.
| void SubscriberInterface::connectNotify | ( | const char * | signal | ) | [protected] |
| void SubscriberInterface::disconnectNotify | ( | const char * | signal | ) | [protected] |
const char * SubscriberInterface::interfaceName = "org.freedesktop.ContextKit.Subscriber" [static, protected] |
1.5.6