25 #ifndef ACCOUNTS_MANAGER_H
26 #define ACCOUNTS_MANAGER_H
31 #include <QStringList>
33 #include "Accounts/accountscommon.h"
34 #include "Accounts/account.h"
35 #include "Accounts/error.h"
36 #include "Accounts/provider.h"
37 #include "Accounts/service.h"
38 #include "Accounts/service-type.h"
49 typedef QList<Application> ApplicationList;
51 class ACCOUNTS_EXPORT
Manager:
public QObject
57 Manager(
const QString &serviceType, QObject *parent = 0);
60 Account *account(
const AccountId &
id)
const;
62 AccountIdList accountList(
const QString &serviceType = QString::null)
const;
63 AccountIdList accountListEnabled(
const QString &serviceType = QString::null)
const;
65 Account *createAccount(
const QString &providerName);
67 Service service(
const QString &serviceName)
const;
68 ServiceList serviceList(
const QString &serviceType = QString::null)
const;
70 Provider provider(
const QString &providerName)
const;
71 ProviderList providerList()
const;
75 Application application(
const QString &applicationName)
const;
76 ApplicationList applicationList(
const Service &service)
const;
78 QString serviceType()
const;
80 void setTimeout(quint32 timeout);
83 void setAbortOnTimeout(
bool abort);
84 bool abortOnTimeout()
const;
86 Error lastError()
const;
89 void accountCreated(Accounts::AccountId
id);
90 void accountRemoved(Accounts::AccountId
id);
91 void accountUpdated(Accounts::AccountId
id);
92 void enabledEvent(Accounts::AccountId
id);
101 friend class Account;
108 #endif // ACCOUNTS_MANAGER_H
Manager of accounts, services and providers.
Account settings for a specific service.
Representation of an account provider.
Representation of an account service type.
Representation of an account service.
Base object definition for accounts error handling.
Information on the client applications of libaccounts.