
Gnome::Gio::T-simpleasyncresult
Class initialization
new
Initialization of a type class is simple and only needed when the standalone functions are used.
method new ( )
Standalone Functions
simple-async-report-error-in-idle This function is not yet available
Reports an error in an asynchronous function in an idle function by directly setting the contents of the Gnome::Gio::R-AsyncResult with the given error information.
method simple-async-report-error-in-idle ( N-Object() $object, GAsyncReadyCallback &callback, gpointer $user-data, UInt $domain, Int() $code, Str $format, … )
$object; a Gnome::GObject::Object, or undefined..
GAsyncReadyCallback &callback; a Gnome::Gio::T-iotypes.. The function must be specified with the following signature;
:( N-Object $source-object, N-Object $res, gpointer $data )
.$user-data; user data passed to
$callback
..$domain; a Gnome::Glib::SimpleAsyncResult containing the error domain (usually
G_IO_ERROR
)..$code; a specific error code..
$format; a formatted error reporting string..
…; …. Note that each argument must be specified as a type followed by its value!
simple-async-report-gerror-in-idle
Reports an error in an idle function. Similar to g_simple_async_report_error_in_idle(), but takes a Gnome::Glib::N-Error rather than building a new one.
method simple-async-report-gerror-in-idle ( N-Object() $object, GAsyncReadyCallback &callback, gpointer $user-data, N-Object $error )
$object; a Gnome::GObject::Object, or undefined.
GAsyncReadyCallback &callback; a Gnome::Gio::T-iotypes.. The function must be specified with the following signature;
:( N-Object $source-object, N-Object $res, gpointer $data )
.$user-data; user data passed to
$callback
..$error; the Gnome::Glib::N-Error to report
simple-async-report-take-gerror-in-idle
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.
method simple-async-report-take-gerror-in-idle ( N-Object() $object, GAsyncReadyCallback &callback, gpointer $user-data, N-Object $error )
$object; a Gnome::GObject::Object, or undefined.
GAsyncReadyCallback &callback; a Gnome::Gio::T-iotypes.. The function must be specified with the following signature;
:( N-Object $source-object, N-Object $res, gpointer $data )
.$user-data; user data passed to
$callback
..$error; the Gnome::Glib::N-Error to report