SettingVPN
Object Hierarchy:
NM.SettingVPN
NM.SettingVPN
NM.SettingVPN
NM.Setting
NM.Setting
NM.Setting->NM.SettingVPN
GLib.Object
GLib.Object
GLib.Object->NM.Setting
Description:
[
CCode ( type_id =
"nm_setting_vpn_get_type ()" ) ]
public class SettingVPN :
Setting
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:
Methods:
public void add_data_item (string key, string item)
Establishes a relationship between key
and item
internally in the setting which may be retrieved later.
public void add_secret (string key, string secret)
Establishes a relationship between key
and secret
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
@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