24 #ifndef ACCOUNTS_ACCOUNT_SERVICE_H
25 #define ACCOUNTS_ACCOUNT_SERVICE_H
28 #include <QStringList>
30 #include "Accounts/account.h"
31 #include "Accounts/auth-data.h"
38 class AccountServicePrivate;
49 Account *account()
const;
53 bool isEnabled()
const;
55 QStringList allKeys()
const;
57 void beginGroup(
const QString &prefix);
59 QStringList childGroups()
const;
60 QStringList childKeys()
const;
64 bool contains(
const QString &key)
const;
68 QString group()
const;
70 void remove(
const QString &key);
72 void setValue(
const char *key,
const QVariant &value);
73 void setValue(
const QString &key,
const QVariant &value);
75 QVariant value(
const QString &key,
76 const QVariant &defaultValue,
77 SettingSource *source =
nullptr)
const;
78 QVariant value(
const QString &key, SettingSource *source =
nullptr)
const;
79 QVariant value(
const char *key, SettingSource *source =
nullptr)
const;
81 QStringList changedFields()
const;
91 AccountServicePrivate *d_ptr;
96 typedef QList<AccountService*> AccountServiceList;
100 #endif // ACCOUNTS_ACCOUNT_SERVICE_H