24#ifndef ACCOUNTS_ACCOUNT_SERVICE_H
25#define ACCOUNTS_ACCOUNT_SERVICE_H
30#include "Accounts/account.h"
31#include "Accounts/auth-data.h"
38class AccountServicePrivate;
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;
91 AccountServicePrivate *d_ptr;
96typedef QList<AccountService*> AccountServiceList;
Service service() const
Return the Service.
QStringList allKeys() const
Return all the keys in the current group.
void changed()
Emitted when some setting has changed on the account service.
QStringList childGroups() const
Return all the groups which are direct children of the current group.
Account * account() const
Return the Account.
bool contains(const QString &key) const
Check whether the given key is in the current group.
QVariant value(const QString &key, const QVariant &defaultValue, SettingSource *source=nullptr) const
Retrieves the value of an account setting, as a QVariant.
AuthData authData() const
Read the authentication data stored in the account (merging the service-specific settings with the gl...
void remove(const QString &key)
Remove the given key.
QStringList childKeys() const
Return all the keys which are direct children of the current group.
void beginGroup(const QString &prefix)
Enter a group.
bool isEnabled() const
Check whether the account service is enabled.
QStringList changedFields() const
This method should be called only in the context of a handler of the AccountService::changed() signal...
void clear()
Remove all the keys.
void enabled(bool isEnabled)
Emitted when the enabledness state of the account service has changed.
QString group() const
Return the name of the current group.
AccountService(Account *account, const Service &service)
Constructor.
bool enabled() const
Check whether the account service is enabled.
void endGroup()
Exit a group.
Information for account authentication.
Manager of accounts, services and providers.
Representation of an account service.