Gio

object Gio

Skipped during bindings generation

  • parameter data: Array parameter of type guint8 is not supported

  • parameter out_guid: out_guid: Out parameter is not supported

  • parameter out_guid: out_guid: Out parameter is not supported

  • parameter bytes: Array parameter of type guint8 is not supported

  • function dbus_unescape_object_path: Array parameter of type guint8 is not supported

  • parameter scope: IOModuleScope

  • parameter scope: IOModuleScope

  • parameter buffer: Array parameter of type guint8 is not supported

  • parameter buffer: Array parameter of type guint8 is not supported

  • parameter buffer: Array parameter of type guint8 is not supported

  • parameter size: size: Out parameter is not supported

  • function simple_async_report_error_in_idle: Varargs parameter is not supported

  • parameter time_read: time_read: Out parameter is not supported

  • parameter time_read: time_read: Out parameter is not supported

  • parameter time_read: time_read: Out parameter is not supported

  • parameter time_read_out: time_read_out: Out parameter is not supported

  • parameter time_read: time_read: Out parameter is not supported

  • parameter time_read_out: time_read_out: Out parameter is not supported

  • callback DBusSubtreeIntrospectFunc: Array parameter of type DBusInterfaceInfo is not supported

  • record ActionGroupInterface: glib type struct are ignored

  • record ActionInterface: glib type struct are ignored

  • record ActionMapInterface: glib type struct are ignored

  • record AppInfoIface: glib type struct are ignored

  • record AppLaunchContextClass: glib type struct are ignored

  • record ApplicationClass: glib type struct are ignored

  • record ApplicationCommandLineClass: glib type struct are ignored

  • record AsyncInitableIface: glib type struct are ignored

  • record AsyncResultIface: glib type struct are ignored

  • record BufferedInputStreamClass: glib type struct are ignored

  • record BufferedOutputStreamClass: glib type struct are ignored

  • record CancellableClass: glib type struct are ignored

  • record CharsetConverterClass: glib type struct are ignored

  • record ConverterIface: glib type struct are ignored

  • record ConverterInputStreamClass: glib type struct are ignored

  • record ConverterOutputStreamClass: glib type struct are ignored

  • record CredentialsClass: glib type struct are ignored

  • record DBusInterfaceIface: glib type struct are ignored

  • record DBusInterfaceSkeletonClass: glib type struct are ignored

  • record DBusObjectIface: glib type struct are ignored

  • record DBusObjectManagerClientClass: glib type struct are ignored

  • record DBusObjectManagerIface: glib type struct are ignored

  • record DBusObjectManagerServerClass: glib type struct are ignored

  • record DBusObjectProxyClass: glib type struct are ignored

  • record DBusObjectSkeletonClass: glib type struct are ignored

  • record DBusProxyClass: glib type struct are ignored

  • record DataInputStreamClass: glib type struct are ignored

  • record DataOutputStreamClass: glib type struct are ignored

  • record DatagramBasedInterface: glib type struct are ignored

  • record DebugControllerDBusClass: glib type struct are ignored

  • record DebugControllerInterface: glib type struct are ignored

  • record DesktopAppInfoClass: glib type struct are ignored

  • record DesktopAppInfoLookupIface: glib type struct are ignored

  • record DriveIface: glib type struct are ignored

  • record DtlsClientConnectionInterface: glib type struct are ignored

  • record DtlsConnectionInterface: glib type struct are ignored

  • record DtlsServerConnectionInterface: glib type struct are ignored

  • record EmblemClass: glib type struct are ignored

  • record EmblemedIconClass: glib type struct are ignored

  • record FileDescriptorBasedIface: glib type struct are ignored

  • record FileEnumeratorClass: glib type struct are ignored

  • record FileIOStreamClass: glib type struct are ignored

  • record FileIconClass: glib type struct are ignored

  • record FileIface: glib type struct are ignored

  • record FileInfoClass: glib type struct are ignored

  • record FileInputStreamClass: glib type struct are ignored

  • record FileMonitorClass: glib type struct are ignored

  • record FileOutputStreamClass: glib type struct are ignored

  • record FilenameCompleterClass: glib type struct are ignored

  • record FilterInputStreamClass: glib type struct are ignored

  • record FilterOutputStreamClass: glib type struct are ignored

  • record IOModuleClass: glib type struct are ignored

  • record IOStreamClass: glib type struct are ignored

  • record IconIface: glib type struct are ignored

  • record InetAddressClass: glib type struct are ignored

  • record InetAddressMaskClass: glib type struct are ignored

  • record InetSocketAddressClass: glib type struct are ignored

  • record InitableIface: glib type struct are ignored

  • record InputStreamClass: glib type struct are ignored

  • record ListModelInterface: glib type struct are ignored

  • record ListStoreClass: glib type struct are ignored

  • record LoadableIconIface: glib type struct are ignored

  • record MemoryInputStreamClass: glib type struct are ignored

  • record MemoryMonitorInterface: glib type struct are ignored

  • record MemoryOutputStreamClass: glib type struct are ignored

  • record MenuAttributeIterClass: glib type struct are ignored

  • record MenuLinkIterClass: glib type struct are ignored

  • record MenuModelClass: glib type struct are ignored

  • record MountIface: glib type struct are ignored

  • record MountOperationClass: glib type struct are ignored

  • record NativeSocketAddressClass: glib type struct are ignored

  • record NativeVolumeMonitorClass: glib type struct are ignored

  • record NetworkAddressClass: glib type struct are ignored

  • record NetworkMonitorInterface: glib type struct are ignored

  • record NetworkServiceClass: glib type struct are ignored

  • record OutputStreamClass: glib type struct are ignored

  • record PermissionClass: glib type struct are ignored

  • record PollableInputStreamInterface: glib type struct are ignored

  • record PollableOutputStreamInterface: glib type struct are ignored

  • record PowerProfileMonitorInterface: glib type struct are ignored

  • record ProxyAddressClass: glib type struct are ignored

  • record ProxyAddressEnumeratorClass: glib type struct are ignored

  • record ProxyInterface: glib type struct are ignored

  • record ProxyResolverInterface: glib type struct are ignored

  • record RemoteActionGroupInterface: glib type struct are ignored

  • record ResolverClass: glib type struct are ignored

  • record SeekableIface: glib type struct are ignored

  • record SettingsBackendClass: glib type struct are ignored

  • record SettingsClass: glib type struct are ignored

  • record SimpleActionGroupClass: glib type struct are ignored

  • record SimpleAsyncResultClass: glib type struct are ignored

  • record SimpleProxyResolverClass: glib type struct are ignored

  • record SocketAddressClass: glib type struct are ignored

  • record SocketAddressEnumeratorClass: glib type struct are ignored

  • record SocketClass: glib type struct are ignored

  • record SocketClientClass: glib type struct are ignored

  • record SocketConnectableIface: glib type struct are ignored

  • record SocketConnectionClass: glib type struct are ignored

  • record SocketControlMessageClass: glib type struct are ignored

  • record SocketListenerClass: glib type struct are ignored

  • record SocketServiceClass: glib type struct are ignored

  • record TaskClass: glib type struct are ignored

  • record TcpConnectionClass: glib type struct are ignored

  • record TcpWrapperConnectionClass: glib type struct are ignored

  • record ThemedIconClass: glib type struct are ignored

  • record ThreadedResolverClass: glib type struct are ignored

  • record ThreadedSocketServiceClass: glib type struct are ignored

  • record TlsBackendInterface: glib type struct are ignored

  • record TlsCertificateClass: glib type struct are ignored

  • record TlsClientConnectionInterface: glib type struct are ignored

  • record TlsConnectionClass: glib type struct are ignored

  • record TlsDatabaseClass: glib type struct are ignored

  • record TlsFileDatabaseInterface: glib type struct are ignored

  • record TlsInteractionClass: glib type struct are ignored

  • record TlsPasswordClass: glib type struct are ignored

  • record TlsServerConnectionInterface: glib type struct are ignored

  • record UnixConnectionClass: glib type struct are ignored

  • record UnixCredentialsMessageClass: glib type struct are ignored

  • record UnixFDListClass: glib type struct are ignored

  • record UnixFDMessageClass: glib type struct are ignored

  • record UnixInputStreamClass: glib type struct are ignored

  • record UnixMountMonitorClass: glib type struct are ignored

  • record UnixOutputStreamClass: glib type struct are ignored

  • record UnixSocketAddressClass: glib type struct are ignored

  • record VfsClass: glib type struct are ignored

  • record VolumeIface: glib type struct are ignored

  • record VolumeMonitorClass: glib type struct are ignored

  • record ZlibCompressorClass: glib type struct are ignored

  • record ZlibDecompressorClass: glib type struct are ignored

