accounts-qt
1.16
|
The Accounts library provides a storage solution for user accounts. The API provides access to the account storage: retrieval, editing and creation of accounts, as well as enumeration of the currently installed account providers and services. A change notification mechanism is implemented in order to let different processes operate on the same data simultaneously.
Common terms such as accounts, provider, services are familiar to most people, but not everyone associates the same meaning to them. Therefore, since these terms are commonly used in this library APIs, please spend some time to get familiar with our naming convention:
Accounts are stored in the DB provided by this library; providers, services and service types are defined by XML files which should be installed in well-defined filesystem paths (the Accounts-Qt library defaults to /usr/share/accounts/{providers,services,service-types}/
) and which the library will allow applications to enumerate and read.
Note that the library doesn't come with any pre-installed provider, service or service type: it's expected that provider and service files will be installed by the applications (or account plugins, if a centralized account-editing application is installed on the system) written by the service providers; service types should be defined by the applications or frameworks which are going to use the account information.
Accounts::Manager | Main object in Accounts-Qt: instantiate an Accounts::Manager to list and instantiate accounts, providers, services. |
Accounts::Account | Interface to account settings and data. |
Accounts::AccountService | Service settings of an account. |
Accounts::Provider | Representation of an installed account provider. |
Accounts::Service | Representation of an installed account service. |
Accounts::ServiceType | Representation of an account service type. |
Accounts::Watch | Monitors an account key or group of keys. |
Accounts::Error | Base object definition for errors emitted by the library. |