get_variant


Description:

public unowned Variant get_variant (string key, out SettingSource? source)

Gets the value of the configuration setting key.

Parameters:

this

the Account.

key

the name of the setting to retrieve.

source

a pointer to an SettingSource variable which will tell whether the setting was retrieved from the accounts DB or from a service template.

Returns:

a Variant holding the setting value, or null. The returned Variant is owned by the account, and no guarantees are made about its lifetime. If the client wishes to keep it, it should call g_variant_ref on it.