VpnPluginInfo
Object Hierarchy:
Description:
[ CCode ( type_id = "nm_vpn_plugin_info_get_type ()" ) ]
public sealed class VpnPluginInfo : Object, Initable
public sealed class VpnPluginInfo : Object, Initable
Namespace: NM
Package: libnm
Content:
Properties:
- public string filename { get; construct; }
The filename from which the info was loaded.
- public KeyFile keyfile { construct; }
Initialize the instance with a different keyfile instance.
- public string name { get; }
The name of the VPN plugin.
Static methods:
- public static bool list_add (SList<VpnPluginInfo> list, VpnPluginInfo plugin_info) throws Error
- public static unowned VpnPluginInfo list_find_by_filename (SList<VpnPluginInfo> list, string filename)
- public static unowned VpnPluginInfo list_find_by_name (SList<VpnPluginInfo> list, string name)
- public static unowned VpnPluginInfo list_find_by_service (SList<VpnPluginInfo> list, string service)
- public static string list_find_service_type (SList<VpnPluginInfo> list, string name)
A VPN plugin provides one or several service-types, like org.
- public static string[] list_get_service_types (SList<VpnPluginInfo> list, bool only_existing, bool with_abbreviations)
- public static SList<VpnPluginInfo> list_load ()
- public static bool list_remove (SList<VpnPluginInfo> list, VpnPluginInfo plugin_info)
Remove
plugin_info
fromlist
. - public static bool validate_filename (string filename)
Regular name files have a certain pattern.
Creation methods:
- protected VpnPluginInfo ()
- public VpnPluginInfo.from_file (string filename) throws Error
Read the plugin info from file
filename
. - public VpnPluginInfo.search_file (string? name, string? service)
This has the same effect as doing a full list_load followed by a search for the first matching VPN plugin info that has the given
name
and/orservice
. - public VpnPluginInfo.with_data (string filename, KeyFile keyfile) throws Error
This constructor does not read any data from file but takes instead a
keyfile
argument.
Methods:
- public unowned string[] get_aliases ()
- public unowned string get_auth_dialog ()
- public unowned VpnEditorPlugin get_editor_plugin ()
- public unowned string get_filename ()
- public unowned string get_name ()
- public unowned string get_plugin ()
- public unowned string get_program ()
- public unowned string get_service ()
- public unowned VpnEditorPlugin load_editor_plugin () throws Error
- public unowned string lookup_property (string group, string key)
- public void set_editor_plugin (VpnEditorPlugin? plugin)
Set the internal plugin instance.
- public bool supports_hints ()
- public bool supports_multiple ()
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface GLib.Initable