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.Objects.VpnPluginInfo
Contents
- Exported types
- Methods
- getAliases
- getAuthDialog
- getEditorPlugin
- getFilename
- getName
- getPlugin
- getProgram
- getService
- listAdd
- listFindByFilename
- listFindByName
- listFindByService
- listFindServiceType
- listGetServiceTypes
- listLoad
- listRemove
- loadEditorPlugin
- lookupProperty
- newFromFile
- newSearchFile
- newWithData
- setEditorPlugin
- supportsHints
- supportsMultiple
- validateFilename
- Properties
Description
No description available in the introspection data.
Synopsis
- newtype VpnPluginInfo = VpnPluginInfo (ManagedPtr VpnPluginInfo)
- class (GObject o, IsDescendantOf VpnPluginInfo o) => IsVpnPluginInfo o
- toVpnPluginInfo :: (MonadIO m, IsVpnPluginInfo o) => o -> m VpnPluginInfo
- vpnPluginInfoGetAliases :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> m [Text]
- vpnPluginInfoGetAuthDialog :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> m Text
- vpnPluginInfoGetEditorPlugin :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> m VpnEditorPlugin
- vpnPluginInfoGetFilename :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> m Text
- vpnPluginInfoGetName :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> m Text
- vpnPluginInfoGetPlugin :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> m Text
- vpnPluginInfoGetProgram :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> m Text
- vpnPluginInfoGetService :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> m Text
- vpnPluginInfoListAdd :: (HasCallStack, MonadIO m, IsVpnPluginInfo a, IsVpnPluginInfo b) => [a] -> b -> m ()
- vpnPluginInfoListFindByFilename :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => [a] -> Text -> m VpnPluginInfo
- vpnPluginInfoListFindByName :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => [a] -> Text -> m VpnPluginInfo
- vpnPluginInfoListFindByService :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => [a] -> Text -> m VpnPluginInfo
- vpnPluginInfoListFindServiceType :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => [a] -> Text -> m Text
- vpnPluginInfoListGetServiceTypes :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => [a] -> Bool -> Bool -> m [Text]
- vpnPluginInfoListLoad :: (HasCallStack, MonadIO m) => m [VpnPluginInfo]
- vpnPluginInfoListRemove :: (HasCallStack, MonadIO m, IsVpnPluginInfo a, IsVpnPluginInfo b) => [a] -> b -> m Bool
- vpnPluginInfoLoadEditorPlugin :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> m VpnEditorPlugin
- vpnPluginInfoLookupProperty :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> Text -> Text -> m Text
- vpnPluginInfoNewFromFile :: (HasCallStack, MonadIO m) => Text -> m VpnPluginInfo
- vpnPluginInfoNewSearchFile :: (HasCallStack, MonadIO m) => Maybe Text -> Maybe Text -> m (Maybe VpnPluginInfo)
- vpnPluginInfoNewWithData :: (HasCallStack, MonadIO m) => Text -> KeyFile -> m VpnPluginInfo
- vpnPluginInfoSetEditorPlugin :: (HasCallStack, MonadIO m, IsVpnPluginInfo a, IsVpnEditorPlugin b) => a -> Maybe b -> m ()
- vpnPluginInfoSupportsHints :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> m Bool
- vpnPluginInfoSupportsMultiple :: (HasCallStack, MonadIO m, IsVpnPluginInfo a) => a -> m Bool
- vpnPluginInfoValidateFilename :: (HasCallStack, MonadIO m) => Text -> m Bool
- constructVpnPluginInfoFilename :: (IsVpnPluginInfo o, MonadIO m) => Text -> m (GValueConstruct o)
- getVpnPluginInfoFilename :: (MonadIO m, IsVpnPluginInfo o) => o -> m Text
- constructVpnPluginInfoKeyfile :: (IsVpnPluginInfo o, MonadIO m) => KeyFile -> m (GValueConstruct o)
- getVpnPluginInfoName :: (MonadIO m, IsVpnPluginInfo o) => o -> m Text
Exported types
newtype VpnPluginInfo Source #
Memory-managed wrapper type.
Constructors
VpnPluginInfo (ManagedPtr VpnPluginInfo) |
Instances
Eq VpnPluginInfo Source # | |
Defined in GI.NM.Objects.VpnPluginInfo Methods (==) :: VpnPluginInfo -> VpnPluginInfo -> Bool # (/=) :: VpnPluginInfo -> VpnPluginInfo -> Bool # | |
GObject VpnPluginInfo Source # | |
Defined in GI.NM.Objects.VpnPluginInfo | |
ManagedPtrNewtype VpnPluginInfo Source # | |
Defined in GI.NM.Objects.VpnPluginInfo Methods | |
TypedObject VpnPluginInfo Source # | |
Defined in GI.NM.Objects.VpnPluginInfo | |
HasParentTypes VpnPluginInfo Source # | |
Defined in GI.NM.Objects.VpnPluginInfo | |
IsGValue (Maybe VpnPluginInfo) Source # | Convert |
Defined in GI.NM.Objects.VpnPluginInfo Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe VpnPluginInfo -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe VpnPluginInfo) # | |
type ParentTypes VpnPluginInfo Source # | |
Defined in GI.NM.Objects.VpnPluginInfo |
class (GObject o, IsDescendantOf VpnPluginInfo o) => IsVpnPluginInfo o Source #
Type class for types which can be safely cast to VpnPluginInfo
, for instance with toVpnPluginInfo
.
Instances
(GObject o, IsDescendantOf VpnPluginInfo o) => IsVpnPluginInfo o Source # | |
Defined in GI.NM.Objects.VpnPluginInfo |
toVpnPluginInfo :: (MonadIO m, IsVpnPluginInfo o) => o -> m VpnPluginInfo Source #
Cast to VpnPluginInfo
, 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, forceFloating, freezeNotify, getv, init, isFloating, loadEditorPlugin, lookupProperty, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, supportsHints, supportsMultiple, thawNotify, unref, watchClosure.
Getters
getAliases, getAuthDialog, getData, getEditorPlugin, getFilename, getName, getPlugin, getProgram, getProperty, getQdata, getService.
Setters
getAliases
vpnPluginInfoGetAliases Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> m [Text] | Returns: the aliases from the name-file. |
No description available in the introspection data.
Since: 1.4
getAuthDialog
vpnPluginInfoGetAuthDialog Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> m Text | Returns: the absolute path to the auth-dialog helper or |
No description available in the introspection data.
Since: 1.4
getEditorPlugin
vpnPluginInfoGetEditorPlugin Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> m VpnEditorPlugin | Returns: the cached |
No description available in the introspection data.
Since: 1.2
getFilename
vpnPluginInfoGetFilename Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> m Text | Returns: the filename. Can be |
No description available in the introspection data.
Since: 1.2
getName
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> m Text | Returns: the name. Cannot be |
No description available in the introspection data.
Since: 1.2
getPlugin
vpnPluginInfoGetPlugin Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> m Text | Returns: the plugin. Can be |
No description available in the introspection data.
Since: 1.2
getProgram
vpnPluginInfoGetProgram Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> m Text | Returns: the program. Can be |
No description available in the introspection data.
Since: 1.2
getService
vpnPluginInfoGetService Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> m Text | Returns: the service. Cannot be |
No description available in the introspection data.
Since: 1.4
listAdd
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a, IsVpnPluginInfo b) | |
=> [a] |
|
-> b |
|
-> m () | (Can throw |
No description available in the introspection data.
Since: 1.2
listFindByFilename
vpnPluginInfoListFindByFilename Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> [a] |
|
-> Text |
|
-> m VpnPluginInfo | Returns: the first plugin with a matching |
No description available in the introspection data.
Since: 1.2
listFindByName
vpnPluginInfoListFindByName Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> [a] |
|
-> Text |
|
-> m VpnPluginInfo | Returns: the first plugin with a matching |
No description available in the introspection data.
Since: 1.2
listFindByService
vpnPluginInfoListFindByService Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> [a] |
|
-> Text |
|
-> m VpnPluginInfo | Returns: the first plugin with a matching |
No description available in the introspection data.
Since: 1.2
listFindServiceType
vpnPluginInfoListFindServiceType Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> [a] |
|
-> Text |
|
-> m Text | Returns: the resolved service-type or |
A VPN plugin provides one or several service-types, like org.freedesktop.NetworkManager.libreswan Certain plugins provide more then one service type, via aliases (org.freedesktop.NetworkManager.openswan). This function looks up a service-type (or an alias) based on a name.
Preferably, the name can be a full service-type/alias of an installed
plugin. Otherwise, it can be the name of a VPN plugin (in which case, the
primary, non-aliased service-type is returned). Otherwise, it can be
one of several well known short-names (which is a hard-coded list of
types in libnm). On success, this returns a full qualified service-type
(or an alias). It doesn't say, that such an plugin is actually available,
but it could be retrieved via vpnPluginInfoListFindByService
.
Since: 1.4
listGetServiceTypes
vpnPluginInfoListGetServiceTypes Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> [a] |
|
-> Bool |
|
-> Bool |
|
-> m [Text] | Returns: a |
No description available in the introspection data.
Since: 1.4
listLoad
vpnPluginInfoListLoad Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> m [VpnPluginInfo] | Returns: list of plugins loaded from the default directories rejecting duplicates. |
No description available in the introspection data.
Since: 1.2
listRemove
vpnPluginInfoListRemove Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a, IsVpnPluginInfo b) | |
=> [a] |
|
-> b |
|
-> m Bool | Returns: |
Remove pluginInfo
from list
.
Since: 1.2
loadEditorPlugin
vpnPluginInfoLoadEditorPlugin Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> m VpnEditorPlugin | Returns: loads the plugin and returns the newly created
instance. The plugin is owned by |
No description available in the introspection data.
Since: 1.2
lookupProperty
vpnPluginInfoLookupProperty Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m Text | Returns: |
No description available in the introspection data.
Since: 1.2
newFromFile
vpnPluginInfoNewFromFile Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m VpnPluginInfo | Returns: |
Read the plugin info from file filename
. Does not do
any further verification on the file. You might want to check
file permissions and ownership of the file.
Since: 1.2
newSearchFile
vpnPluginInfoNewSearchFile Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Maybe Text |
|
-> Maybe Text |
|
-> m (Maybe VpnPluginInfo) | Returns: a newly created instance of plugin info
or |
This has the same effect as doing a full vpnPluginInfoListLoad
followed by a search for the first matching VPN plugin info that has the
given name
and/or service
.
Since: 1.4
newWithData
vpnPluginInfoNewWithData Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> KeyFile |
|
-> m VpnPluginInfo | Returns: new plugin info instance. (Can throw |
This constructor does not read any data from file but
takes instead a keyfile
argument.
Since: 1.2
setEditorPlugin
vpnPluginInfoSetEditorPlugin Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a, IsVpnEditorPlugin b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Set the internal plugin instance. If Nothing
, only clear the previous instance.
Since: 1.2
supportsHints
vpnPluginInfoSupportsHints Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> m Bool | Returns: |
No description available in the introspection data.
Since: 1.4
supportsMultiple
vpnPluginInfoSupportsMultiple Source #
Arguments
:: (HasCallStack, MonadIO m, IsVpnPluginInfo a) | |
=> a |
|
-> m Bool | Returns: |
No description available in the introspection data.
Since: 1.42
validateFilename
vpnPluginInfoValidateFilename Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m Bool |
Regular name files have a certain pattern. That basically means
they have the file extension "name". Check if filename
is valid according to that pattern.
Since: 1.2
Properties
filename
The filename from which the info was loaded.
Can be Nothing
if the instance was not loaded from
a file (i.e. the keyfile instance was passed to the
constructor).
Since: 1.2
constructVpnPluginInfoFilename :: (IsVpnPluginInfo o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “filename
” property. This is rarely needed directly, but it is used by new
.
getVpnPluginInfoFilename :: (MonadIO m, IsVpnPluginInfo o) => o -> m Text Source #
Get the value of the “filename
” property.
When overloading is enabled, this is equivalent to
get
vpnPluginInfo #filename
keyfile
Initialize the instance with a different keyfile instance. When passing a keyfile instance, the constructor will not try to read from filename.
Since: 1.2
constructVpnPluginInfoKeyfile :: (IsVpnPluginInfo o, MonadIO m) => KeyFile -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “keyfile
” property. This is rarely needed directly, but it is used by new
.
name
The name of the VPN plugin.
Since: 1.2
getVpnPluginInfoName :: (MonadIO m, IsVpnPluginInfo o) => o -> m Text Source #
Get the value of the “name
” property.
When overloading is enabled, this is equivalent to
get
vpnPluginInfo #name