gi-gio-2.0.24: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Enums

Contents

Description

 
Synopsis

Enumerations

BusType

data BusType Source #

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 # 
Instance details

Defined in GI.Gio.Enums

Eq BusType Source # 
Instance details

Defined in GI.Gio.Enums

Methods

(==) :: BusType -> BusType -> Bool #

(/=) :: BusType -> BusType -> Bool #

Ord BusType Source # 
Instance details

Defined in GI.Gio.Enums

Show BusType Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum BusType Source # 
Instance details

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
Enum ConverterResult Source # 
Instance details

Defined in GI.Gio.Enums

Eq ConverterResult Source # 
Instance details

Defined in GI.Gio.Enums

Ord ConverterResult Source # 
Instance details

Defined in GI.Gio.Enums

Show ConverterResult Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum ConverterResult Source # 
Instance details

Defined in GI.Gio.Enums

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
Enum CredentialsType Source # 
Instance details

Defined in GI.Gio.Enums

Eq CredentialsType Source # 
Instance details

Defined in GI.Gio.Enums

Ord CredentialsType Source # 
Instance details

Defined in GI.Gio.Enums

Show CredentialsType Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum CredentialsType Source # 
Instance details

Defined in GI.Gio.Enums

DBusError

data DBusError Source #

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 DBusErrorNoReply is used for message reply timeouts. Warning: this is confusingly-named given that DBusErrorTimedOut also exists. We can't fix it for compatibility reasons so just be careful.

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 DBusErrorTimeout also exists. We can't fix it for compatibility reasons so just be careful.

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 exec() call failed.

DBusErrorSpawnForkFailed

While starting a new process, the fork() call failed.

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

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
Enum DBusMessageByteOrder Source # 
Instance details

Defined in GI.Gio.Enums

Eq DBusMessageByteOrder Source # 
Instance details

Defined in GI.Gio.Enums

Ord DBusMessageByteOrder Source # 
Instance details

Defined in GI.Gio.Enums

Show DBusMessageByteOrder Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum DBusMessageByteOrder Source # 
Instance details

Defined in GI.Gio.Enums

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
Enum DBusMessageHeaderField Source # 
Instance details

Defined in GI.Gio.Enums

Eq DBusMessageHeaderField Source # 
Instance details

Defined in GI.Gio.Enums

Ord DBusMessageHeaderField Source # 
Instance details

Defined in GI.Gio.Enums

Show DBusMessageHeaderField Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum DBusMessageHeaderField Source # 
Instance details

Defined in GI.Gio.Enums

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
Enum DBusMessageType Source # 
Instance details

Defined in GI.Gio.Enums

Eq DBusMessageType Source # 
Instance details

Defined in GI.Gio.Enums

Ord DBusMessageType Source # 
Instance details

Defined in GI.Gio.Enums

Show DBusMessageType Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum DBusMessageType Source # 
Instance details

Defined in GI.Gio.Enums

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
Enum DataStreamByteOrder Source # 
Instance details

Defined in GI.Gio.Enums

Eq DataStreamByteOrder Source # 
Instance details

Defined in GI.Gio.Enums

Ord DataStreamByteOrder Source # 
Instance details

Defined in GI.Gio.Enums

Show DataStreamByteOrder Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum DataStreamByteOrder Source # 
Instance details

Defined in GI.Gio.Enums

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
Enum DataStreamNewlineType Source # 
Instance details

Defined in GI.Gio.Enums

Eq DataStreamNewlineType Source # 
Instance details

Defined in GI.Gio.Enums

Ord DataStreamNewlineType Source # 
Instance details

Defined in GI.Gio.Enums

Show DataStreamNewlineType Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum DataStreamNewlineType Source # 
Instance details

Defined in GI.Gio.Enums

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
Enum DriveStartStopType Source # 
Instance details

Defined in GI.Gio.Enums

Eq DriveStartStopType Source # 
Instance details

Defined in GI.Gio.Enums

Ord DriveStartStopType Source # 
Instance details

Defined in GI.Gio.Enums

