Setting
Object Hierarchy:
Description:
All known sub-classes:
Namespace: NM
Package: libnm
Content:
Constants:
- public const int FUZZY_IGNORE
- public const int REQUIRED
- public const int SECRET
- public const string SETTING_NAME
Properties:
- public string name { get; }
The setting's name, which uniquely identifies the setting within the connection.
Static methods:
- public static Type lookup_type (string name)
Returns the Type of the setting's class for a given setting name.
Creation methods:
- protected Setting ()
Methods:
- public bool compare (Setting b, SettingCompareFlags flags)
Compares two Setting objects for similarity, with comparison behavior modified by a set of 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 VariantType get_dbus_property_type (string property_name)
Gets the D-Bus marshalling type of a 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 void option_clear_by_name (UtilsPredicateStr? predicate)
- public unowned Variant option_get (string opt_name)
- public unowned string[]? option_get_all_names ()
Gives the name of all set options.
- public bool option_get_boolean (string opt_name, out bool out_value)
- public bool option_get_uint32 (string opt_name, out uint32 out_value)
- public void option_set (string opt_name, Variant? variant)
If
variant
is null, this clears the option if it is set. - public void option_set_boolean (string opt_name, bool value)
Like option_set to set a boolean GVariant.
- public void option_set_uint32 (string opt_name, uint32 value)
Like option_set to set a uint32 GVariant.
- 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 string to_string ()
Convert the setting (including secrets!) into a string.
- public bool verify (Connection? connection) throws Error
Validates the setting.
- public bool verify_secrets (Connection? connection) throws Error
Verifies the secrets in the setting.
Inherited Members:
All known members inherited from class GLib.Object