Properties

Link copied to clipboard

The value returned by handlers of the signals generated by the gdbus-codegen tool to indicate that a method call has been handled by an implementation. It is equal to true, but using this macro is sometimes more readable.

Link copied to clipboard

The value returned by handlers of the signals generated by the gdbus-codegen tool to indicate that a method call has not been handled by an implementation. It is equal to false, but using this macro is sometimes more readable.

Link copied to clipboard

Extension point for debug control functionality. See extending-gio.

Extension point for default handler to URI association. See extending-gio.

Link copied to clipboard

The string used to obtain a Unix device path with g_drive_get_identifier().

Link copied to clipboard

A key in the "access" namespace for checking deletion privileges.

Link copied to clipboard

A key in the "access" namespace for getting execution privileges.

Link copied to clipboard

A key in the "access" namespace for getting read privileges.

Link copied to clipboard

A key in the "access" namespace for checking renaming privileges.

Link copied to clipboard

A key in the "access" namespace for checking trashing privileges.

Link copied to clipboard

A key in the "access" namespace for getting write privileges.

Link copied to clipboard

A key in the "dos" namespace for checking if the file's archive flag is set.

Link copied to clipboard

A key in the "dos" namespace for checking if the file is a NTFS mount point (a volume mount or a junction point).

Link copied to clipboard

