Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.NM.Interfaces.VpnEditorPlugin
Description
No description available in the introspection data.
Synopsis
- newtype VpnEditorPlugin = VpnEditorPlugin (ManagedPtr VpnEditorPlugin)
- class (GObject o, IsDescendantOf VpnEditorPlugin o) => IsVpnEditorPlugin o
- toVpnEditorPlugin :: (MonadIO m, IsVpnEditorPlugin o) => o -> m VpnEditorPlugin
- vpnEditorPluginExport :: (HasCallStack, MonadIO m, IsVpnEditorPlugin a, IsConnection b) => a -> Text -> b -> m ()
- vpnEditorPluginGetCapabilities :: (HasCallStack, MonadIO m, IsVpnEditorPlugin a) => a -> m [VpnEditorPluginCapability]
- vpnEditorPluginGetEditor :: (HasCallStack, MonadIO m, IsVpnEditorPlugin a, IsConnection b) => a -> b -> m VpnEditor
- vpnEditorPluginGetPluginInfo :: (HasCallStack, MonadIO m, IsVpnEditorPlugin a) => a -> m VpnPluginInfo
- vpnEditorPluginGetSuggestedFilename :: (HasCallStack, MonadIO m, IsVpnEditorPlugin a, IsConnection b) => a -> b -> m Text
- vpnEditorPluginImport :: (HasCallStack, MonadIO m, IsVpnEditorPlugin a) => a -> Text -> m Connection
- vpnEditorPluginLoad :: (HasCallStack, MonadIO m) => Text -> Text -> m VpnEditorPlugin
- vpnEditorPluginLoadFromFile :: (HasCallStack, MonadIO m) => Text -> Text -> Int32 -> FunPtr C_UtilsCheckFilePredicate -> m VpnEditorPlugin
- vpnEditorPluginSetPluginInfo :: (HasCallStack, MonadIO m, IsVpnEditorPlugin a, IsVpnPluginInfo b) => a -> Maybe b -> m ()
- getVpnEditorPluginDescription :: (MonadIO m, IsVpnEditorPlugin o) => o -> m (Maybe Text)
- getVpnEditorPluginName :: (MonadIO m, IsVpnEditorPlugin o) => o -> m (Maybe Text)
- getVpnEditorPluginService :: (MonadIO m, IsVpnEditorPlugin o) => o -> m (Maybe Text)
Exported types
newtype VpnEditorPlugin Source #
Memory-managed wrapper type.
Constructors
VpnEditorPlugin (ManagedPtr VpnEditorPlugin) |
Instances
Eq VpnEditorPlugin Source # | |
Defined in GI.NM.Interfaces.VpnEditorPlugin Methods (==) :: VpnEditorPlugin -> VpnEditorPlugin -> Bool # (/=) :: VpnEditorPlugin -> VpnEditorPlugin -> Bool # | |
GObject VpnEditorPlugin Source # | |
Defined in GI.NM.Interfaces.VpnEditorPlugin | |
ManagedPtrNewtype VpnEditorPlugin Source # | |
Defined in GI.NM.Interfaces.VpnEditorPlugin Methods toManagedPtr :: VpnEditorPlugin -> ManagedPtr VpnEditorPlugin # | |
TypedObject VpnEditorPlugin Source # | |
Defined in GI.NM.Interfaces.VpnEditorPlugin | |
HasParentTypes VpnEditorPlugin Source # | |
Defined in GI.NM.Interfaces.VpnEditorPlugin | |
IsGValue (Maybe VpnEditorPlugin) Source # | Convert |
Defined in GI.NM.Interfaces.VpnEditorPlugin Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe VpnEditorPlugin -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe VpnEditorPlugin) # | |
type ParentTypes VpnEditorPlugin Source # | |
Defined in GI.NM.Interfaces.VpnEditorPlugin |
class (GObject o, IsDescendantOf VpnEditorPlugin o) => IsVpnEditorPlugin o Source #
Type class for types which can be safely cast to VpnEditorPlugin
, for instance with toVpnEditorPlugin
.
Instances
(GObject o, IsDescendantOf VpnEditorPlugin o) => IsVpnEditorPlugin o Source # | |
Defined in GI.NM.Interfaces.VpnEditorPlugin |
toVpnEditorPlugin :: (MonadIO m, IsVpnEditorPlugin o) => o -> m VpnEditorPlugin Source #
Cast to VpnEditorPlugin
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, export, forceFloating, freezeNotify, getv, import, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCapabilities, getData, getEditor, getPluginInfo, getProperty, getQdata, getSuggestedFilename, getVt.
Setters
export
vpnEditorPluginExport Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnEditorPlugin a, IsConnection b) | |
=> a | |
-> Text | |
-> b | |
-> m () | (Can throw |
No description available in the introspection data.
getCapabilities
vpnEditorPluginGetCapabilities :: (HasCallStack, MonadIO m, IsVpnEditorPlugin a) => a -> m [VpnEditorPluginCapability] Source #
No description available in the introspection data.
getEditor
vpnEditorPluginGetEditor Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnEditorPlugin a, IsConnection b) | |
=> a |
|
-> b |
|
-> m VpnEditor | Returns: a new |
No description available in the introspection data.
getPluginInfo
vpnEditorPluginGetPluginInfo Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnEditorPlugin a) | |
=> a |
|
-> m VpnPluginInfo | Returns: if set, return the |
No description available in the introspection data.
Since: 1.4
getSuggestedFilename
vpnEditorPluginGetSuggestedFilename :: (HasCallStack, MonadIO m, IsVpnEditorPlugin a, IsConnection b) => a -> b -> m Text Source #
No description available in the introspection data.
import
vpnEditorPluginImport Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnEditorPlugin a) | |
=> a |
|
-> Text |
|
-> m Connection | Returns: a new |
No description available in the introspection data.
load
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Text |
|
-> m VpnEditorPlugin | Returns: a new plugin instance or |
Load the shared library pluginName
and create a new
VpnEditorPlugin
instance via the NMVpnEditorPluginFactory
function.
This is similar to vpnEditorPluginLoadFromFile
, but
it does no validation of the plugin name, instead passes it directly
to dlopen()
. If you have the full path to a plugin file,
vpnEditorPluginLoadFromFile
is preferred.
Since: 1.4
loadFromFile
vpnEditorPluginLoadFromFile Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Text |
|
-> Int32 |
|
-> FunPtr C_UtilsCheckFilePredicate |
|
-> m VpnEditorPlugin | Returns: a new plugin instance or |
Load the shared library pluginName
and create a new
VpnEditorPlugin
instance via the NMVpnEditorPluginFactory
function.
If pluginName
is not an absolute path name, it assumes the file
is in the plugin directory of NetworkManager. In any case, the call
will do certain checks on the file before passing it to dlopen.
A consequence for that is, that you cannot omit the ".so" suffix
as you could for vpnEditorPluginLoad
.
Since: 1.2
setPluginInfo
vpnEditorPluginSetPluginInfo Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnEditorPlugin a, IsVpnPluginInfo b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Set or clear the plugin-info instance.
This takes a weak reference on pluginInfo
, to avoid circular
reference as the plugin-info might also reference the editor-plugin.
Since: 1.4
Properties
description
Longer description of the VPN plugin.
getVpnEditorPluginDescription :: (MonadIO m, IsVpnEditorPlugin o) => o -> m (Maybe Text) Source #
Get the value of the “description
” property.
When overloading is enabled, this is equivalent to
get
vpnEditorPlugin #description
name
Short display name of the VPN plugin.
getVpnEditorPluginName :: (MonadIO m, IsVpnEditorPlugin o) => o -> m (Maybe Text) Source #
Get the value of the “name
” property.
When overloading is enabled, this is equivalent to
get
vpnEditorPlugin #name
service
D-Bus service name of the plugin's VPN service.
getVpnEditorPluginService :: (MonadIO m, IsVpnEditorPlugin o) => o -> m (Maybe Text) Source #
Get the value of the “service
” property.
When overloading is enabled, this is equivalent to
get
vpnEditorPlugin #service