Interface

NM-1.0NMVpnEditorPluginInterface

Interface for implementing VpnEditorPlugin. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_export_to_file(path: string, connection: NM.Connection): boolean;
    vfunc_get_capabilities(): NM.VpnEditorPluginCapability;
    vfunc_get_editor(connection: NM.Connection): NM.VpnEditor;
    vfunc_get_suggested_filename(connection: NM.Connection): string;
    vfunc_get_vt(out_vt_size: number): VpnEditorPluginVT;
    vfunc_notify_plugin_info_set(plugin_info: NM.VpnPluginInfo): void;
}

Hierarchy (View Summary)

Index

Methods

  • Export the given connection to the specified path. Return true on success. On error, return false and set error with additional error information. Note that error can be null, in which case no additional error information should be provided.

    Parameters

    Returns boolean

  • For a given connection, return a suggested file name. Returned value will be null or a suggested file name to be freed by the caller.

    Parameters

    Returns string

  • return a virtual function table to implement further functions in the plugin, without requiring to update libnm. Used by nm_vpn_editor_plugin_get_vt().

    Parameters

    • out_vt_size: number

    Returns VpnEditorPluginVT