Show DriveStartStopType Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum DriveStartStopType Source # 
Instance details

Defined in GI.Gio.Enums

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

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
Enum FileAttributeStatus Source # 
Instance details

Defined in GI.Gio.Enums

Eq FileAttributeStatus Source # 
Instance details

Defined in GI.Gio.Enums

Ord FileAttributeStatus Source # 
Instance details

Defined in GI.Gio.Enums

Show FileAttributeStatus Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum FileAttributeStatus Source # 
Instance details

Defined in GI.Gio.Enums

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 Object.

FileAttributeTypeStringv

a Nothing terminated char **. Since 2.22

AnotherFileAttributeType Int

Catch-all for unknown values

Instances
Enum FileAttributeType Source # 
Instance details

Defined in GI.Gio.Enums

Eq FileAttributeType Source # 
Instance details

Defined in GI.Gio.Enums

Ord FileAttributeType Source # 
Instance details

Defined in GI.Gio.Enums

Show FileAttributeType Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum FileAttributeType Source # 
Instance details

Defined in GI.Gio.Enums

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) FileMonitorFlagsSendMoved flag is set

FileMonitorEventRenamed

the file was renamed within the current directory -- only sent if the FileMonitorFlagsWatchMoves flag is set. Since: 2.46.

FileMonitorEventMovedIn

the file was moved into the monitored directory from another location -- only sent if the FileMonitorFlagsWatchMoves flag is set. Since: 2.46.

FileMonitorEventMovedOut

the file was moved out of the monitored directory to another location -- only sent if the FileMonitorFlagsWatchMoves flag is set. Since: 2.46

AnotherFileMonitorEvent Int

Catch-all for unknown values

Instances
Enum FileMonitorEvent Source # 
Instance details

Defined in GI.Gio.Enums

Eq FileMonitorEvent Source # 
Instance details

Defined in GI.Gio.Enums

Ord FileMonitorEvent Source # 
Instance details

Defined in GI.Gio.Enums

Show FileMonitorEvent Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum FileMonitorEvent Source # 
Instance details

Defined in GI.Gio.Enums

FileType

data FileType Source #

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

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
Enum FilesystemPreviewType Source # 
Instance details

Defined in GI.Gio.Enums

Eq FilesystemPreviewType Source # 
Instance details

Defined in GI.Gio.Enums

Ord FilesystemPreviewType Source # 
Instance details

Defined in GI.Gio.Enums

Show FilesystemPreviewType Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum FilesystemPreviewType Source # 
Instance details

Defined in GI.Gio.Enums

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.

See also PollableReturn for a cheaper way of returning IOErrorEnumWouldBlock to callers without allocating a GError.

Constructors

IOErrorEnumFailed

Generic error condition for when an operation fails and no more specific IOErrorEnum value is defined.

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 Cancellable.

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 GError error domain. Use dbusErrorGetRemoteError to extract the D-Bus error name and dbusErrorStripRemoteError to fix up the message so it matches what was received on the wire. Since 2.26.

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 IOErrorEnumBrokenPipe; before 2.44 some "connection closed" errors returned IOErrorEnumBrokenPipe, but others returned IOErrorEnumFailed. Now they should all return the same value, which has this more logical name. Since 2.44.

IOErrorEnumNotConnected

Transport endpoint is not connected. Since 2.44

IOErrorEnumMessageTooLarge

Message too large. Since 2.48.

AnotherIOErrorEnum Int

Catch-all for unknown values

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
Enum IOModuleScopeFlags Source # 
Instance details

Defined in GI.Gio.Enums

Eq IOModuleScopeFlags Source # 
Instance details

Defined in GI.Gio.Enums

Ord IOModuleScopeFlags Source # 
Instance details

Defined in GI.Gio.Enums

Show IOModuleScopeFlags Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum IOModuleScopeFlags Source # 
Instance details

Defined in GI.Gio.Enums

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
Enum MountOperationResult Source # 
Instance details

Defined in GI.Gio.Enums

Eq MountOperationResult Source # 
Instance details

Defined in GI.Gio.Enums

