| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Gio.Structs.DBusErrorEntry
Description
Struct used in dbusErrorRegisterErrorDomain.
Since: 2.26
Synopsis
- newtype DBusErrorEntry = DBusErrorEntry (ManagedPtr DBusErrorEntry)
- newZeroDBusErrorEntry :: MonadIO m => m DBusErrorEntry
- clearDBusErrorEntryDbusErrorName :: MonadIO m => DBusErrorEntry -> m ()
- getDBusErrorEntryDbusErrorName :: MonadIO m => DBusErrorEntry -> m (Maybe Text)
- setDBusErrorEntryDbusErrorName :: MonadIO m => DBusErrorEntry -> CString -> m ()
- getDBusErrorEntryErrorCode :: MonadIO m => DBusErrorEntry -> m Int32
- setDBusErrorEntryErrorCode :: MonadIO m => DBusErrorEntry -> Int32 -> m ()
Exported types
newtype DBusErrorEntry Source #
Memory-managed wrapper type.
Constructors
| DBusErrorEntry (ManagedPtr DBusErrorEntry) |
Instances
| Eq DBusErrorEntry Source # | |
Defined in GI.Gio.Structs.DBusErrorEntry Methods (==) :: DBusErrorEntry -> DBusErrorEntry -> Bool # (/=) :: DBusErrorEntry -> DBusErrorEntry -> Bool # | |
| BoxedPtr DBusErrorEntry Source # | |
Defined in GI.Gio.Structs.DBusErrorEntry Methods boxedPtrCopy :: DBusErrorEntry -> IO DBusErrorEntry # boxedPtrFree :: DBusErrorEntry -> IO () # | |
| CallocPtr DBusErrorEntry Source # | |
Defined in GI.Gio.Structs.DBusErrorEntry Methods boxedPtrCalloc :: IO (Ptr DBusErrorEntry) # | |
| ManagedPtrNewtype DBusErrorEntry Source # | |
Defined in GI.Gio.Structs.DBusErrorEntry Methods toManagedPtr :: DBusErrorEntry -> ManagedPtr DBusErrorEntry # | |
| tag ~ 'AttrSet => Constructible DBusErrorEntry tag Source # | |
Defined in GI.Gio.Structs.DBusErrorEntry Methods new :: MonadIO m => (ManagedPtr DBusErrorEntry -> DBusErrorEntry) -> [AttrOp DBusErrorEntry tag] -> m DBusErrorEntry # | |
newZeroDBusErrorEntry :: MonadIO m => m DBusErrorEntry Source #
Construct a DBusErrorEntry struct initialized to zero.
Methods
Properties
dbusErrorName
The D-Bus error name to associate with errorCode.
clearDBusErrorEntryDbusErrorName :: MonadIO m => DBusErrorEntry -> m () Source #
Set the value of the “dbus_error_name” field to Nothing.
When overloading is enabled, this is equivalent to
clear #dbusErrorName
getDBusErrorEntryDbusErrorName :: MonadIO m => DBusErrorEntry -> m (Maybe Text) Source #
Get the value of the “dbus_error_name” field.
When overloading is enabled, this is equivalent to
get dBusErrorEntry #dbusErrorName
setDBusErrorEntryDbusErrorName :: MonadIO m => DBusErrorEntry -> CString -> m () Source #
Set the value of the “dbus_error_name” field.
When overloading is enabled, this is equivalent to
setdBusErrorEntry [ #dbusErrorName:=value ]
errorCode
An error code.
getDBusErrorEntryErrorCode :: MonadIO m => DBusErrorEntry -> m Int32 Source #
Get the value of the “error_code” field.
When overloading is enabled, this is equivalent to
get dBusErrorEntry #errorCode
setDBusErrorEntryErrorCode :: MonadIO m => DBusErrorEntry -> Int32 -> m () Source #
Set the value of the “error_code” field.
When overloading is enabled, this is equivalent to
setdBusErrorEntry [ #errorCode:=value ]