| 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.Enums
Contents
- Enumerations
- BusType
- ConverterResult
- CredentialsType
- DBusError
- DBusMessageByteOrder
- DBusMessageHeaderField
- DBusMessageType
- DataStreamByteOrder
- DataStreamNewlineType
- DriveStartStopType
- EmblemOrigin
- FileAttributeStatus
- FileAttributeType
- FileMonitorEvent
- FileType
- FilesystemPreviewType
- IOErrorEnum
- IOModuleScopeFlags
- MemoryMonitorWarningLevel
- MountOperationResult
- NetworkConnectivity
- NotificationPriority
- PasswordSave
- PollableReturn
- ResolverError
- ResolverRecordType
- ResourceError
- SocketClientEvent
- SocketFamily
- SocketListenerEvent
- SocketProtocol
- SocketType
- TlsAuthenticationMode
- TlsCertificateRequestFlags
- TlsChannelBindingError
- TlsChannelBindingType
- TlsDatabaseLookupFlags
- TlsError
- TlsInteractionResult
- TlsProtocolVersion
- TlsRehandshakeMode
- UnixSocketAddressType
- ZlibCompressorFormat
Description
Synopsis
- data BusType
- data ConverterResult
- data CredentialsType
- data DBusError
- = DBusErrorFailed
- | DBusErrorNoMemory
- | DBusErrorServiceUnknown
- | DBusErrorNameHasNoOwner
- | DBusErrorNoReply
- | DBusErrorIoError
- | DBusErrorBadAddress
- | DBusErrorNotSupported
- | DBusErrorLimitsExceeded
- | DBusErrorAccessDenied
- | DBusErrorAuthFailed
- | DBusErrorNoServer
- | DBusErrorTimeout
- | DBusErrorNoNetwork
- | DBusErrorAddressInUse
- | DBusErrorDisconnected
- | DBusErrorInvalidArgs
- | DBusErrorFileNotFound
- | DBusErrorFileExists
- | DBusErrorUnknownMethod
- | DBusErrorTimedOut
- | DBusErrorMatchRuleNotFound
- | DBusErrorMatchRuleInvalid
- | DBusErrorSpawnExecFailed
- | DBusErrorSpawnForkFailed
- | DBusErrorSpawnChildExited
- | DBusErrorSpawnChildSignaled
- | DBusErrorSpawnFailed
- | DBusErrorSpawnSetupFailed
- | DBusErrorSpawnConfigInvalid
- | DBusErrorSpawnServiceInvalid
- | DBusErrorSpawnServiceNotFound
- | DBusErrorSpawnPermissionsInvalid
- | DBusErrorSpawnFileInvalid
- | DBusErrorSpawnNoMemory
- | DBusErrorUnixProcessIdUnknown
- | DBusErrorInvalidSignature
- | DBusErrorInvalidFileContent
- | DBusErrorSelinuxSecurityContextUnknown
- | DBusErrorAdtAuditDataUnknown
- | DBusErrorObjectPathInUse
- | DBusErrorUnknownObject
- | DBusErrorUnknownInterface
- | DBusErrorUnknownProperty
- | DBusErrorPropertyReadOnly
- | AnotherDBusError Int
- catchDBusError :: IO a -> (DBusError -> GErrorMessage -> IO a) -> IO a
- handleDBusError :: (DBusError -> GErrorMessage -> IO a) -> IO a -> IO a
- data DBusMessageByteOrder
- data DBusMessageHeaderField
- = DBusMessageHeaderFieldInvalid
- | DBusMessageHeaderFieldPath
- | DBusMessageHeaderFieldInterface
- | DBusMessageHeaderFieldMember
- | DBusMessageHeaderFieldErrorName
- | DBusMessageHeaderFieldReplySerial
- | DBusMessageHeaderFieldDestination
- | DBusMessageHeaderFieldSender
- | DBusMessageHeaderFieldSignature
- | DBusMessageHeaderFieldNumUnixFds
- | AnotherDBusMessageHeaderField Int
- data DBusMessageType
- data DataStreamByteOrder
- data DataStreamNewlineType
- data DriveStartStopType
- data EmblemOrigin
- data FileAttributeStatus
- data FileAttributeType
- data FileMonitorEvent
- = FileMonitorEventChanged
- | FileMonitorEventChangesDoneHint
- | FileMonitorEventDeleted
- | FileMonitorEventCreated
- | FileMonitorEventAttributeChanged
- | FileMonitorEventPreUnmount
- | FileMonitorEventUnmounted
- | FileMonitorEventMoved
- | FileMonitorEventRenamed
- | FileMonitorEventMovedIn
- | FileMonitorEventMovedOut
- | AnotherFileMonitorEvent Int
- data FileType
- data FilesystemPreviewType
- data IOErrorEnum
- = IOErrorEnumFailed
- | IOErrorEnumNotFound
- | IOErrorEnumExists
- | IOErrorEnumIsDirectory
- | IOErrorEnumNotDirectory
- | IOErrorEnumNotEmpty
- | IOErrorEnumNotRegularFile
- | IOErrorEnumNotSymbolicLink
- | IOErrorEnumNotMountableFile
- | IOErrorEnumFilenameTooLong
- | IOErrorEnumInvalidFilename
- | IOErrorEnumTooManyLinks
- | IOErrorEnumNoSpace
- | IOErrorEnumInvalidArgument
- | IOErrorEnumPermissionDenied
- | IOErrorEnumNotSupported
- | IOErrorEnumNotMounted
- | IOErrorEnumAlreadyMounted
- | IOErrorEnumClosed
- | IOErrorEnumCancelled
- | IOErrorEnumPending
- | IOErrorEnumReadOnly
- | IOErrorEnumCantCreateBackup
- | IOErrorEnumWrongEtag
- | IOErrorEnumTimedOut
- | IOErrorEnumWouldRecurse
- | IOErrorEnumBusy
- | IOErrorEnumWouldBlock
- | IOErrorEnumHostNotFound
- | IOErrorEnumWouldMerge
- | IOErrorEnumFailedHandled
- | IOErrorEnumTooManyOpenFiles
- | IOErrorEnumNotInitialized
- | IOErrorEnumAddressInUse
- | IOErrorEnumPartialInput
- | IOErrorEnumInvalidData
- | IOErrorEnumDbusError
- | IOErrorEnumHostUnreachable
- | IOErrorEnumNetworkUnreachable
- | IOErrorEnumConnectionRefused
- | IOErrorEnumProxyFailed
- | IOErrorEnumProxyAuthFailed
- | IOErrorEnumProxyNeedAuth
- | IOErrorEnumProxyNotAllowed
- | IOErrorEnumBrokenPipe
- | IOErrorEnumConnectionClosed
- | IOErrorEnumNotConnected
- | IOErrorEnumMessageTooLarge
- | IOErrorEnumNoSuchDevice
- | IOErrorEnumDestinationUnset
- | AnotherIOErrorEnum Int
- catchIOErrorEnum :: IO a -> (IOErrorEnum -> GErrorMessage -> IO a) -> IO a
- handleIOErrorEnum :: (IOErrorEnum -> GErrorMessage -> IO a) -> IO a -> IO a
- data IOModuleScopeFlags
- data MemoryMonitorWarningLevel
- data MountOperationResult
- data NetworkConnectivity
- data NotificationPriority
- data PasswordSave
- data PollableReturn
- data ResolverError
- catchResolverError :: IO a -> (ResolverError -> GErrorMessage -> IO a) -> IO a
- handleResolverError :: (ResolverError -> GErrorMessage -> IO a) -> IO a -> IO a
- data ResolverRecordType
- data ResourceError
- catchResourceError :: IO a -> (ResourceError -> GErrorMessage -> IO a) -> IO a
- handleResourceError :: (ResourceError -> GErrorMessage -> IO a) -> IO a -> IO a
- data SocketClientEvent
- = SocketClientEventResolving
- | SocketClientEventResolved
- | SocketClientEventConnecting
- | SocketClientEventConnected
- | SocketClientEventProxyNegotiating
- | SocketClientEventProxyNegotiated
- | SocketClientEventTlsHandshaking
- | SocketClientEventTlsHandshaked
- | SocketClientEventComplete
- | AnotherSocketClientEvent Int
- data SocketFamily
- data SocketListenerEvent
- data SocketProtocol
- data SocketType
- data TlsAuthenticationMode
- data TlsCertificateRequestFlags
- data TlsChannelBindingError
- catchTlsChannelBindingError :: IO a -> (TlsChannelBindingError -> GErrorMessage -> IO a) -> IO a
- handleTlsChannelBindingError :: (TlsChannelBindingError -> GErrorMessage -> IO a) -> IO a -> IO a
- data TlsChannelBindingType
- data TlsDatabaseLookupFlags
- data TlsError
- catchTlsError :: IO a -> (TlsError -> GErrorMessage -> IO a) -> IO a
- handleTlsError :: (TlsError -> GErrorMessage -> IO a) -> IO a -> IO a
- data TlsInteractionResult
- data TlsProtocolVersion
- data TlsRehandshakeMode
- data UnixSocketAddressType
- data ZlibCompressorFormat
Enumerations
BusType
An enumeration for well-known message buses.
Since: 2.26
Constructors
| BusTypeStarter | An alias for the message bus that activated the process, if any. |
| BusTypeNone | Not a message bus. |
| BusTypeSystem | The system-wide message bus. |
| BusTypeSession | The login session message bus. |
| AnotherBusType Int | Catch-all for unknown values |
Instances
| Enum BusType Source # | |
Defined in GI.Gio.Enums Methods succ :: BusType -> BusType Source # pred :: BusType -> BusType Source # toEnum :: Int -> BusType Source # fromEnum :: BusType -> Int Source # enumFrom :: BusType -> [BusType] Source # enumFromThen :: BusType -> BusType -> [BusType] Source # enumFromTo :: BusType -> BusType -> [BusType] Source # enumFromThenTo :: BusType -> BusType -> BusType -> [BusType] Source # | |
| Show BusType Source # | |
| Eq BusType Source # | |
| Ord BusType Source # | |
| BoxedEnum BusType Source # | |
Defined in GI.Gio.Enums | |
| TypedObject BusType Source # | |
| HasParentTypes BusType Source # | |
Defined in GI.Gio.Enums | |
| type ParentTypes BusType Source # | |
Defined in GI.Gio.Enums | |
ConverterResult
data ConverterResult Source #
Results returned from converterConvert.
Since: 2.24
Constructors
| ConverterResultError | There was an error during conversion. |
| ConverterResultConverted | Some data was consumed or produced |
| ConverterResultFinished | The conversion is finished |
| ConverterResultFlushed | Flushing is finished |
| AnotherConverterResult Int | Catch-all for unknown values |
Instances
CredentialsType
data CredentialsType Source #
Enumeration describing different kinds of native credential types.
Since: 2.26
Constructors
| CredentialsTypeInvalid | Indicates an invalid native credential type. |
| CredentialsTypeLinuxUcred | The native credentials type is a |
| CredentialsTypeFreebsdCmsgcred | The native credentials type is a |
| CredentialsTypeOpenbsdSockpeercred | The native credentials type is a |
| CredentialsTypeSolarisUcred | The native credentials type is a |
| CredentialsTypeNetbsdUnpcbid | The native credentials type is a |
| CredentialsTypeAppleXucred | The native credentials type is a |
| CredentialsTypeWin32Pid | The native credentials type is a PID |
| AnotherCredentialsType Int | Catch-all for unknown values |
Instances
DBusError
Error codes for the G_DBUS_ERROR error domain.
Since: 2.26
Constructors
| DBusErrorFailed | A generic error; "something went wrong" - see the error message for more. |
| DBusErrorNoMemory | There was not enough memory to complete an operation. |
| DBusErrorServiceUnknown | The bus doesn't know how to launch a service to supply the bus name you wanted. |
| DBusErrorNameHasNoOwner | The bus name you referenced doesn't exist (i.e. no application owns it). |
| DBusErrorNoReply | No reply to a message expecting one, usually means a timeout occurred. |
| DBusErrorIoError | Something went wrong reading or writing to a socket, for example. |
| DBusErrorBadAddress | A D-Bus bus address was malformed. |
| DBusErrorNotSupported | Requested operation isn't supported (like ENOSYS on UNIX). |
| DBusErrorLimitsExceeded | Some limited resource is exhausted. |
| DBusErrorAccessDenied | Security restrictions don't allow doing what you're trying to do. |
| DBusErrorAuthFailed | Authentication didn't work. |
| DBusErrorNoServer | Unable to connect to server (probably caused by ECONNREFUSED on a socket). |
| DBusErrorTimeout | Certain timeout errors, possibly ETIMEDOUT on a socket. Note that
|
| DBusErrorNoNetwork | No network access (probably ENETUNREACH on a socket). |
| DBusErrorAddressInUse | Can't bind a socket since its address is in use (i.e. EADDRINUSE). |
| DBusErrorDisconnected | The connection is disconnected and you're trying to use it. |
| DBusErrorInvalidArgs | Invalid arguments passed to a method call. |
| DBusErrorFileNotFound | Missing file. |
| DBusErrorFileExists | Existing file and the operation you're using does not silently overwrite. |
| DBusErrorUnknownMethod | Method name you invoked isn't known by the object you invoked it on. |
| DBusErrorTimedOut | Certain timeout errors, e.g. while starting a service. Warning: this is
confusingly-named given that |
| DBusErrorMatchRuleNotFound | Tried to remove or modify a match rule that didn't exist. |
| DBusErrorMatchRuleInvalid | The match rule isn't syntactically valid. |
| DBusErrorSpawnExecFailed | While starting a new process, the |
| DBusErrorSpawnForkFailed | While starting a new process, the |
| DBusErrorSpawnChildExited | While starting a new process, the child exited with a status code. |
| DBusErrorSpawnChildSignaled | While starting a new process, the child exited on a signal. |
| DBusErrorSpawnFailed | While starting a new process, something went wrong. |
| DBusErrorSpawnSetupFailed | We failed to setup the environment correctly. |
| DBusErrorSpawnConfigInvalid | We failed to setup the config parser correctly. |
| DBusErrorSpawnServiceInvalid | Bus name was not valid. |
| DBusErrorSpawnServiceNotFound | Service file not found in system-services directory. |
| DBusErrorSpawnPermissionsInvalid | Permissions are incorrect on the setuid helper. |
| DBusErrorSpawnFileInvalid | Service file invalid (Name, User or Exec missing). |
| DBusErrorSpawnNoMemory | Tried to get a UNIX process ID and it wasn't available. |
| DBusErrorUnixProcessIdUnknown | Tried to get a UNIX process ID and it wasn't available. |
| DBusErrorInvalidSignature | A type signature is not valid. |
| DBusErrorInvalidFileContent | A file contains invalid syntax or is otherwise broken. |
| DBusErrorSelinuxSecurityContextUnknown | Asked for SELinux security context and it wasn't available. |
| DBusErrorAdtAuditDataUnknown | Asked for ADT audit data and it wasn't available. |
| DBusErrorObjectPathInUse | There's already an object with the requested object path. |
| DBusErrorUnknownObject | Object you invoked a method on isn't known. Since 2.42 |
| DBusErrorUnknownInterface | Interface you invoked a method on isn't known by the object. Since 2.42 |
| DBusErrorUnknownProperty | Property you tried to access isn't known by the object. Since 2.42 |
| DBusErrorPropertyReadOnly | Property you tried to set is read-only. Since 2.42 |
| AnotherDBusError Int | Catch-all for unknown values |
Instances
| Enum DBusError Source # | |
Defined in GI.Gio.Enums Methods succ :: DBusError -> DBusError Source # pred :: DBusError -> DBusError Source # toEnum :: Int -> DBusError Source # fromEnum :: DBusError -> Int Source # enumFrom :: DBusError -> [DBusError] Source # enumFromThen :: DBusError -> DBusError -> [DBusError] Source # enumFromTo :: DBusError -> DBusError -> [DBusError] Source # enumFromThenTo :: DBusError -> DBusError -> DBusError -> [DBusError] Source # | |
| Show DBusError Source # | |
| Eq DBusError Source # | |
| Ord DBusError Source # | |
Defined in GI.Gio.Enums | |
| BoxedEnum DBusError Source # | |
Defined in GI.Gio.Enums | |
| TypedObject DBusError Source # | |
| GErrorClass DBusError Source # | |
Defined in GI.Gio.Enums Methods gerrorClassDomain :: DBusError -> Text Source # | |
| HasParentTypes DBusError Source # | |
Defined in GI.Gio.Enums | |
| type ParentTypes DBusError Source # | |
Defined in GI.Gio.Enums | |
catchDBusError :: IO a -> (DBusError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type DBusError. This is a specialized version of catchGErrorJustDomain.
handleDBusError :: (DBusError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type DBusError. This is a specialized version of handleGErrorJustDomain.
DBusMessageByteOrder
data DBusMessageByteOrder Source #
Enumeration used to describe the byte order of a D-Bus message.
Since: 2.26
Constructors
| DBusMessageByteOrderBigEndian | The byte order is big endian. |
| DBusMessageByteOrderLittleEndian | The byte order is little endian. |
| AnotherDBusMessageByteOrder Int | Catch-all for unknown values |
Instances
DBusMessageHeaderField
data DBusMessageHeaderField Source #
Header fields used in DBusMessage.
Since: 2.26
Constructors
| DBusMessageHeaderFieldInvalid | Not a valid header field. |
| DBusMessageHeaderFieldPath | The object path. |
| DBusMessageHeaderFieldInterface | The interface name. |
| DBusMessageHeaderFieldMember | The method or signal name. |
| DBusMessageHeaderFieldErrorName | The name of the error that occurred. |
| DBusMessageHeaderFieldReplySerial | The serial number the message is a reply to. |
| DBusMessageHeaderFieldDestination | The name the message is intended for. |
| DBusMessageHeaderFieldSender | Unique name of the sender of the message (filled in by the bus). |
| DBusMessageHeaderFieldSignature | The signature of the message body. |
| DBusMessageHeaderFieldNumUnixFds | The number of UNIX file descriptors that accompany the message. |
| AnotherDBusMessageHeaderField Int | Catch-all for unknown values |
Instances
DBusMessageType
data DBusMessageType Source #
Message types used in DBusMessage.
Since: 2.26
Constructors
| DBusMessageTypeInvalid | Message is of invalid type. |
| DBusMessageTypeMethodCall | Method call. |
| DBusMessageTypeMethodReturn | Method reply. |
| DBusMessageTypeError | Error reply. |
| DBusMessageTypeSignal | Signal emission. |
| AnotherDBusMessageType Int | Catch-all for unknown values |
Instances
DataStreamByteOrder
data DataStreamByteOrder Source #
DataStreamByteOrder is used to ensure proper endianness of streaming data sources
across various machine architectures.
Constructors
| DataStreamByteOrderBigEndian | Selects Big Endian byte order. |
| DataStreamByteOrderLittleEndian | Selects Little Endian byte order. |
| DataStreamByteOrderHostEndian | Selects endianness based on host machine's architecture. |
| AnotherDataStreamByteOrder Int | Catch-all for unknown values |
Instances
DataStreamNewlineType
data DataStreamNewlineType Source #
DataStreamNewlineType is used when checking for or setting the line endings for a given file.
Constructors
| DataStreamNewlineTypeLf | Selects "LF" line endings, common on most modern UNIX platforms. |
| DataStreamNewlineTypeCr | Selects "CR" line endings. |
| DataStreamNewlineTypeCrLf | Selects "CR, LF" line ending, common on Microsoft Windows. |
| DataStreamNewlineTypeAny | Automatically try to handle any line ending type. |
| AnotherDataStreamNewlineType Int | Catch-all for unknown values |
Instances
DriveStartStopType
data DriveStartStopType Source #
Enumeration describing how a drive can be started/stopped.
Since: 2.22
Constructors
| DriveStartStopTypeUnknown | Unknown or drive doesn't support start/stop. |
| DriveStartStopTypeShutdown | The stop method will physically shut down the drive and e.g. power down the port the drive is attached to. |
| DriveStartStopTypeNetwork | The start/stop methods are used for connecting/disconnect to the drive over the network. |
| DriveStartStopTypeMultidisk | The start/stop methods will assemble/disassemble a virtual drive from several physical drives. |
| DriveStartStopTypePassword | The start/stop methods will
unlock/lock the disk (for example using the ATA |
| AnotherDriveStartStopType Int | Catch-all for unknown values |
Instances
EmblemOrigin
data EmblemOrigin Source #
GEmblemOrigin is used to add information about the origin of the emblem
to Emblem.
Since: 2.18
Constructors
| EmblemOriginUnknown | Emblem of unknown origin |
| EmblemOriginDevice | Emblem adds device-specific information |
| EmblemOriginLivemetadata | Emblem depicts live metadata, such as "readonly" |
| EmblemOriginTag | Emblem comes from a user-defined tag, e.g. set by nautilus (in the future) |
| AnotherEmblemOrigin Int | Catch-all for unknown values |
Instances
FileAttributeStatus
data FileAttributeStatus Source #
Used by fileSetAttributesFromInfo when setting file attributes.
Constructors
| FileAttributeStatusUnset | Attribute value is unset (empty). |
| FileAttributeStatusSet | Attribute value is set. |
| FileAttributeStatusErrorSetting | Indicates an error in setting the value. |
| AnotherFileAttributeStatus Int | Catch-all for unknown values |
Instances
FileAttributeType
data FileAttributeType Source #
The data types for file attributes.
Constructors
| FileAttributeTypeInvalid | indicates an invalid or uninitialized type. |
| FileAttributeTypeString | a null terminated UTF8 string. |
| FileAttributeTypeByteString | a zero terminated string of non-zero bytes. |
| FileAttributeTypeBoolean | a boolean value. |
| FileAttributeTypeUint32 | an unsigned 4-byte/32-bit integer. |
| FileAttributeTypeInt32 | a signed 4-byte/32-bit integer. |
| FileAttributeTypeUint64 | an unsigned 8-byte/64-bit integer. |
| FileAttributeTypeInt64 | a signed 8-byte/64-bit integer. |
| FileAttributeTypeObject | a |
| FileAttributeTypeStringv | a |
| AnotherFileAttributeType Int | Catch-all for unknown values |