A key in the "dos" namespace for checking if the file's backup flag is set.

Link copied to clipboard

A key in the "dos" namespace for getting the file NTFS reparse tag.

Link copied to clipboard

A key in the "etag" namespace for getting the value of the file's entity tag.

Link copied to clipboard

A key in the "filesystem" namespace for getting the number of bytes of free space left on the file system.

Link copied to clipboard

A key in the "filesystem" namespace for checking if the file system is read only.

Link copied to clipboard

A key in the "filesystem" namespace for checking if the file system is remote.

Link copied to clipboard

A key in the "filesystem" namespace for getting the total size (in bytes) of the file system, used in g_file_query_filesystem_info().

Link copied to clipboard

A key in the "filesystem" namespace for getting the file system's type.

Link copied to clipboard

A key in the "filesystem" namespace for hinting a file manager application whether it should preview (e.g. thumbnail) files on the file system.

Link copied to clipboard

A key in the "filesystem" namespace for getting the number of bytes used by data on the file system.

Link copied to clipboard

A key in the "gvfs" namespace that gets the name of the current GVFS backend in use.

Link copied to clipboard

A key in the "id" namespace for getting a file identifier.

Link copied to clipboard

A key in the "id" namespace for getting the file system identifier.

Link copied to clipboard

A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be ejected.

Link copied to clipboard

A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is mountable.

Link copied to clipboard

A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be polled.

Link copied to clipboard

A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be started.

A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be started degraded.

Link copied to clipboard

A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be stopped.

Link copied to clipboard

A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is unmountable.

Link copied to clipboard

A key in the "mountable" namespace for getting the HAL UDI for the mountable file.

A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is automatically polled for media.

Link copied to clipboard

A key in the "mountable" namespace for getting the #GDriveStartStopType.

Link copied to clipboard

A key in the "mountable" namespace for getting the unix device.

A key in the "mountable" namespace for getting the unix device file.

Link copied to clipboard

A key in the "owner" namespace for getting the file owner's group.

Link copied to clipboard

A key in the "owner" namespace for getting the user name of the file's owner.

Link copied to clipboard

A key in the "owner" namespace for getting the real name of the user that owns the file.

Link copied to clipboard

A key in the "preview" namespace for getting a #GIcon that can be used to get preview of the file.

Link copied to clipboard

A key in the "recent" namespace for getting time, when the metadata for the file in recent:/// was last changed.

Link copied to clipboard

A key in the "selinux" namespace for getting the file's SELinux context.

Link copied to clipboard

A key in the "standard" namespace for getting the amount of disk space that is consumed by the file (in bytes).

Link copied to clipboard

A key in the "standard" namespace for getting the content type of the file.

Link copied to clipboard

A key in the "standard" namespace for getting the copy name of the file.