Ord MountOperationResult Source # 
Instance details

Defined in GI.Gio.Enums

Show MountOperationResult Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum MountOperationResult Source # 
Instance details

Defined in GI.Gio.Enums

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
Enum NetworkConnectivity Source # 
Instance details

Defined in GI.Gio.Enums

Eq NetworkConnectivity Source # 
Instance details

Defined in GI.Gio.Enums

Ord NetworkConnectivity Source # 
Instance details

Defined in GI.Gio.Enums

Show NetworkConnectivity Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum NetworkConnectivity Source # 
Instance details

Defined in GI.Gio.Enums

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
Enum NotificationPriority Source # 
Instance details

Defined in GI.Gio.Enums

Eq NotificationPriority Source # 
Instance details

Defined in GI.Gio.Enums

Ord NotificationPriority Source # 
Instance details

Defined in GI.Gio.Enums

Show NotificationPriority Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum NotificationPriority Source # 
Instance details

Defined in GI.Gio.Enums

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

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

Constructors

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

ResolverError

data ResolverError Source #

An error code used with G_RESOLVER_ERROR in a GError returned from a Resolver routine.

Since: 2.22

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
Enum ResolverError Source # 
Instance details

Defined in GI.Gio.Enums

Eq ResolverError Source # 
Instance details

Defined in GI.Gio.Enums

Ord ResolverError Source # 
Instance details

Defined in GI.Gio.Enums

Show ResolverError Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum ResolverError Source # 
Instance details

Defined in GI.Gio.Enums

GErrorClass ResolverError Source # 
Instance details

Defined in GI.Gio.Enums

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
Enum ResolverRecordType Source # 
Instance details

Defined in GI.Gio.Enums

Eq ResolverRecordType Source # 
Instance details

Defined in GI.Gio.Enums

Ord ResolverRecordType Source # 
Instance details

Defined in GI.Gio.Enums

Show ResolverRecordType Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum ResolverRecordType Source # 
Instance details

Defined in GI.Gio.Enums

ResourceError

data ResourceError Source #

An error code used with G_RESOURCE_ERROR in a GError returned from a Resource routine.

Since: 2.32

Constructors

ResourceErrorNotFound

no file was found at the requested path

ResourceErrorInternal

unknown error

AnotherResourceError Int

Catch-all for unknown values

Instances
Enum ResourceError Source # 
Instance details

Defined in GI.Gio.Enums

Eq ResourceError Source # 
Instance details

Defined in GI.Gio.Enums

Ord ResourceError Source # 
Instance details

Defined in GI.Gio.Enums

Show ResourceError Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum ResourceError Source # 
Instance details

Defined in GI.Gio.Enums

GErrorClass ResourceError Source # 
Instance details

Defined in GI.Gio.Enums

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 SocketConnectable.

AnotherSocketClientEvent Int

Catch-all for unknown values

Instances
Enum SocketClientEvent Source # 
Instance details

Defined in GI.Gio.Enums

Eq SocketClientEvent Source # 
Instance details

Defined in GI.Gio.Enums

Ord SocketClientEvent Source # 
Instance details

Defined in GI.Gio.Enums

Show SocketClientEvent Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum SocketClientEvent Source # 
Instance details

Defined in GI.Gio.Enums

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

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
Enum SocketListenerEvent Source # 
Instance details

Defined in GI.Gio.Enums

Eq SocketListenerEvent Source # 
Instance details

Defined in GI.Gio.Enums

Ord SocketListenerEvent Source # 
Instance details

Defined in GI.Gio.Enums

Show SocketListenerEvent Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum SocketListenerEvent Source # 
Instance details

Defined in GI.Gio.Enums

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

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

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
Enum TlsAuthenticationMode Source # 
Instance details

Defined in GI.Gio.Enums

Eq TlsAuthenticationMode Source # 
Instance details

Defined in GI.Gio.Enums

Ord TlsAuthenticationMode Source # 
Instance details

Defined in GI.Gio.Enums

Show TlsAuthenticationMode Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum TlsAuthenticationMode Source # 
Instance details

