Back to Seed Clases

Gio


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gio.Cancellable

Class Gio.Cancellable

Import line: Gio = imports.gi.Gio;
GIR File: Gio-2.0.gir
C documentation: GCancellable
Class : Cancellable
Extends: GObject.Object
GCancellable is a thread-safe operation cancellation stack used
throughout GIO to allow for cancellation of synchronous and
asynchronous operations.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events - usage syntax: this.signals.EVENTNAME.connect( Function )
Event Defined By
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
GdkPixbuf.Pixbuf
Method
new GdkPixbuf.Pixbuf.from_stream (InputStream stream, Cancellable cancellable) : GdkPixbuf.Pixbuf
Create a new GdkPixbuf.Pixbuf
GdkPixbuf.Pixbuf
Method
new GdkPixbuf.Pixbuf.from_stream_at_scale (InputStream stream, gint32 width, gint32 height, gboolean preserve_aspect_ratio, Cancellable cancellable) : GdkPixbuf.Pixbuf
Create a new GdkPixbuf.Pixbuf
GdkPixbuf.Pixbuf
Method
GdkPixbuf.Pixbuf.new_from_stream_async (InputStream stream, Cancellable cancellable, Function callback, void* user_data) : none
Creates a new pixbuf by asynchronously loading an image from an input stream.
GdkPixbuf.Pixbuf
Method
GdkPixbuf.Pixbuf.new_from_stream_at_scale_async (InputStream stream, gint32 width, gint32 height, gboolean preserve_aspect_ratio, Cancellable cancellable, Function callback, void* user_data) : none
Creates a new pixbuf by asynchronously loading an image from an input stream.
Gio
Method
Gio.async_initable_newv_async (Number object_type, guint32 n_parameters, Parameter parameters, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Helper function for constructing GAsyncInitiable object.
Gio
Method
Gio.bus_get (BusType bus_type, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously connects to the message bus specified by bus_type.
Gio
Method
Gio.bus_get_sync (BusType bus_type, Cancellable cancellable) : Gio.DBusConnection
Synchronously connects to the message bus specified by bus_type.
Gio
Method
Gio.dbus_address_get_for_bus_sync (BusType bus_type, Cancellable cancellable) : String
Synchronously looks up the D-Bus address for the well-known message
bus instance specified by bus_type.
Gio
Method
Gio.dbus_address_get_stream (String address, Cancellable cancellable, Function callback, void* user_data) : none
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.
Gio
Method
Gio.dbus_address_get_stream_sync (String address, String out_guid, Cancellable cancellable) : Gio.IOStream
Synchronously 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.
Gio
Method
Gio.initable_newv (Number object_type, guint32 n_parameters, Parameter parameters, Cancellable cancellable) : void*
Helper function for constructing GInitiable object.
Gio
Method
Gio.io_scheduler_push_job (Function job_func, void* user_data, Function notify, gint32 io_priority, Cancellable cancellable) : none
Schedules the I/O job to run.
Gio.Application
Method
register (Cancellable cancellable) : gboolean
Attempts registration of the application.
Gio.AsyncInitable
Method
init_async (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Starts asynchronous initialization of the object implementing the
interface.
Gio.BufferedInputStream
Method
fill (gint32 count, Cancellable cancellable) : gint32
Tries to read count bytes from the stream into the buffer.
Gio.BufferedInputStream
Method
fill_async (gint32 count, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Reads data into stream's buffer asynchronously, up to count size.
Gio.BufferedInputStream
Method
read_byte (Cancellable cancellable) : gint32
Tries to read a single byte from the stream or the buffer.
Gio.DBusConnection
Method
new Gio.DBusConnection.for_address_sync (String address, DBusConnectionFlags flags, DBusAuthObserver observer, Cancellable cancellable) : Gio.DBusConnection
Create a new Gio.DBusConnection
Gio.DBusConnection
Method
new Gio.DBusConnection.sync (IOStream stream, String guid, DBusConnectionFlags flags, DBusAuthObserver observer, Cancellable cancellable) : Gio.DBusConnection
Create a new Gio.DBusConnection
Gio.DBusConnection
Method
Gio.DBusConnection.c_new (IOStream stream, String guid, DBusConnectionFlags flags, DBusAuthObserver observer, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously sets up a D-Bus connection for exchanging D-Bus messages
with the end represented by stream.
Gio.DBusConnection
Method
Gio.DBusConnection.new_for_address (String address, DBusConnectionFlags flags, DBusAuthObserver observer, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously connects and sets up a D-Bus client connection for
exchanging D-Bus messages with an endpoint specified by address
which must be in the D-Bus address format.
Gio.DBusConnection
Method
call (String bus_name, String object_path, String interface_name, String method_name, Variant parameters, VariantType reply_type, DBusCallFlags flags, gint32 timeout_msec, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously invokes the method_name method on the
If connection is closed then the operation will fail with
G_IO_ERROR_CLOSED.
Gio.DBusConnection
Method
call_sync (String bus_name, String object_path, String interface_name, String method_name, Variant parameters, VariantType reply_type, DBusCallFlags flags, gint32 timeout_msec, Cancellable cancellable) : GLib.Variant
Synchronously invokes the method_name method on the
If connection is closed then the operation will fail with
G_IO_ERROR_CLOSED.
Gio.DBusConnection
Method
close (Cancellable cancellable, Function callback, void* user_data) : none
Closes connection.
Gio.DBusConnection
Method
close_sync (Cancellable cancellable) : gboolean
Synchronously closees connection.
Gio.DBusConnection
Method
flush (Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously flushes connection, that is, writes all queued
outgoing message to the transport and then flushes the transport
(using g_output_stream_flush_async()).
Gio.DBusConnection
Method
flush_sync (Cancellable cancellable) : gboolean
Synchronously flushes connection.
Gio.DBusConnection
Method
send_message_with_reply (DBusMessage message, DBusSendMessageFlags flags, gint32 timeout_msec, guint32 out_serial, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously sends message to the peer represented by connection.
Gio.DBusConnection
Method
send_message_with_reply_sync (DBusMessage message, DBusSendMessageFlags flags, gint32 timeout_msec, guint32 out_serial, Cancellable cancellable) : Gio.DBusMessage
Synchronously sends message to the peer represented by connection
and blocks the calling thread until a reply is received or the
timeout is reached.
Gio.DBusProxy
Method
new Gio.DBusProxy.for_bus_sync (BusType bus_type, DBusProxyFlags flags, DBusInterfaceInfo info, String name, String object_path, String interface_name, Cancellable cancellable) : Gio.DBusProxy
Create a new Gio.DBusProxy
Gio.DBusProxy
Method
new Gio.DBusProxy.sync (DBusConnection connection, DBusProxyFlags flags, DBusInterfaceInfo info, String name, String object_path, String interface_name, Cancellable cancellable) : Gio.DBusProxy
Create a new Gio.DBusProxy
Gio.DBusProxy
Method
Gio.DBusProxy.c_new (DBusConnection connection, DBusProxyFlags flags, DBusInterfaceInfo info, String name, String object_path, String interface_name, Cancellable cancellable, Function callback, void* user_data) : none
Creates a proxy for accessing interface_name on the remote object
at object_path owned by name at connection and asynchronously
loads D-Bus properties unless the
G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag is used.
Gio.DBusProxy
Method
Gio.DBusProxy.new_for_bus (BusType bus_type, DBusProxyFlags flags, DBusInterfaceInfo info, String name, String object_path, String interface_name, Cancellable cancellable, Function callback, void* user_data) : none
Like g_dbus_proxy_new() but takes a GBusType instead of a GDBusConnection.
Gio.DBusProxy
Method
call (String method_name, Variant parameters, DBusCallFlags flags, gint32 timeout_msec, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously invokes the method_name method on proxy.
Gio.DBusProxy
Method
call_sync (String method_name, Variant parameters, DBusCallFlags flags, gint32 timeout_msec, Cancellable cancellable) : GLib.Variant
Synchronously invokes the method_name method on proxy.
Gio.DBusServer
Method
new Gio.DBusServer.sync (String address, DBusServerFlags flags, String guid, DBusAuthObserver observer, Cancellable cancellable) : Gio.DBusServer
Create a new Gio.DBusServer
Gio.DataInputStream
Method
read_byte (Cancellable cancellable) : guint8
Reads an unsigned 8-bit/1-byte value from stream.
Gio.DataInputStream
Method
read_int16 (Cancellable cancellable) : gint16
Reads a 16-bit/2-byte value from stream.
Gio.DataInputStream
Method
read_int32 (Cancellable cancellable) : gint32
Reads a signed 32-bit/4-byte value from stream.
Gio.DataInputStream
Method
read_int64 (Cancellable cancellable) : gint64
Reads a 64-bit/8-byte value from stream.
Gio.DataInputStream
Method
read_line (Object out_values, Cancellable cancellable) : String
Reads a line from the data input stream.
Gio.DataInputStream
Method
read_line_async (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
The asynchronous version of g_data_input_stream_read_line().
Gio.DataInputStream
Method
read_uint16 (Cancellable cancellable) : guint16
Reads an unsigned 16-bit/2-byte value from stream.
Gio.DataInputStream
Method
read_uint32 (Cancellable cancellable) : guint32
Reads an unsigned 32-bit/4-byte value from stream.
Gio.DataInputStream
Method
read_uint64 (Cancellable cancellable) : guint64
Reads an unsigned 64-bit/8-byte value from stream.
Gio.DataInputStream
Method
read_until (String stop_chars, Object out_values, Cancellable cancellable) : String
Reads a string from the data input stream, up to the first
occurrence of any of the stop characters.
Gio.DataInputStream
Method
read_until_async (String stop_chars, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
The asynchronous version of g_data_input_stream_read_until().
Gio.DataInputStream
Method
read_upto (String stop_chars, gint32 stop_chars_len, Object out_values, Cancellable cancellable) : String
Reads a string from the data input stream, up to the first
occurrence of any of the stop characters.
Gio.DataInputStream
Method
read_upto_async (String stop_chars, gint32 stop_chars_len, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
The asynchronous version of g_data_input_stream_read_upto().
Gio.DataOutputStream
Method
put_byte (guint8 data, Cancellable cancellable) : gboolean
Puts a byte into the output stream.
Gio.DataOutputStream
Method
put_int16 (gint16 data, Cancellable cancellable) : gboolean
Puts a signed 16-bit integer into the output stream.
Gio.DataOutputStream
Method
put_int32 (gint32 data, Cancellable cancellable) : gboolean
Puts a signed 32-bit integer into the output stream.
Gio.DataOutputStream
Method
put_int64 (gint64 data, Cancellable cancellable) : gboolean
Puts a signed 64-bit integer into the stream.
Gio.DataOutputStream
Method
put_string (String str, Cancellable cancellable) : gboolean
Puts a string into the output stream.
Gio.DataOutputStream
Method
put_uint16 (guint16 data, Cancellable cancellable) : gboolean
Puts an unsigned 16-bit integer into the output stream.
Gio.DataOutputStream
Method
put_uint32 (guint32 data, Cancellable cancellable) : gboolean
Puts an unsigned 32-bit integer into the stream.
Gio.DataOutputStream
Method
put_uint64 (guint64 data, Cancellable cancellable) : gboolean
Puts an unsigned 64-bit integer into the stream.
Gio.Drive
Method
eject (MountUnmountFlags flags, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously ejects a drive.
Gio.Drive
Method
eject_with_operation (MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Ejects a drive.
Gio.Drive
Method
poll_for_media (Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously polls drive to see if media has been inserted or removed.
Gio.Drive
Method
start (DriveStartFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously starts a drive.
Gio.Drive
Method
stop (MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously stops a drive.
Gio.File
Method
append_to (FileCreateFlags flags, Cancellable cancellable) : Gio.FileOutputStream
Gets an output stream for appending data to the file.
Gio.File
Method
append_to_async (FileCreateFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously opens file for appending.
Gio.File
Method
copy (File destination, FileCopyFlags flags, Cancellable cancellable, Function progress_callback, void* progress_callback_data) : gboolean
Copies the file source to the location specified by destination.
Gio.File
Method
copy_attributes (File destination, FileCopyFlags flags, Cancellable cancellable) : gboolean
Copies the file attributes from source to destination.
Gio.File
Method
create (FileCreateFlags flags, Cancellable cancellable) : Gio.FileOutputStream
Creates a new file and returns an output stream for writing to it.
Gio.File
Method
create_async (FileCreateFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously creates a new file and returns an output stream for writing to it.
Gio.File
Method
create_readwrite (FileCreateFlags flags, Cancellable cancellable) : Gio.FileIOStream
Creates a new file and returns a stream for reading and writing to it.
Gio.File
Method
create_readwrite_async (FileCreateFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously creates a new file and returns a stream for reading and
writing to it.
Gio.File
Method
delete (Cancellable cancellable) : gboolean
Deletes a file.
Gio.File
Method
eject_mountable (MountUnmountFlags flags, Cancellable cancellable, Function callback, void* user_data) : none
Starts an asynchronous eject on a mountable.
Gio.File
Method
eject_mountable_with_operation (MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Starts an asynchronous eject on a mountable.
Gio.File
Method
enumerate_children (String attributes, FileQueryInfoFlags flags, Cancellable cancellable) : Gio.FileEnumerator
Gets the requested information about the files in a directory.
Gio.File
Method
enumerate_children_async (String attributes, FileQueryInfoFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously gets the requested information about the files in a directory.
Gio.File
Method
find_enclosing_mount (Cancellable cancellable) : Gio.Mount
Gets a GMount for the GFile.
Gio.File
Method
find_enclosing_mount_async (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously gets the mount for the file.
Gio.File
Method
load_contents (Cancellable cancellable, Object out_values) : gboolean
Loads the content of the file into memory.
Gio.File
Method
load_contents_async (Cancellable cancellable, Function callback, void* user_data) : none
Starts an asynchronous load of the file's contents.
Gio.File
Method
make_directory (Cancellable cancellable) : gboolean
Creates a directory.
Gio.File
Method
make_directory_with_parents (Cancellable cancellable) : gboolean
Creates a directory and any parent directories that may not exist similar to
'mkdir -p'.
Gio.File
Method
make_symbolic_link (String symlink_value, Cancellable cancellable) : gboolean
Creates a symbolic link named file which contains the string
If cancellable is not NULL, then the operation can be cancelled by
triggering the cancellable object from another thread.
Gio.File
Method
monitor (FileMonitorFlags flags, Cancellable cancellable) : Gio.FileMonitor
Obtains a file or directory monitor for the given file, depending
on the type of the file.
Gio.File
Method
monitor_directory (FileMonitorFlags flags, Cancellable cancellable) : Gio.FileMonitor
Obtains a directory monitor for the given file.
Gio.File
Method
monitor_file (FileMonitorFlags flags, Cancellable cancellable) : Gio.FileMonitor
Obtains a file monitor for the given file.
Gio.File
Method
mount_enclosing_volume (MountMountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Starts a mount_operation, mounting the volume that contains the file location.
Gio.File
Method
mount_mountable (MountMountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Mounts a file of type G_FILE_TYPE_MOUNTABLE.
Gio.File
Method
move (File destination, FileCopyFlags flags, Cancellable cancellable, Function progress_callback, void* progress_callback_data) : gboolean
Tries to move the file or directory source to the location specified by destination.
Gio.File
Method
open_readwrite (Cancellable cancellable) : Gio.FileIOStream
Opens an existing file for reading and writing.
Gio.File
Method
open_readwrite_async (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously opens file for reading and writing.
Gio.File
Method
poll_mountable (Cancellable cancellable, Function callback, void* user_data) : none
Polls a file of type G_FILE_TYPE_MOUNTABLE.
Gio.File
Method
query_default_handler (Cancellable cancellable) : Gio.AppInfo
Returns the GAppInfo that is registered as the default
application to handle the file specified by file.
Gio.File
Method
query_exists (Cancellable cancellable) : gboolean
Utility function to check if a particular file exists.
Gio.File
Method
query_file_type (FileQueryInfoFlags flags, Cancellable cancellable) : Gio.FileType
Utility function to inspect the GFileType of a file.
Gio.File
Method
query_filesystem_info (String attributes, Cancellable cancellable) : Gio.FileInfo
Similar to g_file_query_info(), but obtains information
about the filesystem the file is on, rather than the file itself.
Gio.File
Method
query_filesystem_info_async (String attributes, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously gets the requested information about the filesystem
that the specified file is on.
Gio.File
Method
query_info (String attributes, FileQueryInfoFlags flags, Cancellable cancellable) : Gio.FileInfo
Gets the requested information about specified file.
Gio.File
Method
query_info_async (String attributes, FileQueryInfoFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously gets the requested information about specified file.
Gio.File
Method
query_settable_attributes (Cancellable cancellable) : Gio.FileAttributeInfoList
Obtain the list of settable attributes for the file.
Gio.File
Method
query_writable_namespaces (Cancellable cancellable) : Gio.FileAttributeInfoList
Obtain the list of attribute namespaces where new attributes
can be created by a user.
Gio.File
Method
read (Cancellable cancellable) : Gio.FileInputStream
Opens a file for reading.
Gio.File
Method
read_async (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously opens file for reading.
Gio.File
Method
replace (String etag, gboolean make_backup, FileCreateFlags flags, Cancellable cancellable) : Gio.FileOutputStream
Returns an output stream for overwriting the file, possibly
creating a backup copy of the file first.
Gio.File
Method
replace_async (String etag, gboolean make_backup, FileCreateFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously overwrites the file, replacing the contents, possibly
creating a backup copy of the file first.
Gio.File
Method
replace_contents (String contents, guint32 length, String etag, gboolean make_backup, FileCreateFlags flags, Object out_values, Cancellable cancellable) : gboolean
Replaces the contents of file with contents of length bytes.
Gio.File
Method
replace_contents_async (String contents, guint32 length, String etag, gboolean make_backup, FileCreateFlags flags, Cancellable cancellable, Function callback, void* user_data) : none
Starts an asynchronous replacement of file with the given
current entity tag.
Gio.File
Method
replace_readwrite (String etag, gboolean make_backup, FileCreateFlags flags, Cancellable cancellable) : Gio.FileIOStream
Returns an output stream for overwriting the file in readwrite mode,
possibly creating a backup copy of the file first.
Gio.File
Method
replace_readwrite_async (String etag, gboolean make_backup, FileCreateFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously overwrites the file in read-write mode, replacing the
contents, possibly creating a backup copy of the file first.
Gio.File
Method
set_attribute (String attribute, FileAttributeType type, void* value_p, FileQueryInfoFlags flags, Cancellable cancellable) : gboolean
Sets an attribute in the file with attribute name attribute to value.
Gio.File
Method
set_attribute_byte_string (String attribute, String value, FileQueryInfoFlags flags, Cancellable cancellable) : gboolean
Sets attribute of type G_FILE_ATTRIBUTE_TYPE_BYTE_STRING to value.
Gio.File
Method
set_attribute_int32 (String attribute, gint32 value, FileQueryInfoFlags flags, Cancellable cancellable) : gboolean
Sets attribute of type G_FILE_ATTRIBUTE_TYPE_INT32 to value.
Gio.File
Method
set_attribute_int64 (String attribute, gint64 value, FileQueryInfoFlags flags, Cancellable cancellable) : gboolean
Sets attribute of type G_FILE_ATTRIBUTE_TYPE_INT64 to value.
Gio.File
Method
set_attribute_string (String attribute, String value, FileQueryInfoFlags flags, Cancellable cancellable) : gboolean
Sets attribute of type G_FILE_ATTRIBUTE_TYPE_STRING to value.
Gio.File
Method
set_attribute_uint32 (String attribute, guint32 value, FileQueryInfoFlags flags, Cancellable cancellable) : gboolean
Sets attribute of type G_FILE_ATTRIBUTE_TYPE_UINT32 to value.
Gio.File
Method
set_attribute_uint64 (String attribute, guint64 value, FileQueryInfoFlags flags, Cancellable cancellable) : gboolean
Sets attribute of type G_FILE_ATTRIBUTE_TYPE_UINT64 to value.
Gio.File
Method
set_attributes_async (FileInfo info, FileQueryInfoFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously sets the attributes of file with info.
Gio.File
Method
set_attributes_from_info (FileInfo info, FileQueryInfoFlags flags, Cancellable cancellable) : gboolean
Tries to set all attributes in the GFileInfo on the target values,
not stopping on the first error.
Gio.File
Method
set_display_name (String display_name, Cancellable cancellable) : Gio.File
Renames file to the specified display name.
Gio.File
Method
set_display_name_async (String display_name, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously sets the display name for a given GFile.
Gio.File
Method
start_mountable (DriveStartFlags flags, MountOperation start_operation, Cancellable cancellable, Function callback, void* user_data) : none
Starts a file of type G_FILE_TYPE_MOUNTABLE.
Gio.File
Method
stop_mountable (MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Stops a file of type G_FILE_TYPE_MOUNTABLE.
Gio.File
Method
trash (Cancellable cancellable) : gboolean
Sends file to the "Trashcan", if possible.
Gio.File
Method
unmount_mountable (MountUnmountFlags flags, Cancellable cancellable, Function callback, void* user_data) : none
Unmounts a file of type G_FILE_TYPE_MOUNTABLE.
Gio.File
Method
unmount_mountable_with_operation (MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Unmounts a file of type G_FILE_TYPE_MOUNTABLE.
Gio.FileEnumerator
Method
close (Cancellable cancellable) : gboolean
Releases all resources used by this enumerator, making the
enumerator return G_IO_ERROR_CLOSED on all calls.
Gio.FileEnumerator
Method
close_async (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously closes the file enumerator.
Gio.FileEnumerator
Method
next_file (Cancellable cancellable) : Gio.FileInfo
Returns information for the next file in the enumerated object.
Gio.FileEnumerator
Method
next_files_async (gint32 num_files, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Request information for a number of files from the enumerator asynchronously.
Gio.FileIOStream
Method
query_info (String attributes, Cancellable cancellable) : Gio.FileInfo
Queries a file io stream for the given attributes.
Gio.FileIOStream
Method
query_info_async (String attributes, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously queries the stream for a GFileInfo.
Gio.FileInputStream
Method
query_info (String attributes, Cancellable cancellable) : Gio.FileInfo
Queries a file input stream the given attributes.
Gio.FileInputStream
Method
query_info_async (String attributes, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Queries the stream information asynchronously.
Gio.FileOutputStream
Method
query_info (String attributes, Cancellable cancellable) : Gio.FileInfo
Queries a file output stream for the given attributes.
Gio.FileOutputStream
Method
query_info_async (String attributes, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously queries the stream for a GFileInfo.
Gio.IOStream
Method
close (Cancellable cancellable) : gboolean
Closes the stream, releasing resources related to it.
Gio.IOStream
Method
close_async (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Requests an asynchronous close of the stream, releasing resources
related to it.
Gio.IOStream
Method
splice_async (IOStream stream2, IOStreamSpliceFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asyncronously splice the output stream of stream1 to the input stream of
When the operation is finished callback will be called.
Gio.Initable
Method
init (Cancellable cancellable) : gboolean
Initializes the object implementing the interface.
Gio.InputStream
Method
close (Cancellable cancellable) : gboolean
Closes the stream, releasing resources related to it.
Gio.InputStream
Method
close_async (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Requests an asynchronous closes of the stream, releasing resources related to it.
Gio.InputStream
Method
read (void* buffer, guint32 count, Cancellable cancellable) : gint32
Tries to read count bytes from the stream into the buffer starting at
If count is zero returns zero and does nothing.
Gio.InputStream
Method
read_all (void* buffer, guint32 count, Object out_values, Cancellable cancellable) : gboolean
Tries to read count bytes from the stream into the buffer starting at
This function is similar to g_input_stream_read(), except it tries to
read as many bytes as requested, only stopping on an error or end of stream.
Gio.InputStream
Method
read_async (void* buffer, guint32 count, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Request an asynchronous read of count bytes from the stream into the buffer
starting at buffer.
Gio.InputStream
Method
skip (guint32 count, Cancellable cancellable) : gint32
Tries to skip count bytes from the stream.
Gio.InputStream
Method
skip_async (guint32 count, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Request an asynchronous skip of count bytes from the stream.
Gio.LoadableIcon
Method
load (gint32 size, Object out_values, Cancellable cancellable) : Gio.InputStream
Loads a loadable icon.
Gio.LoadableIcon
Method
load_async (gint32 size, Cancellable cancellable, Function callback, void* user_data) : none
Loads an icon asynchronously.
Gio.Mount
Method
eject (MountUnmountFlags flags, Cancellable cancellable, Function callback, void* user_data) : none
Ejects a mount.
Gio.Mount
Method
eject_with_operation (MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Ejects a mount.
Gio.Mount
Method
guess_content_type (gboolean force_rescan, Cancellable cancellable, Function callback, void* user_data) : none
Tries to guess the type of content stored on mount.
Gio.Mount
Method
guess_content_type_sync (gboolean force_rescan, Cancellable cancellable) : Array
Tries to guess the type of content stored on mount.
Gio.Mount
Method
remount (MountMountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Remounts a mount.
Gio.Mount
Method
unmount (MountUnmountFlags flags, Cancellable cancellable, Function callback, void* user_data) : none
Unmounts a mount.
Gio.Mount
Method
unmount_with_operation (MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Unmounts a mount.
Gio.OutputStream
Method
close (Cancellable cancellable) : gboolean
Closes the stream, releasing resources related to it.
Gio.OutputStream
Method
close_async (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Requests an asynchronous close of the stream, releasing resources
related to it.
Gio.OutputStream
Method
flush (Cancellable cancellable) : gboolean
Flushed any outstanding buffers in the stream.
Gio.OutputStream
Method
flush_async (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Flushes a stream asynchronously.
Gio.OutputStream
Method
splice (InputStream source, OutputStreamSpliceFlags flags, Cancellable cancellable) : gint32
Splices an input stream into an output stream.
Gio.OutputStream
Method
splice_async (InputStream source, OutputStreamSpliceFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Splices a stream asynchronously.
Gio.OutputStream
Method
write (String buffer, guint32 count, Cancellable cancellable) : gint32
Tries to write count bytes from buffer into the stream.
Gio.OutputStream
Method
write_all (String buffer, guint32 count, Object out_values, Cancellable cancellable) : gboolean
Tries to write count bytes from buffer into the stream.
Gio.OutputStream
Method
write_async (String buffer, guint32 count, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Request an asynchronous write of count bytes from buffer into
the stream.
Gio.Permission
Method
acquire (Cancellable cancellable) : gboolean
Attempts to acquire the permission represented by permission.
Gio.Permission
Method
acquire_async (Cancellable cancellable, Function callback, void* user_data) : none
Attempts to acquire the permission represented by permission.
Gio.Permission
Method
release (Cancellable cancellable) : gboolean
Attempts to release the permission represented by permission.
Gio.Permission
Method
release_async (Cancellable cancellable, Function callback, void* user_data) : none
Attempts to release the permission represented by permission.
Gio.PollableInputStream
Method
read_nonblocking (void* buffer, guint32 size, Cancellable cancellable) : gint32
Attempts to read up to size bytes from stream into buffer, as
with g_input_stream_read().
Gio.PollableOutputStream
Method
write_nonblocking (String buffer, guint32 size, Cancellable cancellable) : gint32
Attempts to write up to size bytes from buffer to stream, as
with g_output_stream_write().
Gio.Proxy
Method
connect (IOStream connection, ProxyAddress proxy_address, Cancellable cancellable) : Gio.IOStream
Given connection to communicate with a proxy (eg, a
GSocketConnection that is connected to the proxy server), this
does the necessary handshake to connect to proxy_address, and if
required, wraps the GIOStream to handle proxy payload.
Gio.Proxy
Method
connect_async (IOStream connection, ProxyAddress proxy_address, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronous version of g_proxy_connect().
Gio.ProxyResolver
Method
lookup (String uri, Cancellable cancellable) : Array
Looks into the system proxy configuration to determine what proxy,
if any, to use to connect to uri.
Gio.ProxyResolver
Method
lookup_async (String uri, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronous lookup of proxy.
Gio.Resolver
Method
lookup_by_address (InetAddress address, Cancellable cancellable) : String
Synchronously reverse-resolves address to determine its
associated hostname.
Gio.Resolver
Method
lookup_by_address_async (InetAddress address, Cancellable cancellable, Function callback, void* user_data) : none
Begins asynchronously reverse-resolving address to determine its
associated hostname, and eventually calls callback, which must
call g_resolver_lookup_by_address_finish() to get the final result.
Gio.Resolver
Method
lookup_by_name (String hostname, Cancellable cancellable) : Array
Synchronously resolves hostname to determine its associated IP
address(es).
Gio.Resolver
Method
lookup_by_name_async (String hostname, Cancellable cancellable, Function callback, void* user_data) : none
Begins asynchronously resolving hostname to determine its
associated IP address(es), and eventually calls callback, which
must call g_resolver_lookup_by_name_finish() to get the result.
Gio.Resolver
Method
lookup_service (String service, String protocol, String domain, Cancellable cancellable) : Array
Synchronously performs a DNS SRV lookup for the given service and
include the leading underscore that appears in the actual DNS
entry.
Gio.Resolver
Method
lookup_service_async (String service, String protocol, String domain, Cancellable cancellable, Function callback, void* user_data) : none
Begins asynchronously performing a DNS SRV lookup for the given
get the final result.
Gio.Seekable
Method
seek (gint64 offset, SeekType type, Cancellable cancellable) : gboolean
Seeks in the stream by the given offset, modified by type.
Gio.Seekable
Method
truncate (gint64 offset, Cancellable cancellable) : gboolean
Truncates a stream with a given offset.
Gio.Socket
Method
accept (Cancellable cancellable) : Gio.Socket
Accept incoming connections on a connection-based socket.
Gio.Socket
Method
condition_wait (IOCondition condition, Cancellable cancellable) : gboolean
Waits for condition to become true on socket.
Gio.Socket
Method
connect (SocketAddress address, Cancellable cancellable) : gboolean
Connect the socket to the specified remote address.
Gio.Socket
Method
receive (String buffer, guint32 size, Cancellable cancellable) : gint32
Receive data (up to size bytes) from a socket.
Gio.Socket
Method
receive_from (SocketAddress address, String buffer, guint32 size, Cancellable cancellable) : gint32
Receive data (up to size bytes) from a socket.
Gio.Socket
Method
receive_message (SocketAddress address, Array vectors, gint32 num_vectors, Array messages, gint32 num_messages, gint32 flags, Cancellable cancellable) : gint32
Receive data from a socket.
Gio.Socket
Method
receive_with_blocking (String buffer, guint32 size, gboolean blocking, Cancellable cancellable) : gint32
This behaves exactly the same as g_socket_receive(), except that
the choice of blocking or non-blocking behavior is determined by
the blocking argument rather than by socket's properties.
Gio.Socket
Method
send (Array buffer, guint32 size, Cancellable cancellable) : gint32
Tries to send size bytes from buffer on the socket.
Gio.Socket
Method
send_message (SocketAddress address, Array vectors, gint32 num_vectors, Array messages, gint32 num_messages, gint32 flags, Cancellable cancellable) : gint32
Send data to address on socket.
Gio.Socket
Method
send_to (SocketAddress address, Array buffer, guint32 size, Cancellable cancellable) : gint32
Tries to send size bytes from buffer to address.
Gio.Socket
Method
send_with_blocking (Array buffer, guint32 size, gboolean blocking, Cancellable cancellable) : gint32
This behaves exactly the same as g_socket_send(), except that
the choice of blocking or non-blocking behavior is determined by
the blocking argument rather than by socket's properties.
Gio.SocketAddressEnumerator
Method
next (Cancellable cancellable) : Gio.SocketAddress
Retrieves the next GSocketAddress from enumerator.
Gio.SocketAddressEnumerator
Method
next_async (Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously retrieves the next GSocketAddress from enumerator
and then calls callback, which must call
g_socket_address_enumerator_next_finish() to get the result.
Gio.SocketClient
Method
connect (SocketConnectable connectable, Cancellable cancellable) : Gio.SocketConnection
Tries to resolve the connectable and make a network connection to it.
Gio.SocketClient
Method
connect_async (SocketConnectable connectable, Cancellable cancellable, Function callback, void* user_data) : none
This is the asynchronous version of g_socket_client_connect().
Gio.SocketClient
Method
connect_to_host (String host_and_port, guint16 default_port, Cancellable cancellable) : Gio.SocketConnection
This is a helper function for g_socket_client_connect().
Gio.SocketClient
Method
connect_to_host_async (String host_and_port, guint16 default_port, Cancellable cancellable, Function callback, void* user_data) : none
This is the asynchronous version of g_socket_client_connect_to_host().
Gio.SocketClient
Method
connect_to_service (String domain, String service, Cancellable cancellable) : Gio.SocketConnection
Attempts to create a TCP connection to a service.
Gio.SocketClient
Method
connect_to_service_async (String domain, String service, Cancellable cancellable, Function callback, void* user_data) : none
This is the asynchronous version of
g_socket_client_connect_to_service().
Gio.SocketClient
Method
connect_to_uri (String uri, guint16 default_port, Cancellable cancellable) : Gio.SocketConnection
This is a helper function for g_socket_client_connect().
Gio.SocketClient
Method
connect_to_uri_async (String uri, guint16 default_port, Cancellable cancellable, Function callback, void* user_data) : none
This is the asynchronous version of g_socket_client_connect_to_uri().
Gio.SocketListener
Method
accept (Object out_values, Cancellable cancellable) : Gio.SocketConnection
Blocks waiting for a client to connect to any of the sockets added
to the listener.
Gio.SocketListener
Method
accept_async (Cancellable cancellable, Function callback, void* user_data) : none
This is the asynchronous version of g_socket_listener_accept().
Gio.SocketListener
Method
accept_socket (Object out_values, Cancellable cancellable) : Gio.Socket
Blocks waiting for a client to connect to any of the sockets added
to the listener.
Gio.SocketListener
Method
accept_socket_async (Cancellable cancellable, Function callback, void* user_data) : none
This is the asynchronous version of g_socket_listener_accept_socket().
Gio.TlsConnection
Method
handshake (Cancellable cancellable) : gboolean
Attempts a TLS handshake on conn.
Gio.TlsConnection
Method
handshake_async (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously performs a TLS handshake on conn.
Gio.UnixConnection
Method
receive_credentials (Cancellable cancellable) : Gio.Credentials
Receives credentials from the sending end of the connection.
Gio.UnixConnection
Method
receive_fd (Cancellable cancellable) : gint32
Receives a file descriptor from the sending end of the connection.
Gio.UnixConnection
Method
send_credentials (Cancellable cancellable) : gboolean
Passes the credentials of the current user the receiving side
of the connection.
Gio.UnixConnection
Method
send_fd (gint32 fd, Cancellable cancellable) : gboolean
Passes a file descriptor to the recieving side of the
connection.
Gio.Volume
Method
eject (MountUnmountFlags flags, Cancellable cancellable, Function callback, void* user_data) : none
Ejects a volume.
Gio.Volume
Method
eject_with_operation (MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Ejects a volume.
Gio.Volume
Method
mount (MountMountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data) : none
Mounts a volume.
Json.Generator
Method
to_stream (OutputStream stream, Cancellable cancellable) : gboolean
Json.Parser
Method
load_from_stream (InputStream stream, Cancellable cancellable) : gboolean
Json.Parser
Method
load_from_stream_async (InputStream stream, Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Authority
Method
Polkit.Authority.get_async (Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Authority
Method
Polkit.Authority.get_sync (Cancellable cancellable) : Polkit.Authority
Polkit.Authority
Method
authentication_agent_response (String cookie, Identity identity, Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Authority
Method
authentication_agent_response_sync (String cookie, Identity identity, Cancellable cancellable) : gboolean
Polkit.Authority
Method
check_authorization (Subject subject, String action_id, Details details, CheckAuthorizationFlags flags, Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Authority
Method
check_authorization_sync (Subject subject, String action_id, Details details, CheckAuthorizationFlags flags, Cancellable cancellable) : Polkit.AuthorizationResult
Polkit.Authority
Method
enumerate_actions (Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Authority
Method
enumerate_actions_sync (Cancellable cancellable) : Array
Polkit.Authority
Method
enumerate_temporary_authorizations (Subject subject, Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Authority
Method
enumerate_temporary_authorizations_sync (Subject subject, Cancellable cancellable) : Array
Polkit.Authority
Method
register_authentication_agent (Subject subject, String locale, String object_path, Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Authority
Method
register_authentication_agent_sync (Subject subject, String locale, String object_path, Cancellable cancellable) : gboolean
Polkit.Authority
Method
revoke_temporary_authorization_by_id (String id, Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Authority
Method
revoke_temporary_authorization_by_id_sync (String id, Cancellable cancellable) : gboolean
Polkit.Authority
Method
revoke_temporary_authorizations (Subject subject, Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Authority
Method
revoke_temporary_authorizations_sync (Subject subject, Cancellable cancellable) : gboolean
Polkit.Authority
Method
unregister_authentication_agent (Subject subject, String object_path, Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Authority
Method
unregister_authentication_agent_sync (Subject subject, String object_path, Cancellable cancellable) : gboolean
Polkit.Permission
Method
new Polkit.Permission.sync (String action_id, Subject subject, Cancellable cancellable) : Gio.Permission
Create a new Polkit.Permission
Polkit.Permission
Method
Polkit.Permission.c_new (String action_id, Subject subject, Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Subject
Method
exists (Cancellable cancellable, Function callback, void* user_data) : none
Polkit.Subject
Method
exists_sync (Cancellable cancellable) : gboolean
Polkit.SystemBusName
Method
get_process_sync (Cancellable cancellable) : Polkit.Subject
Polkit.UnixSession
Method
Polkit.UnixSession.new_for_process (gint32 pid, Cancellable cancellable, Function callback, void* user_data) : none
Polkit.UnixSession
Method
Polkit.UnixSession.new_for_process_sync (gint32 pid, Cancellable cancellable) : Polkit.Subject
PolkitAgent.Listener
Method
initiate_authentication (String action_id, String message, String icon_name, Details details, String cookie, Array identities, Cancellable cancellable, Function callback, void* user_data) : none
PolkitAgent.Listener
Method
register (RegisterFlags flags, Subject subject, String object_path, Cancellable cancellable) : void*
PolkitAgent.TextListener
Method
new PolkitAgent.TextListener.c_new (Cancellable cancellable) : PolkitAgent.Listener
Create a new PolkitAgent.TextListener
Soup.Address
Method
resolve_async (MainContext async_context, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously resolves the missing half of addr (its IP address
if it was created with soup_address_new(), or its hostname if it
was created with soup_address_new_from_sockaddr() or
soup_address_new_any().
Soup.Address
Method
resolve_sync (Cancellable cancellable) : guint32
Synchronously resolves the missing half of addr, as with
soup_address_resolve_async().
Soup.ProxyResolver
Method
get_proxy_sync (Message msg, Cancellable cancellable, Address addr) : guint32
Soup.ProxyURIResolver
Method
get_proxy_uri_async (URI uri, MainContext async_context, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously determines a proxy URI to use for msg and calls
Soup.ProxyURIResolver
Method
get_proxy_uri_sync (URI uri, Cancellable cancellable, URI proxy_uri) : guint32
Synchronously determines a proxy URI to use for uri.
Soup.Socket
Method
connect_async (Cancellable cancellable, Function callback, void* user_data) : none
Begins asynchronously connecting to sock's remote address.
Soup.Socket
Method
connect_sync (Cancellable cancellable) : guint32
Attempt to synchronously connect sock to its remote address.
Soup.Socket
Method
read (void* buffer, guint32 len, guint32 nread, Cancellable cancellable) : Soup.SocketIOStatus
Attempts to read up to len bytes from sock into buffer.
Soup.Socket
Method
read_until (void* buffer, guint32 len, void* boundary, guint32 boundary_len, guint32 nread, gboolean got_boundary, Cancellable cancellable) : Soup.SocketIOStatus
Like soup_socket_read(), but reads no further than the first
occurrence of boundary.
Soup.Socket
Method
start_proxy_ssl (String ssl_host, Cancellable cancellable) : gboolean
Starts using SSL on socket, expecting to find a host named
Soup.Socket
Method
start_ssl (Cancellable cancellable) : gboolean
Starts using SSL on socket.
Soup.Socket
Method
write (void* buffer, guint32 len, guint32 nwrote, Cancellable cancellable) : Soup.SocketIOStatus
Attempts to write len bytes from buffer to sock.
TelepathyGLib.AccountChannelRequest
Method
create_and_handle_channel_async (Cancellable cancellable, Function callback, void* user_data) : none
TelepathyGLib.AccountChannelRequest
Method
create_and_observe_channel_async (String preferred_handler, Cancellable cancellable, Function callback, void* user_data) : none
TelepathyGLib.AccountChannelRequest
Method
create_channel_async (String preferred_handler, Cancellable cancellable, Function callback, void* user_data) : none
TelepathyGLib.AccountChannelRequest
Method
ensure_and_handle_channel_async (Cancellable cancellable, Function callback, void* user_data) : none
TelepathyGLib.AccountChannelRequest
Method
ensure_and_observe_channel_async (String preferred_handler, Cancellable cancellable, Function callback, void* user_data) : none
TelepathyGLib.AccountChannelRequest
Method
ensure_channel_async (String preferred_handler, Cancellable cancellable, Function callback, void* user_data) : none
TelepathyGLib.Contact
Method
request_contact_info_async (Cancellable cancellable, Function callback, void* user_data) : none
UPowerGlib.Client
Method
about_to_sleep_sync (Cancellable cancellable) : gboolean
UPowerGlib.Client
Method
enumerate_devices_sync (Cancellable cancellable) : gboolean
UPowerGlib.Client
Method
get_properties_sync (Cancellable cancellable) : gboolean
UPowerGlib.Client
Method
hibernate_sync (Cancellable cancellable) : gboolean
UPowerGlib.Client
Method
suspend_sync (Cancellable cancellable) : gboolean
UPowerGlib.Device
Method
get_history_sync (String type, guint32 timespec, guint32 resolution, Cancellable cancellable) : Array
UPowerGlib.Device
Method
get_statistics_sync (String type, Cancellable cancellable) : Array
UPowerGlib.Device
Method
refresh_sync (Cancellable cancellable) : gboolean
UPowerGlib.Device
Method
set_object_path_sync (String object_path, Cancellable cancellable) : gboolean
UPowerGlib.Wakeups
Method
get_data_sync (Cancellable cancellable) : Array
UPowerGlib.Wakeups
Method
get_properties_sync (Cancellable cancellable) : gboolean
UPowerGlib.Wakeups
Method
get_total_sync (Cancellable cancellable) : guint32
Vte.Terminal
Method
write_contents (OutputStream stream, TerminalWriteFlags flags, Cancellable cancellable) : gboolean
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:08 GMT+0800 (HKT)