Setting
Object Hierarchy:
NM.Setting
NM.Setting
NM.Setting
GLib.Object
GLib.Object
GLib.Object->NM.Setting
Description:
[ CCode ( type_id = "nm_setting_get_type ()" ) ]public abstract class Setting : Object
The NMSetting struct contains only private data.
It should only be accessed through the functions described below.
Content:
Constants:
Properties:
Creation methods:
protected Setting ()
public Setting.from_hash (Type setting_type, HashTable <string ,Value ?> hash)
Creates a new Setting object and
populates that object with the properties contained in the hash table, using each hash key as the property to set, and each hash value
as the value to set that property to.
Methods:
public void clear_secrets ()
Resets and clears any secrets in the setting.
public void clear_secrets_with_flags (SettingClearSecretsWithFlagsFn func)
Clears and frees secrets determined by func
.
public bool compare (Setting b, SettingCompareFlags flags)
Compares two Setting objects for
similarity, with comparison behavior modified by a set of flags.
public virtual bool compare_property (Setting other, ParamSpec prop_spec, SettingCompareFlags flags)
public bool diff (Setting b, SettingCompareFlags flags, bool invert_results, ref HashTable <string ,uint32 > results)
Compares two Setting objects for
similarity, with comparison behavior modified by a set of flags.
public Setting duplicate ()
Duplicates a Setting .
public void enumerate_values (SettingValueIterFn func)
Iterates over each property of the
Setting object, calling the supplied user function for each property.
public unowned string get_name ()
Returns the type name of the Setting
object
public bool get_secret_flags (string secret_name, SettingSecretFlags out_flags) throws Error
For a given secret, retrieves the
SettingSecretFlags describing how to handle that secret.
public virtual unowned string get_virtual_iface_name ()
Returns the name of the virtual kernel interface which the connection
needs to use if specified in the settings.
public virtual GenericArray <unowned string > need_secrets ()
Returns an array of property names for each secret which may be
required to make a successful connection.
public bool set_secret_flags (string secret_name, SettingSecretFlags flags) throws Error
public HashTable <string ,Value ?> to_hash (SettingHashFlags flags)
Converts the Setting into a
GenericSet mapping each setting property name to a GValue describing that property, suitable for
marshalling over D-Bus or serializing.
public string to_string ()
Convert the setting into a string.
public virtual int update_one_secret (string key, Value value) throws Error
public bool update_secrets (HashTable <string ,Value ?> secrets) throws Error
Update the setting's secrets, given a hash table of secrets intended
for that setting (deserialized from D-Bus for example).
public bool verify (SList <Setting > all_settings) throws Error
Validates the setting.
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