gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.VpnPluginOld

Description

No description available in the introspection data.

Synopsis

Exported types

class (GObject o, IsDescendantOf VpnPluginOld o) => IsVpnPluginOld o Source #

Type class for types which can be safely cast to VpnPluginOld, for instance with toVpnPluginOld.

Instances

Instances details
(GObject o, IsDescendantOf VpnPluginOld o) => IsVpnPluginOld o Source # 
Instance details

Defined in GI.NM.Objects.VpnPluginOld

toVpnPluginOld :: (MonadIO m, IsVpnPluginOld o) => o -> m VpnPluginOld Source #

Cast to VpnPluginOld, for types for which this is known to be safe. For general casts, use castTo.

Methods

disconnect

vpnPluginOldDisconnect Source #

Arguments

:: (HasCallStack, MonadIO m, IsVpnPluginOld a) 
=> a 
-> m ()

(Can throw GError)

Deprecated: (Since version 1.2)Replaced by NMVpnServicePlugin.

No description available in the introspection data.

failure

vpnPluginOldFailure :: (HasCallStack, MonadIO m, IsVpnPluginOld a) => a -> VpnPluginFailure -> m () Source #

Deprecated: (Since version 1.2)Replaced by NMVpnServicePlugin.

No description available in the introspection data.

getConnection

vpnPluginOldGetConnection :: (HasCallStack, MonadIO m, IsVpnPluginOld a) => a -> m DBusConnection Source #

Deprecated: (Since version 1.2)Replaced by NMVpnServicePlugin.

No description available in the introspection data.

getSecretFlags

vpnPluginOldGetSecretFlags Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Map (Ptr ()) (Ptr ())

data: hash table containing VPN key/value pair data items

-> Text

secretName: VPN secret key name for which to retrieve flags for

-> m (Bool, [SettingSecretFlags])

Returns: True if the flag data item was found and successfully converted to flags, False if not

Deprecated: (Since version 1.2)Replaced by NMVpnServicePlugin.

Given a VPN secret key name, attempts to find the corresponding flags data item in data. If found, converts the flags data item to SettingSecretFlags and returns it.

getState

vpnPluginOldGetState :: (HasCallStack, MonadIO m, IsVpnPluginOld a) => a -> m VpnServiceState Source #

Deprecated: (Since version 1.2)Replaced by NMVpnServicePlugin.

No description available in the introspection data.

readVpnDetails

vpnPluginOldReadVpnDetails Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Int32

fd: file descriptor to read from, usually stdin (0)

-> m (Bool, Map (Ptr ()) (Ptr ()), Map (Ptr ()) (Ptr ()))

Returns: True if reading values was successful, False if not

Deprecated: (Since version 1.2)Replaced by NMVpnServicePlugin.

Parses key/value pairs from a file descriptor (normally stdin) passed by an applet when the applet calls the authentication dialog of the VPN plugin.

secretsRequired

vpnPluginOldSecretsRequired Source #

Arguments

:: (HasCallStack, MonadIO m, IsVpnPluginOld a) 
=> a

plugin: the VpnPluginOld

-> Text

message: an information message about why secrets are required, if any

-> Text

hints: VPN specific secret names for required new secrets

-> m () 

Deprecated: (Since version 1.2)Replaced by NMVpnServicePlugin.

Called by VPN plugin implementations to signal to NetworkManager that secrets are required during the connection process. This signal may be used to request new secrets when the secrets originally provided by NetworkManager are insufficient, or the VPN process indicates that it needs additional information to complete the request.

setIp4Config

vpnPluginOldSetIp4Config :: (HasCallStack, MonadIO m, IsVpnPluginOld a) => a -> GVariant -> m () Source #

Deprecated: (Since version 1.2)Replaced by NMVpnServicePlugin.

No description available in the introspection data.

setLoginBanner

vpnPluginOldSetLoginBanner :: (HasCallStack, MonadIO m, IsVpnPluginOld a) => a -> Text -> m () Source #

Deprecated: (Since version 1.2)Replaced by NMVpnServicePlugin.

No description available in the introspection data.

setState

vpnPluginOldSetState :: (HasCallStack, MonadIO m, IsVpnPluginOld a) => a -> VpnServiceState -> m () Source #

Deprecated: (Since version 1.2)Replaced by NMVpnServicePlugin.

No description available in the introspection data.

Properties

serviceName

The D-Bus service name of this plugin.

