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:
Constants:
Properties:
public HashTable <string ,string > data { owned get ; set ; }
Dictionary of key/value pairs of VPN plugin specific data.
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 HashTable <string ,string > secrets { owned get ; set ; }
Dictionary of key/value pairs of VPN plugin specific secrets like
passwords or private keys.
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 uint timeout { get ; set ; }
Timeout for the VPN service to establish the connection.
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 (unowned string )[] get_data_keys ()
Retrieves every data key inside this
, as an array.
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_secret_keys ()
Retrieves every secret key inside this
, as an array.
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 uint32 get_timeout ()
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