Link copied to clipboard

A key in the "standard" namespace for getting the description of the file.

Link copied to clipboard

A key in the "standard" namespace for getting the display name of the file.

Link copied to clipboard

A key in the "standard" namespace for edit name of the file.

A key in the "standard" namespace for getting the fast content type.

Link copied to clipboard

A key in the "standard" namespace for getting the icon for the file.

Link copied to clipboard

A key in the "standard" namespace for checking if a file is a backup file.

Link copied to clipboard

A key in the "standard" namespace for checking if a file is hidden.

Link copied to clipboard

A key in the "standard" namespace for checking if the file is a symlink. Typically the actual type is something else, if we followed the symlink to get the type.

Link copied to clipboard

A key in the "standard" namespace for checking if a file is virtual.

Link copied to clipboard

A key in the "standard" namespace for checking if a file is volatile. This is meant for opaque, non-POSIX-like backends to indicate that the URI is not persistent. Applications should look at %G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET for the persistent URI.

Link copied to clipboard

A key in the "standard" namespace for getting the name of the file.

Link copied to clipboard

A key in the "standard" namespace for getting the file's size (in bytes).

Link copied to clipboard

A key in the "standard" namespace for setting the sort order of a file.

Link copied to clipboard

A key in the "standard" namespace for getting the symbolic icon for the file.

Link copied to clipboard

A key in the "standard" namespace for getting the symlink target, if the file is a symlink.

Link copied to clipboard

A key in the "standard" namespace for getting the target URI for the file, in the case of %G_FILE_TYPE_SHORTCUT or %G_FILE_TYPE_MOUNTABLE files.

Link copied to clipboard

A key in the "standard" namespace for storing file types.

Link copied to clipboard

A key in the "thumbnail" namespace for checking whether the thumbnail is outdated.

Link copied to clipboard

A key in the "thumbnail" namespace for checking whether the large thumbnail is outdated.

Link copied to clipboard

A key in the "thumbnail" namespace for checking whether the normal thumbnail is outdated.

Link copied to clipboard

A key in the "thumbnail" namespace for checking whether the x-large thumbnail is outdated.

A key in the "thumbnail" namespace for checking whether the xx-large thumbnail is outdated.

Link copied to clipboard

A key in the "thumbnail" namespace for getting the path to the thumbnail image with the biggest size available.

Link copied to clipboard

A key in the "thumbnail" namespace for getting the path to the large thumbnail image.

Link copied to clipboard

A key in the "thumbnail" namespace for getting the path to the normal thumbnail image.

Link copied to clipboard

A key in the "thumbnail" namespace for getting the path to the x-large thumbnail image.

Link copied to clipboard

A key in the "thumbnail" namespace for getting the path to the xx-large thumbnail image.

Link copied to clipboard

A key in the "thumbnail" namespace for checking if thumbnailing failed.

Link copied to clipboard

A key in the "thumbnail" namespace for checking if thumbnailing failed for the large image.

A key in the "thumbnail" namespace for checking if thumbnailing failed for the normal image.

A key in the "thumbnail" namespace for checking if thumbnailing failed for the x-large image.

A key in the "thumbnail" namespace for checking if thumbnailing failed for the xx-large image.

Link copied to clipboard

A key in the "time" namespace for getting the time the file was last accessed.

Link copied to clipboard

A key in the "time" namespace for getting the nanoseconds of the time the file was last accessed. This should be used in conjunction with #G_FILE_ATTRIBUTE_TIME_ACCESS. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.

Link copied to clipboard

A key in the "time" namespace for getting the microseconds of the time the file was last accessed.

Link copied to clipboard

A key in the "time" namespace for getting the time the file was last changed.

Link copied to clipboard

A key in the "time" namespace for getting the nanoseconds of the time the file was last changed. This should be used in conjunction with #G_FILE_ATTRIBUTE_TIME_CHANGED. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.

Link copied to clipboard

A key in the "time" namespace for getting the microseconds of the time the file was last changed.

Link copied to clipboard

A key in the "time" namespace for getting the time the file was created.

Link copied to clipboard

A key in the "time" namespace for getting the nanoseconds of the time the file was created. This should be used in conjunction with #G_FILE_ATTRIBUTE_TIME_CREATED. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.

Link copied to clipboard

