~dandrader/unity8/miral

« back to all changes in this revision

Viewing changes to plugins/AccountsService/AccountsServiceDBusAdaptor.h

  • Committer: Michael Terry
  • Date: 2016-02-16 14:12:58 UTC
  • mto: This revision was merged to the branch mainline in revision 2242.
  • Revision ID: michael.terry@canonical.com-20160216141258-itntowy5fn1i6joa
Some minor cleanup nits

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2013 Canonical, Ltd.
 
2
 * Copyright (C) 2013-2016 Canonical, Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
12
12
 *
13
13
 * You should have received a copy of the GNU General Public License
14
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
 
 * Authors: Michael Terry <michael.terry@canonical.com>
17
15
 */
18
16
 
19
17
#ifndef UNITY_ACCOUNTSSERVICEDBUSADAPTOR_H
36
34
    ~AccountsServiceDBusAdaptor() = default;
37
35
 
38
36
    QDBusPendingReply<QVariantMap> getAllPropertiesAsync(const QString &user, const QString &interface);
39
 
    Q_INVOKABLE QDBusPendingReply<QVariant> getUserPropertyAsync(const QString &user, const QString &interface, const QString &property);
40
 
    Q_INVOKABLE QDBusPendingCall setUserPropertyAsync(const QString &user, const QString &interface, const QString &property, const QVariant &value);
 
37
    QDBusPendingReply<QVariant> getUserPropertyAsync(const QString &user, const QString &interface, const QString &property);
 
38
    QDBusPendingCall setUserPropertyAsync(const QString &user, const QString &interface, const QString &property, const QVariant &value);
41
39
 
42
40
Q_SIGNALS:
43
41
    void propertiesChanged(const QString &user, const QString &interface, const QStringList &changed);
49
47
 
50
48
private:
51
49
    QDBusInterface *getUserInterface(const QString &user);
52
 
    QString getUserForPath(const QString &path);
 
50
    QString getUserForPath(const QString &path) const;
53
51
 
54
52
    QDBusInterface *m_accountsManager;
55
53
    QMap<QString, QDBusInterface *> m_users;