Defined in GI.Gio.Enums

TlsCertificateRequestFlags

data TlsCertificateRequestFlags Source #

Constructors

TlsCertificateRequestFlagsNone

No flags

AnotherTlsCertificateRequestFlags Int

Catch-all for unknown values

Instances
Enum TlsCertificateRequestFlags Source # 
Instance details

Defined in GI.Gio.Enums

Eq TlsCertificateRequestFlags Source # 
Instance details

Defined in GI.Gio.Enums

Ord TlsCertificateRequestFlags Source # 
Instance details

Defined in GI.Gio.Enums

Show TlsCertificateRequestFlags Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum TlsCertificateRequestFlags Source # 
Instance details

Defined in GI.Gio.Enums

TlsDatabaseLookupFlags

data TlsDatabaseLookupFlags Source #

Constructors

TlsDatabaseLookupFlagsNone

No lookup flags

TlsDatabaseLookupFlagsKeypair

Restrict lookup to certificates that have a private key.

AnotherTlsDatabaseLookupFlags Int

Catch-all for unknown values

Instances
Enum TlsDatabaseLookupFlags Source # 
Instance details

Defined in GI.Gio.Enums

Eq TlsDatabaseLookupFlags Source # 
Instance details

Defined in GI.Gio.Enums

Ord TlsDatabaseLookupFlags Source # 
Instance details

Defined in GI.Gio.Enums

Show TlsDatabaseLookupFlags Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum TlsDatabaseLookupFlags Source # 
Instance details

Defined in GI.Gio.Enums

TlsError

data TlsError Source #

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

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 tlsConnectionSetCertificate.

TlsErrorEof

The TLS connection was closed without proper notice, which may indicate an attack. See tlsConnectionSetRequireCloseNotify.

TlsErrorInappropriateFallback

The TLS handshake failed because the client sent the fallback SCSV, indicating a protocol downgrade attack. Since: 2.60

AnotherTlsError Int

Catch-all for unknown values

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
Enum TlsInteractionResult Source # 
Instance details

Defined in GI.Gio.Enums

Eq TlsInteractionResult Source # 
Instance details

Defined in GI.Gio.Enums

Ord TlsInteractionResult Source # 
Instance details

Defined in GI.Gio.Enums

Show TlsInteractionResult Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum TlsInteractionResult Source # 
Instance details

Defined in GI.Gio.Enums

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

Constructors

TlsRehandshakeModeNever

Never allow rehandshaking

TlsRehandshakeModeSafely

Allow safe rehandshaking only

TlsRehandshakeModeUnsafely

Allow unsafe rehandshaking

AnotherTlsRehandshakeMode Int

Catch-all for unknown values

Instances
Enum TlsRehandshakeMode Source # 
Instance details

Defined in GI.Gio.Enums

Eq TlsRehandshakeMode Source # 
Instance details

Defined in GI.Gio.Enums

Ord TlsRehandshakeMode Source # 
Instance details

Defined in GI.Gio.Enums

Show TlsRehandshakeMode Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum TlsRehandshakeMode Source # 
Instance details

Defined in GI.Gio.Enums

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
Enum UnixSocketAddressType Source # 
Instance details

Defined in GI.Gio.Enums

Eq UnixSocketAddressType Source # 
Instance details

Defined in GI.Gio.Enums

Ord UnixSocketAddressType Source # 
Instance details

Defined in GI.Gio.Enums

Show UnixSocketAddressType Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum UnixSocketAddressType Source # 
Instance details

Defined in GI.Gio.Enums

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

Instances
Enum ZlibCompressorFormat Source # 
Instance details

Defined in GI.Gio.Enums

Eq ZlibCompressorFormat Source # 
Instance details

Defined in GI.Gio.Enums

Ord ZlibCompressorFormat Source # 
Instance details

Defined in GI.Gio.Enums

Show ZlibCompressorFormat Source # 
Instance details

Defined in GI.Gio.Enums

BoxedEnum ZlibCompressorFormat Source # 
Instance details

Defined in GI.Gio.Enums