| 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.Structs.KeyfileHandlerData
Description
Opaque type with parameters for the callback. The actual content
depends on the NMKeyfileHandlerType.
Since: 1.30
Synopsis
- newtype KeyfileHandlerData = KeyfileHandlerData (ManagedPtr KeyfileHandlerData)
- keyfileHandlerDataFailWithError :: (HasCallStack, MonadIO m) => KeyfileHandlerData -> GError -> m ()
- keyfileHandlerDataGetContext :: (HasCallStack, MonadIO m) => KeyfileHandlerData -> m (Maybe Text, Maybe Text, Maybe Setting, Maybe Text)
- keyfileHandlerDataWarnGet :: (HasCallStack, MonadIO m) => KeyfileHandlerData -> m (Text, KeyfileWarnSeverity)
Exported types
newtype KeyfileHandlerData Source #
Memory-managed wrapper type.
Constructors
| KeyfileHandlerData (ManagedPtr KeyfileHandlerData) |
Instances
| Eq KeyfileHandlerData Source # | |
Defined in GI.NM.Structs.KeyfileHandlerData Methods (==) :: KeyfileHandlerData -> KeyfileHandlerData -> Bool # (/=) :: KeyfileHandlerData -> KeyfileHandlerData -> Bool # | |
| BoxedPtr KeyfileHandlerData Source # | |
Defined in GI.NM.Structs.KeyfileHandlerData Methods boxedPtrCopy :: KeyfileHandlerData -> IO KeyfileHandlerData # boxedPtrFree :: KeyfileHandlerData -> IO () # | |
| ManagedPtrNewtype KeyfileHandlerData Source # | |
Defined in GI.NM.Structs.KeyfileHandlerData Methods toManagedPtr :: KeyfileHandlerData -> ManagedPtr KeyfileHandlerData # | |
Methods
Click to display all available methods, including inherited ones
failWithError
keyfileHandlerDataFailWithError Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => KeyfileHandlerData |
|
| -> GError |
|
| -> m () |
Set the error for the handler. This lets the operation fail with the provided error. You may only set the error once.
src must be non-Nothing.
Note that src is no longer valid after this call. If you want
to keep using the same GError*, you need to set it to Nothing
after calling this function on it.
Since: 1.30
getContext
keyfileHandlerDataGetContext Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => KeyfileHandlerData |
|
| -> m (Maybe Text, Maybe Text, Maybe Setting, Maybe Text) |
Get context information of the current event. This function can be called on all events, but the context information may be unset.
Since: 1.30
warnGet
keyfileHandlerDataWarnGet Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => KeyfileHandlerData |
|
| -> m (Text, KeyfileWarnSeverity) |
No description available in the introspection data.
Since: 1.30