Manager
Object Hierarchy:
Description:
Opaque structure.
Use related accessor functions.
Namespace: Ag
Package: libaccounts-glib
Content:
Properties:
- public bool abort_on_db_timeout { get; set; }
Whether to abort the application when a database timeout occurs.
- public uint db_timeout { get; set; }
Timeout for database operations, in milliseconds.
- public string service_type { get; construct; }
If the service type is set, certain operations on the Manager, such as list and list_services, will be restricted to only affect accounts or services with that service type.
- public bool use_dbus { get; construct; }
Whether to use D-Bus for inter-process change notification.
Static methods:
- public static void list_free (List<uint> list)
Frees the memory taken by a List of AccountId allocated by Manager, such as by list, list_enabled or list_enabled_by_service_type.
Creation methods:
- public Manager ()
Create a new Manager.
- public Manager.for_service_type (string service_type)
Create a new Manager with the service type with the name
service_type
.
Methods:
- public Account create_account (string provider_name)
Create a new account.
- public bool get_abort_on_db_timeout ()
Get whether the library will abort when a timeout error occurs.
- public Account get_account (AccountId account_id)
Instantiates the object representing the account identified by
account_id
. - public List<AccountService> get_account_services ()
Gets all the account services.
- public Application get_application (string application_name)
Search for
application_name
in the list of applications, and return a new Application if a matching application was found. - public uint get_db_timeout ()
Get the timeout of database operations for this , in milliseconds.
- public List<AccountService> get_enabled_account_services ()
Gets all the enabled account services.
- public Provider get_provider (string provider_name)
Loads the provider identified by
provider_name
. - public Service get_service (string service_name)
Loads the service identified by
service_name
. - public unowned string get_service_type ()
Get the service type for this.
- public List<uint> list ()
Lists the accounts.
- public List<Application> list_applications_by_service (Service service)
Lists the registered applications which support the given service.
- public List<uint> list_by_service_type (string service_type)
Lists the accounts supporting the given service type.
- public List<uint> list_enabled ()
Lists the enabled accounts.
- public List<uint> list_enabled_by_service_type (string service_type)
Lists the enabled accounts supporting the given service type.
- public List<Provider> list_providers ()
Gets a list of all the installed providers.
- public List<ServiceType> list_service_types ()
Gets a list of all the installed service types.
- public List<Service> list_services ()
Gets a list of all the installed services.
- public List<Service> list_services_by_type (string service_type)
Gets a list of all the installed services where the service type name is
service_type
. - public Account load_account (AccountId account_id) throws AccountsError
Instantiates the object representing the account identified by
account_id
. - public ServiceType load_service_type (string service_type)
Instantiate the service type with the name
service_type
. - public void set_abort_on_db_timeout (bool abort)
Tells libaccounts whether it should make the client application abort when a timeout error occurs.
- public void set_db_timeout (uint timeout_ms)
Sets the timeout for database operations.
Signals:
- public signal void account_created (uint account_id)
Emitted when a new account has been created; note that the account must have been stored in the database: the signal is not emitted just in response to create_account.
- public virtual signal void account_deleted (uint id)
Emitted when an account has been deleted.
- public signal void account_updated (uint account_id)
Emitted when particular service of an account has been updated.
- public signal void enabled_event (uint account_id)
If the manager has been created with Manager.for_service_type, this signal will be emitted when an account (identified by
account_id
) has been modified in such a way that the application might be interested to start or stop using it: the "enabled" flag on the account or in some service supported by the account and matching the service_type have changed.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface GLib.Initable