A key in the "time" namespace for getting the microseconds of the time the file was created.

Link copied to clipboard

A key in the "time" namespace for getting the time the file was last modified.

Link copied to clipboard

A key in the "time" namespace for getting the nanoseconds of the time the file was last modified. This should be used in conjunction with #G_FILE_ATTRIBUTE_TIME_MODIFIED. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.

Link copied to clipboard

A key in the "time" namespace for getting the microseconds of the time the file was last modified.

Link copied to clipboard

A key in the "trash" namespace for getting the deletion date and time of a file inside the trash:/// folder.

Link copied to clipboard

A key in the "trash" namespace for getting the number of (toplevel) items that are present in the trash:/// folder.

Link copied to clipboard

A key in the "trash" namespace for getting the original path of a file inside the trash:/// folder before it was trashed.

Link copied to clipboard

A key in the "unix" namespace for getting the block size for the file system.

Link copied to clipboard

A key in the "unix" namespace for getting the number of blocks allocated for the file.

Link copied to clipboard

A key in the "unix" namespace for getting the device id of the device the file is located on (see stat() documentation).

Link copied to clipboard

A key in the "unix" namespace for getting the group ID for the file.

Link copied to clipboard

A key in the "unix" namespace for getting the inode of the file.

Link copied to clipboard

A key in the "unix" namespace for checking if the file represents a UNIX mount point.

Link copied to clipboard

A key in the "unix" namespace for getting the mode of the file (e.g. whether the file is a regular file, symlink, etc).

Link copied to clipboard

A key in the "unix" namespace for getting the number of hard links for a file.

Link copied to clipboard

A key in the "unix" namespace for getting the device ID for the file (if it is a special file).

Link copied to clipboard

A key in the "unix" namespace for getting the user ID for the file.

Link copied to clipboard

Extension point for memory usage monitoring functionality. See extending-gio.

Link copied to clipboard

The menu item attribute which holds the action name of the item. Action names are namespaced with an identifier for the action group in which the action resides. For example, "win." for window-specific actions and "app." for application-wide actions.

Link copied to clipboard

The menu item attribute that holds the namespace for all action names in menus that are linked from this item.

Link copied to clipboard

The menu item attribute which holds the icon of the item.

Link copied to clipboard

The menu item attribute which holds the label of the item.

Link copied to clipboard

The menu item attribute which holds the target with which the item's action will be activated.

Link copied to clipboard
const val MENU_EXPORTER_MAX_SECTION_SIZE: <Error class: unknown class> = 1000

The maximum number of entries in a menu section supported by g_dbus_connection_export_menu_model().

Link copied to clipboard

The name of the link that associates a menu item with a section. The linked menu will usually be shown in place of the menu item, using the item's label as a header.

Link copied to clipboard

The name of the link that associates a menu item with a submenu.

Link copied to clipboard

Extension point for network status monitoring functionality. See extending-gio.

Extension point for power profile usage monitoring functionality. See extending-gio.

Link copied to clipboard

Extension point for proxy functionality. See extending-gio.

Link copied to clipboard

Extension point for proxy resolving functionality. See extending-gio.

Link copied to clipboard

Extension point for #GSettingsBackend functionality.

Link copied to clipboard

Extension point for TLS functionality via #GTlsBackend. See extending-gio.

Link copied to clipboard

The purpose used to verify the client certificate in a TLS connection. Used by TLS servers.

Link copied to clipboard

The purpose used to verify the server certificate in a TLS connection. This is the most common purpose in use. Used by TLS clients.

Link copied to clipboard

Extension point for #GVfs functionality. See extending-gio.

Link copied to clipboard

The string used to obtain the volume class with g_volume_get_identifier().

Link copied to clipboard

The string used to obtain a Hal UDI with g_volume_get_identifier().

Link copied to clipboard

The string used to obtain a filesystem label with g_volume_get_identifier().

Link copied to clipboard

The string used to obtain a NFS mount with g_volume_get_identifier().

Link copied to clipboard

The string used to obtain a Unix device path with g_volume_get_identifier().

Link copied to clipboard

The string used to obtain a UUID with g_volume_get_identifier().

Link copied to clipboard

Extension point for volume monitor functionality. See extending-gio.

Functions

Link copied to clipboard
fun busGet(busType: BusType, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)

