30 #include <QStringList>
35 #define ACCOUNTS_KEY_CREDENTIALS_ID QLatin1String("CredentialsId")
89 Watch(QObject *parent = 0);
103 void notify(
const char *key);
108 friend class Private;
163 bool supportsService(
const QString &serviceType)
const;
173 ServiceList services(
const QString &serviceType = NULL)
const;
186 bool enabled()
const;
194 void setEnabled(
bool);
203 qint32 credentialsId();
220 QString displayName()
const;
226 void setDisplayName(
const QString &displayName);
231 QString providerName()
const;
238 void selectService(
const Service *service = 0);
243 Service *selectedService()
const;
252 QStringList allKeys()
const;
260 void beginGroup(
const QString &prefix);
267 QStringList childGroups()
const;
274 QStringList childKeys()
const;
288 bool contains(
const QString &key)
const;
302 QString group()
const;
307 bool isWritable()
const;
316 void remove(
const QString &key);
325 void setValue(
const QString &key,
const QVariant &value);
363 SettingSource value(
const QString &key, QVariant &value)
const;
374 QString valueAsString(
const QString &key,
375 QString default_value = QString::null,
387 int valueAsInt(
const QString &key,
388 int default_value = 0,
400 quint64 valueAsUInt64(
const QString &key,
401 quint64 default_value = 0,
413 bool valueAsBool(
const QString &key,
414 bool default_value =
false,
426 Watch *watchKey(
const QString &key = NULL);
441 void sign(
const QString &key,
const char *token);
454 bool verify(
const QString &key,
const char **token);
468 bool verifyWithTokens(
const QString &key, QList<const char*> tokens);
471 void displayNameChanged(
const QString &displayName);
472 void enabledChanged(
const QString &serviceName,
bool enabled);
488 friend class Account::Private;