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;
54 QStringList allKeys()
const;
56 void beginGroup(
const QString &prefix);
58 QStringList childGroups()
const;
59 QStringList childKeys()
const;
63 bool contains(
const QString &key)
const;
67 QString group()
const;
69 void remove(
const QString &key);
71 void setValue(
const char *key,
const QVariant &value);
72 void setValue(
const QString &key,
const QVariant &value);
74 QVariant value(
const QString &key,
75 const QVariant &defaultValue,
76 SettingSource *source = 0)
const;
77 QVariant value(
const QString &key, SettingSource *source = 0)
const;
78 QVariant value(
const char *key, SettingSource *source = 0)
const;
80 QStringList changedFields()
const;
85 void enabled(
bool isEnabled);
90 AccountServicePrivate *d_ptr;
95 typedef QList<AccountService*> AccountServiceList;
99 #endif // ACCOUNTS_ACCOUNT_SERVICE_H