Asynchronously connects to the message bus specified by @bus_type.

Link copied to clipboard
fun busGetFinish(res: AsyncResult): <Error class: unknown class><DBusConnection>

Finishes an operation started with g_bus_get().

Link copied to clipboard
fun busGetSync(busType: BusType, cancellable: Cancellable? = null): <Error class: unknown class><DBusConnection>

Synchronously connects to the message bus specified by @bus_type. Note that the returned object may shared with other callers, e.g. if two separate parts of a process calls this function with the same @bus_type, they will share the same object.

Link copied to clipboard
fun busOwnName(busType: BusType, name: String, flags: BusNameOwnerFlags, busAcquiredClosure: <Error class: unknown class>? = null, nameAcquiredClosure: <Error class: unknown class>? = null, nameLostClosure: <Error class: unknown class>? = null): <Error class: unknown class>

Version of g_bus_own_name() using closures instead of callbacks for easier binding in other languages.

Link copied to clipboard
fun busOwnNameOnConnection(connection: DBusConnection, name: String, flags: BusNameOwnerFlags, nameAcquiredClosure: <Error class: unknown class>? = null, nameLostClosure: <Error class: unknown class>? = null): <Error class: unknown class>

Version of g_bus_own_name_on_connection() using closures instead of callbacks for easier binding in other languages.

Link copied to clipboard
fun busUnownName(ownerId: <Error class: unknown class>)

Stops owning a name.

Link copied to clipboard
fun busUnwatchName(watcherId: <Error class: unknown class>)

Stops watching a name.

Link copied to clipboard
fun busWatchName(busType: BusType, name: String, flags: BusNameWatcherFlags, nameAppearedClosure: <Error class: unknown class>? = null, nameVanishedClosure: <Error class: unknown class>? = null): <Error class: unknown class>

Version of g_bus_watch_name() using closures instead of callbacks for easier binding in other languages.

Link copied to clipboard
fun busWatchNameOnConnection(connection: DBusConnection, name: String, flags: BusNameWatcherFlags, nameAppearedClosure: <Error class: unknown class>? = null, nameVanishedClosure: <Error class: unknown class>? = null): <Error class: unknown class>

Version of g_bus_watch_name_on_connection() using closures instead of callbacks for easier binding in other languages.

Link copied to clipboard

Checks if a content type can be executable. Note that for instance things like text files can be executables (i.e. scripts and batch files).

Link copied to clipboard
fun contentTypeEquals(type1: String, type2: String): Boolean

Compares two content types for equality.

Link copied to clipboard

Tries to find a content type based on the mime type name.

Link copied to clipboard

Gets the human readable description of the content type.

Link copied to clipboard

Gets the generic icon name for a content type.

Link copied to clipboard

Gets the icon for a content type.

Link copied to clipboard

Get the list of directories which MIME data is loaded from. See g_content_type_set_mime_dirs() for details.

Link copied to clipboard

Gets the mime type for the content type, if one is registered.

Link copied to clipboard

Gets the symbolic icon for a content type.

Link copied to clipboard

Tries to guess the type of the tree with root @root, by looking at the files it contains. The result is an array of content types, with the best guess coming first.

Link copied to clipboard
fun contentTypeIsA(type: String, supertype: String): Boolean

Determines if @type is a subset of @supertype.

Link copied to clipboard

Determines if @type is a subset of @mime_type. Convenience wrapper around g_content_type_is_a().

Link copied to clipboard

Checks if the content type is the generic "unknown" type. On UNIX this is the "application/octet-stream" mimetype, while on win32 it is "*" and on OSX it is a dynamic type or octet-stream.

Link copied to clipboard
fun contentTypeSetMimeDirs(dirs: List<String>? = null)

Set the list of directories used by GIO to load the MIME database. If @dirs is null, the directories used are the default:

Link copied to clipboard
fun contentTypesGetRegistered(): <Error class: unknown class>

Gets a list of strings containing all the registered content types known to the system. The list and its data should be freed using g_list_free_full (list, g_free).

Link copied to clipboard

Escape @string so it can appear in a D-Bus address as the value part of a key-value pair.

Link copied to clipboard
fun dbusAddressGetForBusSync(busType: BusType, cancellable: Cancellable? = null): <Error class: unknown class><String>

