Account
Object Hierarchy:
Description:
Opaque structure.
Use related accessor functions.
Namespace: Ag
Package: libaccounts-glib
Content:
Properties:
- public string display_name { get; }
The display name of the account.
- public bool foreign { construct; }
- public uint id { get; construct; }
The AgAccountId for the account.
- public Manager manager { get; construct; }
The Manager from which the account was instantiated.
- public string provider { get; construct; }
The ID of the provider for the account.
Creation methods:
- protected Account ()
Methods:
- public void @delete ()
Deletes the account.
- public unowned string get_display_name ()
Get the display name of this.
- public bool get_enabled ()
Gets whether the selected service is enabled for this.
- public unowned Manager get_manager ()
Get the Manager for this.
- public unowned string get_provider_name ()
Get the name of the provider of this.
- public Service get_selected_service ()
Gets the selected Service for this.
- public AccountSettingIter get_settings_iter (string? key_prefix)
Creates a new iterator.
- public SettingSource get_value (string key, ref Value value)
Gets the value of the configuration setting
key
:value
must be a Value initialized to the type of the setting. - public unowned Variant get_variant (string key, out SettingSource? source)
Gets the value of the configuration setting
key
. - public List<Service> list_enabled_services ()
Gets a list of services that are enabled for this .
- public List<Service> list_services ()
Get the list of services for this.
- public List<Service> list_services_by_type (string service_type)
Get the list of services supported by this , filtered by
service_type
. - public void remove_watch (AccountWatch watch)
Removes the notification callback identified by
watch
. - public void select_service (Service? service)
Selects the configuration of service
service
: from now on, all the subsequent calls on the Account configuration will act on theservice
. - public void set_display_name (string display_name)
Changes the display name for this to
display_name
. - public void set_enabled (bool enabled)
Sets the "enabled" flag on the selected service for this.
- public void set_value (string key, Value? value)
Sets the value of the configuration setting
key
to the valuevalue
. - public void set_variant (string key, Variant? value)
Sets the value of the configuration setting
key
to the valuevalue
. - public void settings_iter_init (AccountSettingIter iter, string? key_prefix)
Initializes
iter
to iterate over the account settings. - public void sign (string key, string token)
Creates signature of the
key
with giventoken
. - public void store (AccountStoreCb callback)
Commit the changed account settings to the account database, and invoke
callback
when the operation has been completed. - public async void store_async (Cancellable? cancellable = null) throws AccountsError
Commit the changed account settings to the account database, and invoke
callback
when the operation has been completed. - public bool store_blocking () throws AccountsError
Commit the changed account settings to the account database, and invoke
callback
when the operation has been completed. - public bool supports_service (string service_type)
Get whether
service_type
is supported on this. - public bool verify (string key, string token)
Verify if the key is signed and the signature matches the value and provides the aegis token which was used for signing the
key
. - public bool verify_with_tokens (string key, string tokens)
Verify if the
key
is signed with any of the tokens from thetokens
and the signature is valid. - public unowned AccountWatch watch_dir (string key_prefix, AccountNotifyCb callback)
Installs a watch on all the keys under
key_prefix
:callback
will be invoked whenever the value of any of these keys changes (or a key is removed). - public unowned AccountWatch watch_key (string key, AccountNotifyCb callback)
Installs a watch on
key
:callback
will be invoked whenever the value ofkey
changes (or the key is removed).
Signals:
- public signal void deleted ()
Emitted when the account has been deleted.
- public signal void display_name_changed ()
Emitted when the account display name has changed.
- public signal void enabled (string service, bool enabled)
Emitted when the account "enabled" status was changed for one of its services, or for the account globally.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface GLib.Initable