Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
HSR/PRP Settings
Synopsis
- newtype SettingHsr = SettingHsr (ManagedPtr SettingHsr)
- class (GObject o, IsDescendantOf SettingHsr o) => IsSettingHsr o
- toSettingHsr :: (MonadIO m, IsSettingHsr o) => o -> m SettingHsr
- settingHsrGetMulticastSpec :: (HasCallStack, MonadIO m, IsSettingHsr a) => a -> m Word32
- settingHsrGetPort1 :: (HasCallStack, MonadIO m, IsSettingHsr a) => a -> m Text
- settingHsrGetPort2 :: (HasCallStack, MonadIO m, IsSettingHsr a) => a -> m Text
- settingHsrGetPrp :: (HasCallStack, MonadIO m, IsSettingHsr a) => a -> m Bool
- settingHsrNew :: (HasCallStack, MonadIO m) => m SettingHsr
- constructSettingHsrMulticastSpec :: (IsSettingHsr o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingHsrMulticastSpec :: (MonadIO m, IsSettingHsr o) => o -> m Word32
- setSettingHsrMulticastSpec :: (MonadIO m, IsSettingHsr o) => o -> Word32 -> m ()
- clearSettingHsrPort1 :: (MonadIO m, IsSettingHsr o) => o -> m ()
- constructSettingHsrPort1 :: (IsSettingHsr o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingHsrPort1 :: (MonadIO m, IsSettingHsr o) => o -> m Text
- setSettingHsrPort1 :: (MonadIO m, IsSettingHsr o) => o -> Text -> m ()
- clearSettingHsrPort2 :: (MonadIO m, IsSettingHsr o) => o -> m ()
- constructSettingHsrPort2 :: (IsSettingHsr o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingHsrPort2 :: (MonadIO m, IsSettingHsr o) => o -> m Text
- setSettingHsrPort2 :: (MonadIO m, IsSettingHsr o) => o -> Text -> m ()
- constructSettingHsrPrp :: (IsSettingHsr o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSettingHsrPrp :: (MonadIO m, IsSettingHsr o) => o -> m Bool
- setSettingHsrPrp :: (MonadIO m, IsSettingHsr o) => o -> Bool -> m ()
Exported types
newtype SettingHsr Source #
Memory-managed wrapper type.
Instances
Eq SettingHsr Source # | |
Defined in GI.NM.Objects.SettingHsr (==) :: SettingHsr -> SettingHsr -> Bool # (/=) :: SettingHsr -> SettingHsr -> Bool # | |
GObject SettingHsr Source # | |
Defined in GI.NM.Objects.SettingHsr | |
ManagedPtrNewtype SettingHsr Source # | |
Defined in GI.NM.Objects.SettingHsr | |
TypedObject SettingHsr Source # | |
Defined in GI.NM.Objects.SettingHsr | |
HasParentTypes SettingHsr Source # | |
Defined in GI.NM.Objects.SettingHsr | |
IsGValue (Maybe SettingHsr) Source # | Convert |
Defined in GI.NM.Objects.SettingHsr gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingHsr -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingHsr) # | |
type ParentTypes SettingHsr Source # | |
Defined in GI.NM.Objects.SettingHsr |
class (GObject o, IsDescendantOf SettingHsr o) => IsSettingHsr o Source #
Type class for types which can be safely cast to SettingHsr
, for instance with toSettingHsr
.
Instances
(GObject o, IsDescendantOf SettingHsr o) => IsSettingHsr o Source # | |
Defined in GI.NM.Objects.SettingHsr |
toSettingHsr :: (MonadIO m, IsSettingHsr o) => o -> m SettingHsr Source #
Cast to SettingHsr
, 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, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getData, getDbusPropertyType, getMulticastSpec, getName, getPort1, getPort2, getProperty, getPrp, getQdata, getSecretFlags.
Setters
getMulticastSpec
settingHsrGetMulticastSpec Source #
:: (HasCallStack, MonadIO m, IsSettingHsr a) | |
=> a |
|
-> m Word32 | Returns: the |
No description available in the introspection data.
Since: 1.46
getPort1
:: (HasCallStack, MonadIO m, IsSettingHsr a) | |
=> a |
|
-> m Text | Returns: the SettingHsr:port1 property of the setting |
No description available in the introspection data.
Since: 1.46
getPort2
:: (HasCallStack, MonadIO m, IsSettingHsr a) | |
=> a |
|
-> m Text | Returns: the SettingHsr:port2 property of the setting |
No description available in the introspection data.
Since: 1.46
getPrp
:: (HasCallStack, MonadIO m, IsSettingHsr a) | |
=> a |
|
-> m Bool | Returns: the SettingHsr:prp property of the setting |
No description available in the introspection data.
Since: 1.46
new
:: (HasCallStack, MonadIO m) | |
=> m SettingHsr | Returns: the new empty |
Creates a new SettingHsr
object with default values.
Since: 1.46
Properties
multicastSpec
The last byte of supervision address.
Since: 1.46
constructSettingHsrMulticastSpec :: (IsSettingHsr o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “multicast-spec
” property. This is rarely needed directly, but it is used by new
.
getSettingHsrMulticastSpec :: (MonadIO m, IsSettingHsr o) => o -> m Word32 Source #
Get the value of the “multicast-spec
” property.
When overloading is enabled, this is equivalent to
get
settingHsr #multicastSpec
setSettingHsrMulticastSpec :: (MonadIO m, IsSettingHsr o) => o -> Word32 -> m () Source #
Set the value of the “multicast-spec
” property.
When overloading is enabled, this is equivalent to
set
settingHsr [ #multicastSpec:=
value ]
port1
The port1 interface name of the HSR. This property is mandatory.
Since: 1.46
clearSettingHsrPort1 :: (MonadIO m, IsSettingHsr o) => o -> m () Source #
Set the value of the “port1
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#port1
constructSettingHsrPort1 :: (IsSettingHsr o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “port1
” property. This is rarely needed directly, but it is used by new
.
getSettingHsrPort1 :: (MonadIO m, IsSettingHsr o) => o -> m Text Source #
Get the value of the “port1
” property.
When overloading is enabled, this is equivalent to
get
settingHsr #port1
setSettingHsrPort1 :: (MonadIO m, IsSettingHsr o) => o -> Text -> m () Source #
Set the value of the “port1
” property.
When overloading is enabled, this is equivalent to
set
settingHsr [ #port1:=
value ]
port2
The port2 interface name of the HSR. This property is mandatory.
Since: 1.46
clearSettingHsrPort2 :: (MonadIO m, IsSettingHsr o) => o -> m () Source #
Set the value of the “port2
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#port2
constructSettingHsrPort2 :: (IsSettingHsr o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “port2
” property. This is rarely needed directly, but it is used by new
.
getSettingHsrPort2 :: (MonadIO m, IsSettingHsr o) => o -> m Text Source #
Get the value of the “port2
” property.
When overloading is enabled, this is equivalent to
get
settingHsr #port2
setSettingHsrPort2 :: (MonadIO m, IsSettingHsr o) => o -> Text -> m () Source #
Set the value of the “port2
” property.
When overloading is enabled, this is equivalent to
set
settingHsr [ #port2:=
value ]
prp
The protocol used by the interface, whether it is PRP or HSR.
Since: 1.46
constructSettingHsrPrp :: (IsSettingHsr o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “prp
” property. This is rarely needed directly, but it is used by new
.
getSettingHsrPrp :: (MonadIO m, IsSettingHsr o) => o -> m Bool Source #
Get the value of the “prp
” property.
When overloading is enabled, this is equivalent to
get
settingHsr #prp
setSettingHsrPrp :: (MonadIO m, IsSettingHsr o) => o -> Bool -> m () Source #
Set the value of the “prp
” property.
When overloading is enabled, this is equivalent to
set
settingHsr [ #prp:=
value ]