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 |
- 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
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
- | 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
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 # | |
Show BusType Source # | |
Eq BusType Source # | |
Ord BusType Source # | |
BoxedEnum BusType Source # | |
Defined in GI.Gio.Enums | |
TypedObject BusType Source # | |
Defined in GI.Gio.Enums | |
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
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
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
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 succ :: DBusError -> DBusError # pred :: DBusError -> DBusError # fromEnum :: DBusError -> Int # enumFrom :: DBusError -> [DBusError] # enumFromThen :: DBusError -> DBusError -> [DBusError] # enumFromTo :: DBusError -> DBusError -> [DBusError] # enumFromThenTo :: DBusError -> DBusError -> DBusError -> [DBusError] # | |
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 # | |
Defined in GI.Gio.Enums | |
GErrorClass DBusError Source # | |
Defined in GI.Gio.Enums gerrorClassDomain :: DBusError -> Text | |
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
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
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
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.
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.
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
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 <quote>SECURITY UNLOCK DEVICE</quote> command) |
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
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.
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.
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 |
Instances
FileMonitorEvent
data FileMonitorEvent Source #
Specifies what type of event a monitor event is.
FileMonitorEventChanged | a file changed. |
FileMonitorEventChangesDoneHint | a hint that this was probably the last change in a set of changes. |
FileMonitorEventDeleted | a file was deleted. |
FileMonitorEventCreated | a file was created. |
FileMonitorEventAttributeChanged | a file attribute was changed. |
FileMonitorEventPreUnmount | the file location will soon be unmounted. |
FileMonitorEventUnmounted | the file location was unmounted. |
FileMonitorEventMoved | the file was moved -- only sent if the
(deprecated) |
FileMonitorEventRenamed | the file was renamed within the
current directory -- only sent if the |
FileMonitorEventMovedIn | the file was moved into the
monitored directory from another location -- only sent if the
|
FileMonitorEventMovedOut | the file was moved out of the
monitored directory to another location -- only sent if the
|
AnotherFileMonitorEvent Int | Catch-all for unknown values |
Instances
FileType
Indicates the file's on-disk type.
On Windows systems a file will never have FileTypeSymbolicLink
type;
use FileInfo
and FILE_ATTRIBUTE_STANDARD_IS_SYMLINK
to determine
whether a file is a symlink or not. This is due to the fact that NTFS does
not have a single filesystem object type for symbolic links - it has
files that symlink to files, and directories that symlink to directories.
FileType
enumeration cannot precisely represent this important distinction,
which is why all Windows symlinks will continue to be reported as
FileTypeRegular
or FileTypeDirectory
.
FileTypeUnknown | File's type is unknown. |
FileTypeRegular | File handle represents a regular file. |
FileTypeDirectory | File handle represents a directory. |
FileTypeSymbolicLink | File handle represents a symbolic link (Unix systems). |
FileTypeSpecial | File is a "special" file, such as a socket, fifo, block device, or character device. |
FileTypeShortcut | File is a shortcut (Windows systems). |
FileTypeMountable | File is a mountable location. |
AnotherFileType Int | Catch-all for unknown values |
Instances
Enum FileType Source # | |
Show FileType Source # | |
Eq FileType Source # | |
Ord FileType Source # | |
Defined in GI.Gio.Enums | |
BoxedEnum FileType Source # | |
Defined in GI.Gio.Enums | |
TypedObject FileType Source # | |
Defined in GI.Gio.Enums | |
HasParentTypes FileType Source # | |
Defined in GI.Gio.Enums | |
type ParentTypes FileType Source # | |
Defined in GI.Gio.Enums |
FilesystemPreviewType
data FilesystemPreviewType Source #
Indicates a hint from the file system whether files should be
previewed in a file manager. Returned as the value of the key
FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW
.
FilesystemPreviewTypeIfAlways | Only preview files if user has explicitly requested it. |
FilesystemPreviewTypeIfLocal | Preview files if user has requested preview of "local" files. |
FilesystemPreviewTypeNever | Never preview files. |
AnotherFilesystemPreviewType Int | Catch-all for unknown values |
Instances
IOErrorEnum
data IOErrorEnum Source #
Error codes returned by GIO functions.
Note that this domain may be extended in future GLib releases. In
general, new error codes either only apply to new APIs, or else
replace IOErrorEnumFailed
in cases that were not explicitly
distinguished before. You should therefore avoid writing code like
C code
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_FAILED)) { // Assume that this is EPRINTERONFIRE ... }
but should instead treat all unrecognized error codes the same as
IOErrorEnumFailed
.
See also PollableReturn
for a cheaper way of returning
IOErrorEnumWouldBlock
to callers without allocating a GError
.
IOErrorEnumFailed | Generic error condition for when an operation fails
and no more specific |
IOErrorEnumNotFound | File not found. |
IOErrorEnumExists | File already exists. |
IOErrorEnumIsDirectory | File is a directory. |
IOErrorEnumNotDirectory | File is not a directory. |
IOErrorEnumNotEmpty | File is a directory that isn't empty. |
IOErrorEnumNotRegularFile | File is not a regular file. |
IOErrorEnumNotSymbolicLink | File is not a symbolic link. |
IOErrorEnumNotMountableFile | File cannot be mounted. |
IOErrorEnumFilenameTooLong | Filename is too many characters. |
IOErrorEnumInvalidFilename | Filename is invalid or contains invalid characters. |
IOErrorEnumTooManyLinks | File contains too many symbolic links. |
IOErrorEnumNoSpace | No space left on drive. |
IOErrorEnumInvalidArgument | Invalid argument. |
IOErrorEnumPermissionDenied | Permission denied. |
IOErrorEnumNotSupported | Operation (or one of its parameters) not supported |
IOErrorEnumNotMounted | File isn't mounted. |
IOErrorEnumAlreadyMounted | File is already mounted. |
IOErrorEnumClosed | File was closed. |
IOErrorEnumCancelled | Operation was cancelled. See |
IOErrorEnumPending | Operations are still pending. |
IOErrorEnumReadOnly | File is read only. |
IOErrorEnumCantCreateBackup | Backup couldn't be created. |
IOErrorEnumWrongEtag | File's Entity Tag was incorrect. |
IOErrorEnumTimedOut | Operation timed out. |
IOErrorEnumWouldRecurse | Operation would be recursive. |
IOErrorEnumBusy | File is busy. |
IOErrorEnumWouldBlock | Operation would block. |
IOErrorEnumHostNotFound | Host couldn't be found (remote operations). |
IOErrorEnumWouldMerge | Operation would merge files. |
IOErrorEnumFailedHandled | Operation failed and a helper program has already interacted with the user. Do not display any error dialog. |
IOErrorEnumTooManyOpenFiles | The current process has too many files open and can't open any more. Duplicate descriptors do count toward this limit. Since 2.20 |
IOErrorEnumNotInitialized | The object has not been initialized. Since 2.22 |
IOErrorEnumAddressInUse | The requested address is already in use. Since 2.22 |
IOErrorEnumPartialInput | Need more input to finish operation. Since 2.24 |
IOErrorEnumInvalidData | The input data was invalid. Since 2.24 |
IOErrorEnumDbusError | A remote object generated an error that
doesn't correspond to a locally registered |
IOErrorEnumHostUnreachable | Host unreachable. Since 2.26 |
IOErrorEnumNetworkUnreachable | Network unreachable. Since 2.26 |
IOErrorEnumConnectionRefused | Connection refused. Since 2.26 |
IOErrorEnumProxyFailed | Connection to proxy server failed. Since 2.26 |
IOErrorEnumProxyAuthFailed | Proxy authentication failed. Since 2.26 |
IOErrorEnumProxyNeedAuth | Proxy server needs authentication. Since 2.26 |
IOErrorEnumProxyNotAllowed | Proxy connection is not allowed by ruleset. Since 2.26 |
IOErrorEnumBrokenPipe | Broken pipe. Since 2.36 |
IOErrorEnumConnectionClosed | Connection closed by peer. Note that this
is the same code as |
IOErrorEnumNotConnected | Transport endpoint is not connected. Since 2.44 |
IOErrorEnumMessageTooLarge | Message too large. Since 2.48. |
IOErrorEnumNoSuchDevice | No such device found. Since 2.74 |
AnotherIOErrorEnum Int | Catch-all for unknown values |
Instances
catchIOErrorEnum :: IO a -> (IOErrorEnum -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type IOErrorEnum
. This is a specialized version of catchGErrorJustDomain
.
handleIOErrorEnum :: (IOErrorEnum -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type IOErrorEnum
. This is a specialized version of handleGErrorJustDomain
.
IOModuleScopeFlags
data IOModuleScopeFlags Source #
Flags for use with g_io_module_scope_new()
.
Since: 2.30
IOModuleScopeFlagsNone | No module scan flags |
IOModuleScopeFlagsBlockDuplicates | When using this scope to load or scan modules, automatically block a modules which has the same base basename as previously loaded module. |
AnotherIOModuleScopeFlags Int | Catch-all for unknown values |
Instances
MemoryMonitorWarningLevel
data MemoryMonitorWarningLevel Source #
Memory availability warning levels.
Note that because new values might be added, it is recommended that applications check
MemoryMonitorWarningLevel
as ranges, for example:
C code
if (warning_level > G_MEMORY_MONITOR_WARNING_LEVEL_LOW) drop_caches ();
Since: 2.64
MemoryMonitorWarningLevelLow | Memory on the device is low, processes should free up unneeded resources (for example, in-memory caches) so they can be used elsewhere. |
MemoryMonitorWarningLevelMedium | Same as |
MemoryMonitorWarningLevelCritical | The system will soon start terminating processes to reclaim memory, including background processes. |
AnotherMemoryMonitorWarningLevel Int | Catch-all for unknown values |
Instances
MountOperationResult
data MountOperationResult Source #
MountOperationResult
is returned as a result when a request for
information is send by the mounting operation.
MountOperationResultHandled | The request was fulfilled and the user specified data is now available |
MountOperationResultAborted | The user requested the mount operation to be aborted |
MountOperationResultUnhandled | The request was unhandled (i.e. not implemented) |
AnotherMountOperationResult Int | Catch-all for unknown values |
Instances
NetworkConnectivity
data NetworkConnectivity Source #
The host's network connectivity state, as reported by NetworkMonitor
.
Since: 2.44
NetworkConnectivityLocal | The host is not configured with a route to the Internet; it may or may not be connected to a local network. |
NetworkConnectivityLimited | The host is connected to a network, but does not appear to be able to reach the full Internet, perhaps due to upstream network problems. |
NetworkConnectivityPortal | The host is behind a captive portal and cannot reach the full Internet. |
NetworkConnectivityFull | The host is connected to a network, and appears to be able to reach the full Internet. |
AnotherNetworkConnectivity Int | Catch-all for unknown values |
Instances
NotificationPriority
data NotificationPriority Source #
Priority levels for GNotifications
.
Since: 2.42
NotificationPriorityNormal | the default priority, to be used for the majority of notifications (for example email messages, software updates, completed download/sync operations) |
NotificationPriorityLow | for notifications that do not require immediate attention - typically used for contextual background information, such as contact birthdays or local weather |
NotificationPriorityHigh | for events that require more attention, usually because responses are time-sensitive (for example chat and SMS messages or alarms) |
NotificationPriorityUrgent | for urgent notifications, or notifications that require a response in a short space of time (for example phone calls or emergency warnings) |
AnotherNotificationPriority Int | Catch-all for unknown values |
Instances
PasswordSave
data PasswordSave Source #
PasswordSave
is used to indicate the lifespan of a saved password.
Gvfs
stores passwords in the Gnome keyring when this flag allows it
to, and later retrieves it again from there.
PasswordSaveNever | never save a password. |
PasswordSaveForSession | save a password for the session. |
PasswordSavePermanently | save a password permanently. |
AnotherPasswordSave Int | Catch-all for unknown values |
Instances
PollableReturn
data PollableReturn Source #
Return value for various IO operations that signal errors via the
return value and not necessarily via a GError
.
This enum exists to be able to return errors to callers without having to
allocate a GError
. Allocating GErrors
can be quite expensive for
regularly happening errors like IOErrorEnumWouldBlock
.
In case of PollableReturnFailed
a GError
should be set for the
operation to give details about the error that happened.
Since: 2.60
PollableReturnFailed | Generic error condition for when an operation fails. |
PollableReturnOk | The operation was successfully finished. |
PollableReturnWouldBlock | The operation would block. |
AnotherPollableReturn Int | Catch-all for unknown values |
Instances
ResolverError
data ResolverError Source #
An error code used with G_RESOLVER_ERROR
in a GError
returned
from a Resolver
routine.
Since: 2.22
ResolverErrorNotFound | the requested name/address/service was not found |
ResolverErrorTemporaryFailure | the requested information could not be looked up due to a network error or similar problem |
ResolverErrorInternal | unknown error |
AnotherResolverError Int | Catch-all for unknown values |
Instances
catchResolverError :: IO a -> (ResolverError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type ResolverError
. This is a specialized version of catchGErrorJustDomain
.
handleResolverError :: (ResolverError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type ResolverError
. This is a specialized version of handleGErrorJustDomain
.
ResolverRecordType
data ResolverRecordType Source #
The type of record that resolverLookupRecords
or
resolverLookupRecordsAsync
should retrieve. The records are returned
as lists of GVariant
tuples. Each record type has different values in
the variant tuples returned.
ResolverRecordTypeSrv
records are returned as variants with the signature
(qqqs)
, containing a guint16
with the priority, a guint16
with the
weight, a guint16
with the port, and a string of the hostname.
ResolverRecordTypeMx
records are returned as variants with the signature
(qs)
, representing a guint16
with the preference, and a string containing
the mail exchanger hostname.
ResolverRecordTypeTxt
records are returned as variants with the signature
(as)
, representing an array of the strings in the text record. Note: Most TXT
records only contain a single string, but
RFC 1035 does allow a
record to contain multiple strings. The RFC which defines the interpretation
of a specific TXT record will likely require concatenation of multiple
strings if they are present, as with
RFC 7208.
ResolverRecordTypeSoa
records are returned as variants with the signature
(ssuuuuu)
, representing a string containing the primary name server, a
string containing the administrator, the serial as a guint32
, the refresh
interval as a guint32
, the retry interval as a guint32
, the expire timeout
as a guint32
, and the TTL as a guint32
.
ResolverRecordTypeNs
records are returned as variants with the signature
(s)
, representing a string of the hostname of the name server.
Since: 2.34
ResolverRecordTypeSrv | look up DNS SRV records for a domain |
ResolverRecordTypeMx | look up DNS MX records for a domain |
ResolverRecordTypeTxt | look up DNS TXT records for a name |
ResolverRecordTypeSoa | look up DNS SOA records for a zone |
ResolverRecordTypeNs | look up DNS NS records for a domain |
AnotherResolverRecordType Int | Catch-all for unknown values |
Instances
ResourceError
data ResourceError Source #
An error code used with G_RESOURCE_ERROR
in a GError
returned
from a Resource
routine.
Since: 2.32
ResourceErrorNotFound | no file was found at the requested path |
ResourceErrorInternal | unknown error |
AnotherResourceError Int | Catch-all for unknown values |
Instances
catchResourceError :: IO a -> (ResourceError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type ResourceError
. This is a specialized version of catchGErrorJustDomain
.
handleResourceError :: (ResourceError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type ResourceError
. This is a specialized version of handleGErrorJustDomain
.
SocketClientEvent
data SocketClientEvent Source #
Describes an event occurring on a SocketClient
. See the
SocketClient::event signal for more details.
Additional values may be added to this type in the future.
Since: 2.32
SocketClientEventResolving | The client is doing a DNS lookup. |
SocketClientEventResolved | The client has completed a DNS lookup. |
SocketClientEventConnecting | The client is connecting to a remote host (either a proxy or the destination server). |
SocketClientEventConnected | The client has connected to a remote host. |
SocketClientEventProxyNegotiating | The client is negotiating with a proxy to connect to the destination server. |
SocketClientEventProxyNegotiated | The client has negotiated with the proxy server. |
SocketClientEventTlsHandshaking | The client is performing a TLS handshake. |
SocketClientEventTlsHandshaked | The client has performed a TLS handshake. |
SocketClientEventComplete | The client is done with a particular
|
AnotherSocketClientEvent Int | Catch-all for unknown values |
Instances
SocketFamily
data SocketFamily Source #
The protocol family of a SocketAddress
. (These values are
identical to the system defines AF_INET
, AF_INET6
and AF_UNIX
,
if available.)
Since: 2.22
SocketFamilyInvalid | no address family |
SocketFamilyUnix | the UNIX domain family |
SocketFamilyIpv4 | the IPv4 family |
SocketFamilyIpv6 | the IPv6 family |
AnotherSocketFamily Int | Catch-all for unknown values |
Instances
SocketListenerEvent
data SocketListenerEvent Source #
Describes an event occurring on a SocketListener
. See the
SocketListener::event signal for more details.
Additional values may be added to this type in the future.
Since: 2.46
SocketListenerEventBinding | The listener is about to bind a socket. |
SocketListenerEventBound | The listener has bound a socket. |
SocketListenerEventListening | The listener is about to start listening on this socket. |
SocketListenerEventListened | The listener is now listening on this socket. |
AnotherSocketListenerEvent Int | Catch-all for unknown values |
Instances
SocketProtocol
data SocketProtocol Source #
A protocol identifier is specified when creating a Socket
, which is a
family/type specific identifier, where 0 means the default protocol for
the particular family/type.
This enum contains a set of commonly available and used protocols. You can also pass any other identifiers handled by the platform in order to use protocols not listed here.
Since: 2.22
SocketProtocolUnknown | The protocol type is unknown |
SocketProtocolDefault | The default protocol for the family/type |
SocketProtocolTcp | TCP over IP |
SocketProtocolUdp | UDP over IP |
SocketProtocolSctp | SCTP over IP |
AnotherSocketProtocol Int | Catch-all for unknown values |
Instances
SocketType
data SocketType Source #
Flags used when creating a Socket
. Some protocols may not implement
all the socket types.
Since: 2.22
SocketTypeInvalid | Type unknown or wrong |
SocketTypeStream | Reliable connection-based byte streams (e.g. TCP). |
SocketTypeDatagram | Connectionless, unreliable datagram passing. (e.g. UDP) |
SocketTypeSeqpacket | Reliable connection-based passing of datagrams of fixed maximum length (e.g. SCTP). |
AnotherSocketType Int | Catch-all for unknown values |
Instances
TlsAuthenticationMode
data TlsAuthenticationMode Source #
The client authentication mode for a TlsServerConnection
.
Since: 2.28
TlsAuthenticationModeNone | client authentication not required |
TlsAuthenticationModeRequested | client authentication is requested |
TlsAuthenticationModeRequired | client authentication is required |
AnotherTlsAuthenticationMode Int | Catch-all for unknown values |
Instances
TlsCertificateRequestFlags
data TlsCertificateRequestFlags Source #
Flags for tlsInteractionRequestCertificate
,
tlsInteractionRequestCertificateAsync
, and
tlsInteractionInvokeRequestCertificate
.
Since: 2.40
TlsCertificateRequestFlagsNone | No flags |
AnotherTlsCertificateRequestFlags Int | Catch-all for unknown values |
Instances
TlsChannelBindingError
data TlsChannelBindingError Source #
An error code used with G_TLS_CHANNEL_BINDING_ERROR
in a GError
to
indicate a TLS channel binding retrieval error.
Since: 2.66
TlsChannelBindingErrorNotImplemented | Either entire binding retrieval facility or specific binding type is not implemented in the TLS backend. |
TlsChannelBindingErrorInvalidState | The handshake is not yet complete on the connection which is a strong requirement for any existing binding type. |
TlsChannelBindingErrorNotAvailable | Handshake is complete but binding data is not available. That normally indicates the TLS implementation failed to provide the binding data. For example, some implementations do not provide a peer certificate for resumed connections. |
TlsChannelBindingErrorNotSupported | Binding type is not supported
on the current connection. This error could be triggered when requesting
|
TlsChannelBindingErrorGeneralError | Any other backend error preventing binding data retrieval. |
AnotherTlsChannelBindingError Int | Catch-all for unknown values |
Instances
catchTlsChannelBindingError :: IO a -> (TlsChannelBindingError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type TlsChannelBindingError
. This is a specialized version of catchGErrorJustDomain
.
handleTlsChannelBindingError :: (TlsChannelBindingError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type TlsChannelBindingError
. This is a specialized version of handleGErrorJustDomain
.
TlsChannelBindingType
data TlsChannelBindingType Source #
The type of TLS channel binding data to retrieve from TlsConnection
or DtlsConnection
, as documented by RFC 5929 or RFC 9266. The
`tls-unique-for-telnet`
binding type is not currently implemented.
Since: 2.66
TlsChannelBindingTypeUnique | `tls-unique` binding type |
TlsChannelBindingTypeServerEndPoint | `tls-server-end-point` binding type |
TlsChannelBindingTypeExporter | `tls-exporter` binding type. Since: 2.74 |
AnotherTlsChannelBindingType Int | Catch-all for unknown values |
Instances
TlsDatabaseLookupFlags
data TlsDatabaseLookupFlags Source #
Flags for tlsDatabaseLookupCertificateForHandle
,
tlsDatabaseLookupCertificateIssuer
,
and tlsDatabaseLookupCertificatesIssuedBy
.
Since: 2.30
TlsDatabaseLookupFlagsNone | No lookup flags |
TlsDatabaseLookupFlagsKeypair | Restrict lookup to certificates that have a private key. |
AnotherTlsDatabaseLookupFlags Int | Catch-all for unknown values |
Instances
TlsError
An error code used with G_TLS_ERROR
in a GError
returned from a
TLS-related routine.
Since: 2.28
TlsErrorUnavailable | No TLS provider is available |
TlsErrorMisc | Miscellaneous TLS error |
TlsErrorBadCertificate | The certificate presented could not be parsed or failed validation. |
TlsErrorNotTls | The TLS handshake failed because the peer does not seem to be a TLS server. |
TlsErrorHandshake | The TLS handshake failed because the peer's certificate was not acceptable. |
TlsErrorCertificateRequired | The TLS handshake failed because
the server requested a client-side certificate, but none was
provided. See |
TlsErrorEof | The TLS connection was closed without proper
notice, which may indicate an attack. See
|
TlsErrorInappropriateFallback | The TLS handshake failed because the client sent the fallback SCSV, indicating a protocol downgrade attack. Since: 2.60 |
TlsErrorBadCertificatePassword | The certificate failed to load because a password was incorrect. Since: 2.72 |
AnotherTlsError Int | Catch-all for unknown values |
Instances
Enum TlsError Source # | |
Show TlsError Source # | |
Eq TlsError Source # | |
Ord TlsError Source # | |
Defined in GI.Gio.Enums | |
BoxedEnum TlsError Source # | |
Defined in GI.Gio.Enums | |
TypedObject TlsError Source # | |
Defined in GI.Gio.Enums | |
GErrorClass TlsError Source # | |
Defined in GI.Gio.Enums gerrorClassDomain :: TlsError -> Text | |
HasParentTypes TlsError Source # | |
Defined in GI.Gio.Enums | |
type ParentTypes TlsError Source # | |
Defined in GI.Gio.Enums |
catchTlsError :: IO a -> (TlsError -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type TlsError
. This is a specialized version of catchGErrorJustDomain
.
handleTlsError :: (TlsError -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type TlsError
. This is a specialized version of handleGErrorJustDomain
.
TlsInteractionResult
data TlsInteractionResult Source #
TlsInteractionResult
is returned by various functions in TlsInteraction
when finishing an interaction request.
Since: 2.30
TlsInteractionResultUnhandled | The interaction was unhandled (i.e. not implemented). |
TlsInteractionResultHandled | The interaction completed, and resulting data is available. |
TlsInteractionResultFailed | The interaction has failed, or was cancelled. and the operation should be aborted. |
AnotherTlsInteractionResult Int | Catch-all for unknown values |
Instances
TlsProtocolVersion
data TlsProtocolVersion Source #
The TLS or DTLS protocol version used by a TlsConnection
or
DtlsConnection
. The integer values of these versions are sequential
to ensure newer known protocol versions compare greater than older
known versions. Any known DTLS protocol version will compare greater
than any SSL or TLS protocol version. The protocol version may be
TlsProtocolVersionUnknown
if the TLS backend supports a newer
protocol version that GLib does not yet know about. This means that
it's possible for an unknown DTLS protocol version to compare less
than the TLS protocol versions.
Since: 2.70
TlsProtocolVersionUnknown | No protocol version or unknown protocol version |
TlsProtocolVersionSsl30 | SSL 3.0, which is insecure and should not be used |
TlsProtocolVersionTls10 | TLS 1.0, which is insecure and should not be used |
TlsProtocolVersionTls11 | TLS 1.1, which is insecure and should not be used |
TlsProtocolVersionTls12 | TLS 1.2, defined by RFC 5246 |
TlsProtocolVersionTls13 | TLS 1.3, defined by RFC 8446 |
TlsProtocolVersionDtls10 | DTLS 1.0, which is insecure and should not be used |
TlsProtocolVersionDtls12 | DTLS 1.2, defined by RFC 6347 |
AnotherTlsProtocolVersion Int | Catch-all for unknown values |
Instances
TlsRehandshakeMode
data TlsRehandshakeMode Source #
Deprecated: (Since version 2.60.)Changing the rehandshake mode is no longer required for compatibility. Also, rehandshaking has been removed from the TLS protocol in TLS 1.3.
When to allow rehandshaking. See
tlsConnectionSetRehandshakeMode
.
Since: 2.28
TlsRehandshakeModeNever | Never allow rehandshaking |
TlsRehandshakeModeSafely | Allow safe rehandshaking only |
TlsRehandshakeModeUnsafely | Allow unsafe rehandshaking |
AnotherTlsRehandshakeMode Int | Catch-all for unknown values |
Instances
UnixSocketAddressType
data UnixSocketAddressType Source #
The type of name used by a UnixSocketAddress
.
UnixSocketAddressTypePath
indicates a traditional unix domain
socket bound to a filesystem path. UnixSocketAddressTypeAnonymous
indicates a socket not bound to any name (eg, a client-side socket,
or a socket created with socketpair()
).
For abstract sockets, there are two incompatible ways of naming
them; the man pages suggest using the entire struct sockaddr_un
as the name, padding the unused parts of the sun_path
field with
zeroes; this corresponds to UnixSocketAddressTypeAbstractPadded
.
However, many programs instead just use a portion of sun_path
, and
pass an appropriate smaller length to bind()
or connect()
. This is
UnixSocketAddressTypeAbstract
.
Since: 2.26
UnixSocketAddressTypeInvalid | invalid |
UnixSocketAddressTypeAnonymous | anonymous |
UnixSocketAddressTypePath | a filesystem path |
UnixSocketAddressTypeAbstract | an abstract name |
UnixSocketAddressTypeAbstractPadded | an abstract name, 0-padded to the full length of a unix socket name |
AnotherUnixSocketAddressType Int | Catch-all for unknown values |
Instances
ZlibCompressorFormat
data ZlibCompressorFormat Source #
Used to select the type of data format to use for ZlibDecompressor
and ZlibCompressor
.
Since: 2.24
ZlibCompressorFormatZlib | deflate compression with zlib header |
ZlibCompressorFormatGzip | gzip file format |
ZlibCompressorFormatRaw | deflate compression with no header |
AnotherZlibCompressorFormat Int | Catch-all for unknown values |