Synchronously looks up the D-Bus address for the well-known message bus instance specified by @bus_type. This may involve using various platform specific mechanisms.

Link copied to clipboard
fun dbusAddressGetStream(address: String, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)

Asynchronously connects to an endpoint specified by @address and sets up the connection so it is in a state to run the client-side of the D-Bus authentication conversation. @address must be in the D-Bus address format.

Link copied to clipboard

This is a language binding friendly version of g_dbus_escape_object_path_bytestring().

Link copied to clipboard

Generate a D-Bus GUID that can be used with e.g. g_dbus_connection_new().

Link copied to clipboard
fun dbusGvalueToGvariant(gvalue: <Error class: unknown class>, type: <Error class: unknown class>): <Error class: unknown class>

Converts a #GValue to a #GVariant of the type indicated by the @type parameter.

Link copied to clipboard
fun dbusGvariantToGvalue(value: <Error class: unknown class>, outGvalue: <Error class: unknown class>)

Converts a #GVariant to a #GValue. If @value is floating, it is consumed.

Link copied to clipboard

Checks if @string is a D-Bus address.

Link copied to clipboard

Check whether @string is a valid D-Bus error name.

Link copied to clipboard
fun dbusIsGuid(string: String): Boolean

Checks if @string is a D-Bus GUID.

Link copied to clipboard

Checks if @string is a valid D-Bus interface name.

Link copied to clipboard

Checks if @string is a valid D-Bus member (e.g. signal or method) name.

Link copied to clipboard
fun dbusIsName(string: String): Boolean

Checks if @string is a valid D-Bus bus name (either unique or well-known).

Link copied to clipboard
fun dbusIsSupportedAddress(string: String): <Error class: unknown class><Boolean>

Like g_dbus_is_address() but also checks if the library supports the transports in @string and that key/value pairs for each transport are valid. See the specification of the D-Bus address format.

Link copied to clipboard

Checks if @string is a valid D-Bus unique bus name.

Link copied to clipboard
fun ioErrorFromErrno(errNo: <Error class: unknown class>): IoErrorEnum

Converts errno.h error codes into GIO error codes.

Link copied to clipboard
fun ioErrorFromFileError(fileError: <Error class: unknown class>): IoErrorEnum

Converts #GFileError error codes into GIO error codes.

Link copied to clipboard
fun ioErrorQuark(): <Error class: unknown class>

Gets the GIO Error Quark.

Link copied to clipboard
fun ioModulesLoadAllInDirectory(dirname: String): <Error class: unknown class>

Loads all the modules in the specified directory.

Link copied to clipboard

Scans all the modules in the specified directory, ensuring that any extension point implemented by a module is registered.

Link copied to clipboard

Cancels all cancellable I/O jobs.

Link copied to clipboard
fun ioSchedulerPushJob(jobFunc: IoSchedulerJobFunc, ioPriority: <Error class: unknown class>, cancellable: Cancellable? = null)

Schedules the I/O job to run in another thread.

Link copied to clipboard
fun keyfileSettingsBackendNew(filename: String, rootPath: String, rootGroup: String? = null): SettingsBackend

Creates a keyfile-backed #GSettingsBackend.

Link copied to clipboard

Creates a memory-backed #GSettingsBackend.

Link copied to clipboard

Initializes the platform networking libraries (eg, on Windows, this calls WSAStartup()). GLib will call this itself if it is needed, so you only need to call it if you directly call system networking functions (without calling any GLib networking functions first).

Link copied to clipboard

Creates a readonly #GSettingsBackend.

Link copied to clipboard
fun pollableSourceNew(pollableStream: <Error class: unknown class>): <Error class: unknown class>

Utility method for #GPollableInputStream and #GPollableOutputStream implementations. Creates a new #GSource that expects a callback of type #GPollableSourceFunc. The new source does not actually do anything on its own; use g_source_add_child_source() to add other sources to it to cause it to trigger.

Link copied to clipboard
fun pollableSourceNewFull(pollableStream: <Error class: unknown class>, childSource: <Error class: unknown class>? = null, cancellable: Cancellable? = null): <Error class: unknown class>

Utility method for #GPollableInputStream and #GPollableOutputStream implementations. Creates a new #GSource, as with g_pollable_source_new(), but also attaching @child_source (with a dummy callback), and @cancellable, if they are non-null.

