19 #ifndef UNITY_ACCOUNTSSERVICEDBUSADAPTOR_H
20 #define UNITY_ACCOUNTSSERVICEDBUSADAPTOR_H
22 #include <QDBusArgument>
23 #include <QDBusContext>
24 #include <QDBusInterface>
25 #include <QDBusPendingReply>
30 class AccountsServiceDBusAdaptor:
public QObject,
public QDBusContext
35 explicit AccountsServiceDBusAdaptor(QObject *parent = 0);
36 ~AccountsServiceDBusAdaptor() =
default;
38 Q_INVOKABLE QDBusPendingReply<QVariant> getUserPropertyAsync(
const QString &user,
const QString &interface,
const QString &property);
39 Q_INVOKABLE QDBusPendingCall setUserPropertyAsync(
const QString &user,
const QString &interface,
const QString &property,
const QVariant &value);
42 void propertiesChanged(
const QString &user,
const QString &interface,
const QStringList &changed);
43 void maybeChanged(
const QString &user);
46 void propertiesChangedSlot(
const QString &interface,
const QVariantMap &changed,
const QStringList &invalid);
47 void maybeChangedSlot();
50 QDBusInterface *getUserInterface(
const QString &user);
51 QString getUserForPath(
const QString &path);
53 QDBusInterface *m_accountsManager;
54 QMap<QString, QDBusInterface *> m_users;
56 bool m_ignoreNextChanged;