Account
Object Hierarchy:
Description:
[ CCode ( type_id = "ag_account_get_type ()" ) ]
public class Account : Object, Initable
Opaque structure.
Use related accessor functions.
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:
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 ()
- 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 the service
.
- 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
value value
.
- public void set_variant (string key, Variant? value)
Sets the value of the configuration setting key
to the
value value
.
- 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 given token
.
- 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
the tokens
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 of key
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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GLib.Initable