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
61 DisableNotifications = 0x1,
63 Q_DECLARE_FLAGS(Options,
Option)
66 Manager(const QString &serviceType, QObject *parent = 0);
67 Manager(Options options, QObject *parent = 0);
70 Account *account(const AccountId &
id) const;
72 AccountIdList accountList(const QString &serviceType = QString::null) const;
73 AccountIdList accountListEnabled(const QString &serviceType = QString::null) const;
75 Account *createAccount(const QString &providerName);
77 Service service(const QString &serviceName) const;
78 ServiceList serviceList(const QString &serviceType = QString::null) const;
80 Provider provider(const QString &providerName) const;
81 ProviderList providerList() const;
85 Application application(const QString &applicationName) const;
86 ApplicationList applicationList(const
Service &service) const;
88 QString serviceType() const;
90 void setTimeout(quint32 timeout);
93 void setAbortOnTimeout(
bool abort);
94 bool abortOnTimeout() const;
96 Options options() const;
98 Error lastError() const;
101 void accountCreated(
Accounts::AccountId
id);
102 void accountRemoved(
Accounts::AccountId
id);
103 void accountUpdated(
Accounts::AccountId
id);
104 void enabledEvent(
Accounts::AccountId
id);
110 friend class Private;
113 friend class Account;
122 #endif // ACCOUNTS_MANAGER_H Manager of accounts, services and providers.
Account settings for a specific service.
Option
Specifies options for the object.
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.