Setting
Object Hierarchy:
Description:
The NMSetting struct contains only private data.
It should only be accessed through the functions described below.
All known sub-classes:
Namespace: NM
Package: libnm-util
Content:
Constants:
- public const int FUZZY_IGNORE
- public const int REQUIRED
- public const int SECRET
- public const int SERIALIZE
Properties:
- public string name { owned get; set; }
The setting's name, which uniquely identifies the setting within the connection.
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
For a given secret, stores the SettingSecretFlags describing how to handle that secret.
- 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