~ci-train-bot/online-accounts-api/online-accounts-api-ubuntu-xenial-landing-033

« back to all changes in this revision

Viewing changes to src/lib/OnlineAccounts/account_info.h

  • Committer: CI Train Bot
  • Author(s): Alberto Mardegan
  • Date: 2015-09-23 12:41:36 UTC
  • mfrom: (8.4.11 update)
  • Revision ID: ci-train-bot@canonical.com-20150923124136-43tthyu1l6lkqq3l
Docs, fixes, library install

- Docs
- Couple of bugfixes
- Package the daemon as a library

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <QVariantMap>
25
25
 
26
 
#include "daemon/dbus_constants.h"
 
26
#include "OnlineAccountsDaemon/dbus_constants.h"
27
27
#include "global.h"
28
28
 
29
29
class QDBusArgument;
59
59
        }
60
60
    }
61
61
 
 
62
    QStringList keys() const {
 
63
        QStringList settingKeys;
 
64
        Q_FOREACH(const QString &key, details.keys()) {
 
65
            if (key.startsWith(ONLINE_ACCOUNTS_INFO_KEY_SETTINGS)) {
 
66
                settingKeys.append(key.mid(sizeof(ONLINE_ACCOUNTS_INFO_KEY_SETTINGS) - 1));
 
67
            }
 
68
        }
 
69
        return settingKeys;
 
70
    }
62
71
    QVariant setting(const QString &key) const {
63
72
        return details.value(ONLINE_ACCOUNTS_INFO_KEY_SETTINGS + key);
64
73
    }