Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
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
- MountOperationResult
- NetworkConnectivity
- NotificationPriority
- PasswordSave
- ResolverError
- ResolverRecordType
- ResourceError
- SocketClientEvent
- SocketFamily
- SocketListenerEvent
- SocketProtocol
- SocketType
- TlsAuthenticationMode
- TlsCertificateRequestFlags
- TlsDatabaseLookupFlags
- TlsError
- TlsInteractionResult
- 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
- | AnotherIOErrorEnum Int
- catchIOErrorEnum :: IO a -> (IOErrorEnum -> GErrorMessage -> IO a) -> IO a
- handleIOErrorEnum :: (IOErrorEnum -> GErrorMessage -> IO a) -> IO a -> IO a
- data IOModuleScopeFlags
- data MountOperationResult
- data NetworkConnectivity
- data NotificationPriority
- data PasswordSave
- 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 TlsDatabaseLookupFlags
- data TlsError
- catchTlsError :: IO a -> (TlsError -> GErrorMessage -> IO a) -> IO a
- handleTlsError :: (TlsError -> GErrorMessage -> IO a) -> IO a -> IO a
- data TlsInteractionResult
- 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 # | |
Eq BusType Source # | |
Ord BusType Source # | |
Show BusType Source # | |
BoxedEnum BusType Source # | |
Defined in GI.Gio.Enums Methods boxedEnumType :: BusType -> IO GType # |
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 struct ucred. |
CredentialsTypeFreebsdCmsgcred | The native credentials type is a struct cmsgcred. |
CredentialsTypeOpenbsdSockpeercred | The native credentials type is a struct sockpeercred. Added in 2.30. |
CredentialsTypeSolarisUcred | The native credentials type is a ucred_t. Added in 2.40. |
CredentialsTypeNetbsdUnpcbid | The native credentials type is a struct unpcbid. |
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 # pred :: DBusError -> DBusError # fromEnum :: DBusError -> Int # enumFrom :: DBusError -> [DBusError] # enumFromThen :: DBusError -> DBusError -> [DBusError] # enumFromTo :: DBusError -> DBusError -> [DBusError] # enumFromThenTo :: DBusError -> DBusError -> DBusError -> [DBusError] # | |
Eq DBusError Source # | |
Ord DBusError Source # | |
Show DBusError Source # | |
BoxedEnum DBusError Source # | |
Defined in GI.Gio.Enums Methods boxedEnumType :: DBusError -> IO GType # | |
GErrorClass DBusError Source # | |
Defined in GI.Gio.Enums Methods gerrorClassDomain :: DBusError -> Text # |
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 <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
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 uninitalized 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.
Constructors
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.
Constructors
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 # | |
Eq FileType Source # | |
Ord FileType Source # | |
Defined in GI.Gio.Enums | |
Show FileType Source # | |
BoxedEnum FileType Source # | |
Defined in GI.Gio.Enums Methods boxedEnumType :: FileType -> IO GType # |
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
.
Constructors
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
G_IO_ERROR_FAILED
.
Constructors
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. |
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
Constructors
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
MountOperationResult
data MountOperationResult Source #
MountOperationResult
is returned as a result when a request for
information is send by the mounting operation.
Constructors
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
Constructors
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
Constructors
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.
Constructors
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
ResolverError
data ResolverError Source #
Constructors
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.
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 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
Constructors
ResolverRecordTypeSrv | lookup DNS SRV records for a domain |
ResolverRecordTypeMx | lookup DNS MX records for a domain |
ResolverRecordTypeTxt | lookup DNS TXT records for a name |
ResolverRecordTypeSoa | lookup DNS SOA records for a zone |
ResolverRecordTypeNs | lookup DNS NS records for a domain |
AnotherResolverRecordType Int | Catch-all for unknown values |
Instances
ResourceError
data ResourceError Source #
Constructors
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
Constructors
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
Constructors
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
Constructors
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
Constructors
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
Constructors
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
Constructors
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
Constructors
TlsCertificateRequestFlagsNone | No flags |
AnotherTlsCertificateRequestFlags Int | Catch-all for unknown values |
Instances
TlsDatabaseLookupFlags
data TlsDatabaseLookupFlags Source #
Flags for tlsDatabaseLookupCertificateForHandle
,
tlsDatabaseLookupCertificateIssuer
,
and tlsDatabaseLookupCertificatesIssuedBy
.
Since: 2.30
Constructors
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
Constructors
TlsErrorUnavailable | No TLS provider is available |
TlsErrorMisc | Miscellaneous TLS error |
TlsErrorBadCertificate | A certificate could not be parsed |
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
|
AnotherTlsError Int | Catch-all for unknown values |
Instances
Enum TlsError Source # | |
Eq TlsError Source # | |
Ord TlsError Source # | |
Defined in GI.Gio.Enums | |
Show TlsError Source # | |
BoxedEnum TlsError Source # | |
Defined in GI.Gio.Enums Methods boxedEnumType :: TlsError -> IO GType # | |
GErrorClass TlsError Source # | |
Defined in GI.Gio.Enums Methods gerrorClassDomain :: TlsError -> Text # |
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
Constructors
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
TlsRehandshakeMode
data TlsRehandshakeMode Source #
When to allow rehandshaking. See
tlsConnectionSetRehandshakeMode
.
Since: 2.28
Constructors
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
Constructors
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
Constructors
ZlibCompressorFormatZlib | deflate compression with zlib header |
ZlibCompressorFormatGzip | gzip file format |
ZlibCompressorFormatRaw | deflate compression with no header |
AnotherZlibCompressorFormat Int | Catch-all for unknown values |