SettingVPN
Object Hierarchy:
Description:
Namespace: NM
Package: libnm-util
Content:
Properties:
- public bool persistent { get; set; }
If the VPN service supports persistence, and this property is
true
, the VPN will attempt to stay connected across link changes and outages, until explicitly disconnected. - public string service_type { owned get; set; }
D-Bus service name of the VPN plugin that this setting uses to connect to its network.
- public string user_name { owned get; set; }
If the VPN connection requires a user name for authentication, that name should be provided here.
Creation methods:
- public SettingVPN ()
Creates a new SettingVPN object with default values.
Methods:
- public void add_data_item (string key, string item)
Establishes a relationship between
key
anditem
internally in the setting which may be retrieved later. - public void add_secret (string key, string secret)
Establishes a relationship between
key
andsecret
internally in the setting which may be retrieved later. - public void foreach_data_item (VPNIterFunc func)
Iterates all data items stored in this setting.
- public void foreach_secret (VPNIterFunc func)
Iterates all secrets stored in this setting.
- public unowned string get_data_item (string key)
Retrieves the data item of a key/value relationship previously established by add_data_item.
- public uint32 get_num_data_items ()
Gets number of key/value pairs of VPN configuration data.
- public uint32 get_num_secrets ()
Gets number of VPN plugin specific secrets in the setting.
- public bool get_persistent ()
- public unowned string get_secret (string key)
Retrieves the secret of a key/value relationship previously established by add_secret.
- public unowned string get_service_type ()
Returns the service name of the VPN, which identifies the specific VPN plugin that should be used to connect to this VPN.
- public unowned string get_user_name ()
- public bool remove_data_item (string key)
Deletes a key/value relationship previously established by add_data_item.
- public bool remove_secret (string key)
Deletes a key/value relationship previously established by add_secret.
Inherited Members:
All known members inherited from class NM.Setting
All known members inherited from class GLib.Object