constructVpnPluginOldServiceName :: (IsVpnPluginOld o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “service-name” property. This is rarely needed directly, but it is used by new.

getVpnPluginOldServiceName :: (MonadIO m, IsVpnPluginOld o) => o -> m (Maybe Text) Source #

Get the value of the “service-name” property. When overloading is enabled, this is equivalent to

get vpnPluginOld #serviceName

state

The state of the plugin.

constructVpnPluginOldState :: (IsVpnPluginOld o, MonadIO m) => VpnServiceState -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “state” property. This is rarely needed directly, but it is used by new.

getVpnPluginOldState :: (MonadIO m, IsVpnPluginOld o) => o -> m VpnServiceState Source #

Get the value of the “state” property. When overloading is enabled, this is equivalent to

get vpnPluginOld #state

setVpnPluginOldState :: (MonadIO m, IsVpnPluginOld o) => o -> VpnServiceState -> m () Source #

Set the value of the “state” property. When overloading is enabled, this is equivalent to

set vpnPluginOld [ #state := value ]

Signals

config

type VpnPluginOldConfigCallback = GVariant -> IO () Source #

No description available in the introspection data.

afterVpnPluginOldConfig :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldConfigCallback) -> m SignalHandlerId Source #

Connect a signal handler for the config signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after vpnPluginOld #config callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onVpnPluginOldConfig :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldConfigCallback) -> m SignalHandlerId Source #

Connect a signal handler for the config signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on vpnPluginOld #config callback

failure

type VpnPluginOldFailureCallback = Word32 -> IO () Source #

No description available in the introspection data.

afterVpnPluginOldFailure :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldFailureCallback) -> m SignalHandlerId Source #

Connect a signal handler for the failure signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after vpnPluginOld #failure callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onVpnPluginOldFailure :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldFailureCallback) -> m SignalHandlerId Source #

Connect a signal handler for the failure signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on vpnPluginOld #failure callback

ip4Config

type VpnPluginOldIp4ConfigCallback = GVariant -> IO () Source #

No description available in the introspection data.

afterVpnPluginOldIp4Config :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldIp4ConfigCallback) -> m SignalHandlerId Source #

Connect a signal handler for the ip4Config signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after vpnPluginOld #ip4Config callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onVpnPluginOldIp4Config :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldIp4ConfigCallback) -> m SignalHandlerId Source #

Connect a signal handler for the ip4Config signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on vpnPluginOld #ip4Config callback

ip6Config

type VpnPluginOldIp6ConfigCallback = GVariant -> IO () Source #

No description available in the introspection data.

afterVpnPluginOldIp6Config :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldIp6ConfigCallback) -> m SignalHandlerId Source #

Connect a signal handler for the ip6Config signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after vpnPluginOld #ip6Config callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onVpnPluginOldIp6Config :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldIp6ConfigCallback) -> m SignalHandlerId Source #

Connect a signal handler for the ip6Config signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on vpnPluginOld #ip6Config callback

loginBanner

type VpnPluginOldLoginBannerCallback = Text -> IO () Source #

No description available in the introspection data.

afterVpnPluginOldLoginBanner :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldLoginBannerCallback) -> m SignalHandlerId Source #

Connect a signal handler for the loginBanner signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after vpnPluginOld #loginBanner callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onVpnPluginOldLoginBanner :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldLoginBannerCallback) -> m SignalHandlerId Source #

Connect a signal handler for the loginBanner signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on vpnPluginOld #loginBanner callback

quit

type VpnPluginOldQuitCallback = IO () Source #

No description available in the introspection data.

afterVpnPluginOldQuit :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldQuitCallback) -> m SignalHandlerId Source #

Connect a signal handler for the quit signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after vpnPluginOld #quit callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onVpnPluginOldQuit :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldQuitCallback) -> m SignalHandlerId Source #

Connect a signal handler for the quit signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on vpnPluginOld #quit callback

secretsRequired

type VpnPluginOldSecretsRequiredCallback = Text -> [Text] -> IO () Source #

No description available in the introspection data.

afterVpnPluginOldSecretsRequired :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldSecretsRequiredCallback) -> m SignalHandlerId Source #

Connect a signal handler for the secretsRequired signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after vpnPluginOld #secretsRequired callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onVpnPluginOldSecretsRequired :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldSecretsRequiredCallback) -> m SignalHandlerId Source #

Connect a signal handler for the secretsRequired signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on vpnPluginOld #secretsRequired callback

stateChanged

type VpnPluginOldStateChangedCallback = Word32 -> IO () Source #

No description available in the introspection data.

afterVpnPluginOldStateChanged :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldStateChangedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the stateChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after vpnPluginOld #stateChanged callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onVpnPluginOldStateChanged :: (IsVpnPluginOld a, MonadIO m) => a -> ((?self :: a) => VpnPluginOldStateChangedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the stateChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on vpnPluginOld #stateChanged callback