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.SettingBond
Description
Bonding Settings
Synopsis
- newtype SettingBond = SettingBond (ManagedPtr SettingBond)
- class (GObject o, IsDescendantOf SettingBond o) => IsSettingBond o
- toSettingBond :: (MonadIO m, IsSettingBond o) => o -> m SettingBond
- settingBondAddOption :: (HasCallStack, MonadIO m, IsSettingBond a) => a -> Text -> Text -> m Bool
- settingBondGetNumOptions :: (HasCallStack, MonadIO m, IsSettingBond a) => a -> m Word32
- settingBondGetOption :: (HasCallStack, MonadIO m, IsSettingBond a) => a -> Word32 -> m (Bool, Text, Text)
- settingBondGetOptionByName :: (HasCallStack, MonadIO m, IsSettingBond a) => a -> Text -> m Text
- settingBondGetOptionDefault :: (HasCallStack, MonadIO m, IsSettingBond a) => a -> Text -> m Text
- settingBondGetOptionNormalized :: (HasCallStack, MonadIO m, IsSettingBond a) => a -> Text -> m Text
- settingBondGetValidOptions :: (HasCallStack, MonadIO m, IsSettingBond a) => Maybe a -> m (Maybe [Text])
- settingBondNew :: (HasCallStack, MonadIO m) => m SettingBond
- settingBondRemoveOption :: (HasCallStack, MonadIO m, IsSettingBond a) => a -> Text -> m Bool
- settingBondValidateOption :: (HasCallStack, MonadIO m) => Text -> Maybe Text -> m Bool
- clearSettingBondOptions :: (MonadIO m, IsSettingBond o) => o -> m ()
- constructSettingBondOptions :: (IsSettingBond o, MonadIO m) => Map Text Text -> m (GValueConstruct o)
- getSettingBondOptions :: (MonadIO m, IsSettingBond o) => o -> m (Maybe (Map Text Text))
- setSettingBondOptions :: (MonadIO m, IsSettingBond o) => o -> Map Text Text -> m ()
Exported types
newtype SettingBond Source #
Memory-managed wrapper type.
Constructors
SettingBond (ManagedPtr SettingBond) |
Instances
Eq SettingBond Source # | |
Defined in GI.NM.Objects.SettingBond | |
GObject SettingBond Source # | |
Defined in GI.NM.Objects.SettingBond | |
ManagedPtrNewtype SettingBond Source # | |
Defined in GI.NM.Objects.SettingBond Methods | |
TypedObject SettingBond Source # | |
Defined in GI.NM.Objects.SettingBond | |
HasParentTypes SettingBond Source # | |
Defined in GI.NM.Objects.SettingBond | |
IsGValue (Maybe SettingBond) Source # | Convert |
Defined in GI.NM.Objects.SettingBond Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingBond -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingBond) # | |
type ParentTypes SettingBond Source # | |
Defined in GI.NM.Objects.SettingBond |
class (GObject o, IsDescendantOf SettingBond o) => IsSettingBond o Source #
Type class for types which can be safely cast to SettingBond
, for instance with toSettingBond
.
Instances
(GObject o, IsDescendantOf SettingBond o) => IsSettingBond o Source # | |
Defined in GI.NM.Objects.SettingBond |
toSettingBond :: (MonadIO m, IsSettingBond o) => o -> m SettingBond Source #
Cast to SettingBond
, 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
addOption, bindProperty, bindPropertyFull, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, removeOption, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getData, getDbusPropertyType, getName, getNumOptions, getOption, getOptionByName, getOptionDefault, getOptionNormalized, getProperty, getQdata, getSecretFlags, getValidOptions.
Setters
addOption
Arguments
:: (HasCallStack, MonadIO m, IsSettingBond a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m Bool | Returns: returns Note: Before 1.30, libnm would perform basic validation of the name and the value
via |
Add an option to the table. Adding a new name replaces any existing name/value pair that may already exist.
getNumOptions
settingBondGetNumOptions Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBond a) | |
=> a |
|
-> m Word32 | Returns: the number of bonding options |
Returns the number of options that should be set for this bond when it
is activated. This can be used to retrieve each option individually
using settingBondGetOption
.
getOption
Arguments
:: (HasCallStack, MonadIO m, IsSettingBond a) | |
=> a |
|
-> Word32 |
|
-> m (Bool, Text, Text) | Returns: |
Given an index, return the value of the bonding option at that index. Indexes
are *not* guaranteed to be static across modifications to options done by
settingBondAddOption
and settingBondRemoveOption
,
and should not be used to refer to options except for short periods of time
such as during option iteration.
getOptionByName
settingBondGetOptionByName Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBond a) | |
=> a |
|
-> Text |
|
-> m Text | Returns: the value, or |
Returns the value associated with the bonding option specified by
name
, if it exists.
getOptionDefault
settingBondGetOptionDefault Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBond a) | |
=> a |
|
-> Text |
|
-> m Text | Returns: the value of the bond option if not overridden by an entry in the SettingBond:options property. |
No description available in the introspection data.
getOptionNormalized
settingBondGetOptionNormalized Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBond a) | |
=> a |
|
-> Text |
|
-> m Text | Returns: the value of the bond option after normalization, which is what NetworkManager
will actually apply when activating the connection. |
No description available in the introspection data.
Since: 1.24
getValidOptions
settingBondGetValidOptions Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBond a) | |
=> Maybe a |
|
-> m (Maybe [Text]) | Returns: a |
Returns a list of valid bond options.
The setting
argument is unused and may be passed as Nothing
.
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingBond | Returns: the new empty |
Creates a new SettingBond
object with default values.
removeOption
settingBondRemoveOption Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingBond a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Remove the bonding option referenced by name
from the internal option
list.
validateOption
settingBondValidateOption Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Maybe Text |
|
-> m Bool | Returns: |
Checks whether name
is a valid bond option and value
is a valid value for
the name
. If value
is Nothing
, the function only validates the option name.
Properties
options
Dictionary of key/value pairs of bonding options. Both keys and values must be strings. Option names must contain only alphanumeric characters (ie, [a-zA-Z0-9]).
clearSettingBondOptions :: (MonadIO m, IsSettingBond o) => o -> m () Source #
Set the value of the “options
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#options
constructSettingBondOptions :: (IsSettingBond o, MonadIO m) => Map Text Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “options
” property. This is rarely needed directly, but it is used by new
.
getSettingBondOptions :: (MonadIO m, IsSettingBond o) => o -> m (Maybe (Map Text Text)) Source #
Get the value of the “options
” property.
When overloading is enabled, this is equivalent to
get
settingBond #options
setSettingBondOptions :: (MonadIO m, IsSettingBond o) => o -> Map Text Text -> m () Source #
Set the value of the “options
” property.
When overloading is enabled, this is equivalent to
set
settingBond [ #options:=
value ]