Top |
Functions
Object Hierarchy
GFlags ╰── NMVpnEditorPluginCapability GInterface ├── NMVpnEditor ╰── NMVpnEditorPlugin
Functions
nm_vpn_editor_plugin_get_editor ()
NMVpnEditor * nm_vpn_editor_plugin_get_editor (NMVpnEditorPlugin *plugin
,NMConnection *connection
,GError **error
);
nm_vpn_editor_plugin_get_capabilities ()
NMVpnEditorPluginCapability
nm_vpn_editor_plugin_get_capabilities (NMVpnEditorPlugin *plugin
);
nm_vpn_editor_plugin_import ()
NMConnection * nm_vpn_editor_plugin_import (NMVpnEditorPlugin *plugin
,const char *path
,GError **error
);
nm_vpn_editor_plugin_export ()
gboolean nm_vpn_editor_plugin_export (NMVpnEditorPlugin *plugin
,const char *path
,NMConnection *connection
,GError **error
);
nm_vpn_editor_plugin_get_suggested_filename ()
char * nm_vpn_editor_plugin_get_suggested_filename (NMVpnEditorPlugin *plugin
,NMConnection *connection
);
nm_vpn_editor_update_connection ()
gboolean nm_vpn_editor_update_connection (NMVpnEditor *editor
,NMConnection *connection
,GError **error
);
Types and Values
enum NMVpnEditorPluginCapability
Flags that indicate certain capabilities of the plugin to editor programs.
NMVpnEditorPluginInterface
typedef struct { GTypeInterface g_iface; NMVpnEditor * (*get_editor) (NMVpnEditorPlugin *plugin, NMConnection *connection, GError **error); NMVpnEditorPluginCapability (*get_capabilities) (NMVpnEditorPlugin *plugin); NMConnection * (*import_from_file) (NMVpnEditorPlugin *plugin, const char *path, GError **error); gboolean (*export_to_file) (NMVpnEditorPlugin *plugin, const char *path, NMConnection *connection, GError **error); char * (*get_suggested_filename) (NMVpnEditorPlugin *plugin, NMConnection *connection); } NMVpnEditorPluginInterface;
Interface for VPN editor plugins.
Members
the parent interface |
||
returns an NMVpnEditor, pre-filled with values from |
||
returns a bitmask of capabilities. |
||
Try to import a connection from the specified path. On
success, return a partial NMConnection object. On error, return |
||
Export the given connection to the specified path. Return
|
||
For a given connection, return a suggested file
name. Returned value will be |
NMVpnEditorInterface
typedef struct { GTypeInterface g_iface; GObject * (*get_widget) (NMVpnEditor *editor); void (*placeholder) (void); gboolean (*update_connection) (NMVpnEditor *editor, NMConnection *connection, GError **error); void (*changed) (NMVpnEditor *editor); } NMVpnEditorInterface;
Interface for editing a specific NMConnection
Members
the parent interface |
||
return the GtkWidget for the VPN editor's UI |
||
not currently used |
||
called to save the user-entered options to the connection
object. Should return |
||
emitted when the value of a UI widget changes. May trigger a
validity check via |
Signal Details
The “changed”
signal
void user_function (NMVpnEditor *nmvpneditor, gpointer user_data)
Flags: Run First