Link copied to clipboard
fun resolveException(error: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
fun resourcesEnumerateChildren(path: String, lookupFlags: ResourceLookupFlags): <Error class: unknown class><List<String>>

Returns all the names of children at the specified @path in the set of globally registered resources. The return result is a null terminated list of strings which should be released with g_strfreev().

Link copied to clipboard
fun resourcesLookupData(path: String, lookupFlags: ResourceLookupFlags): <Error class: unknown class><<Error class: unknown class>>

Looks for a file at the specified @path in the set of globally registered resources and returns a #GBytes that lets you directly access the data in memory.

Link copied to clipboard
fun resourcesOpenStream(path: String, lookupFlags: ResourceLookupFlags): <Error class: unknown class><InputStream>

Looks for a file at the specified @path in the set of globally registered resources and returns a #GInputStream that lets you read the data.

Link copied to clipboard

Registers the resource with the process-global set of resources. Once a resource is registered the files in it can be accessed with the global resource lookup functions like g_resources_lookup_data().

Link copied to clipboard

Unregisters the resource from the process-global set of resources.

Link copied to clipboard
fun simpleAsyncReportGerrorInIdle(object: <Error class: unknown class>? = null, callback: AsyncReadyCallback?, error: <Error class: unknown class>)

Reports an error in an idle function. Similar to g_simple_async_report_error_in_idle(), but takes a #GError rather than building a new one.

Link copied to clipboard
fun simpleAsyncReportTakeGerrorInIdle(object: <Error class: unknown class>? = null, callback: AsyncReadyCallback?, error: <Error class: unknown class>)

Reports an error in an idle function. Similar to g_simple_async_report_gerror_in_idle(), but takes over the caller's ownership of @error, so the caller does not have to free it any more.

Link copied to clipboard

Determines if @mount_path is considered an implementation of the OS. This is primarily used for hiding mountable and mounted volumes that only are used in the OS and has little to no relevance to the casual user.

Link copied to clipboard

Determines if @device_path is considered a block device path which is only used in implementation of the OS. This is primarily used for hiding mounted volumes that are intended as APIs for programs to read, and system administrators at a shell; rather than something that should, for example, appear in a GUI. For example, the Linux /proc filesystem.

Link copied to clipboard

Determines if @fs_type is considered a type of file system which is only used in implementation of the OS. This is primarily used for hiding mounted volumes that are intended as APIs for programs to read, and system administrators at a shell; rather than something that should, for example, appear in a GUI. For example, the Linux /proc filesystem.

Link copied to clipboard
fun unixMountCompare(mount1: UnixMountEntry, mount2: UnixMountEntry): <Error class: unknown class>

Compares two unix mounts.

Link copied to clipboard

Makes a copy of @mount_entry.

Link copied to clipboard
fun unixMountFree(mountEntry: UnixMountEntry)

Frees a unix mount.

Link copied to clipboard

Gets the device path for a unix mount.

Link copied to clipboard

Gets the filesystem type for the unix mount.

Link copied to clipboard

Gets the mount path for a unix mount.

Link copied to clipboard

Gets a comma-separated list of mount options for the unix mount. For example, rw,relatime,seclabel,data=ordered.

Link copied to clipboard

Gets the root of the mount within the filesystem. This is useful e.g. for mounts created by bind operation, or btrfs subvolumes.

Link copied to clipboard

Guesses whether a Unix mount can be ejected.

Link copied to clipboard

Guesses the icon of a Unix mount.

Link copied to clipboard

Guesses the name of a Unix mount. The result is a translated string.

Link copied to clipboard

Guesses whether a Unix mount should be displayed in the UI.

Link copied to clipboard

Guesses the symbolic icon of a Unix mount.

Link copied to clipboard

Checks if a unix mount is mounted read only.

Link copied to clipboard

Checks if a Unix mount is a system mount. This is the Boolean OR of g_unix_is_system_fs_type(), g_unix_is_system_device_path() and g_unix_is_mount_path_system_internal() on @mount_entry’s properties.

Link copied to clipboard
fun unixMountPointsChangedSince(time: <Error class: unknown class>): Boolean

Checks if the unix mount points have changed since a given unix time.

Link copied to clipboard
fun unixMountsChangedSince(time: <Error class: unknown class>): Boolean

Checks if the unix mounts have changed since a given unix time.