GObject.Object
Gio.SimpleAsyncResult
Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GSimpleAsyncResult |
Class : | SimpleAsyncResult |
Implements: | Gio.AsyncResult |
Extends: | GObject.Object |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gio.SimpleAsyncResult
()
Create a new Gio.SimpleAsyncResult
Create a new Gio.SimpleAsyncResult
|
||
new Gio.SimpleAsyncResult.c_new
(Object source_object, Function callback, void* user_data, void* source_tag)
:
Gio.SimpleAsyncResult
Create a new Gio.SimpleAsyncResult
Create a new Gio.SimpleAsyncResult
|
||
new Gio.SimpleAsyncResult.from_error
(Object source_object, Function callback, void* user_data, Object error)
:
Gio.SimpleAsyncResult
Create a new Gio.SimpleAsyncResult
Create a new Gio.SimpleAsyncResult
|
||
Ensures that the data passed to the _finish function of an async
operation is consistent.
Ensures that the data passed to the _finish function of an async
operation is consistent. Three checks are performed. First, result is checked to ensure that it is really a GSimpleAsyncResult. Second, source is checked to ensure that it matches the source object of result. Third, source_tag is checked to ensure that it is either NULL (as it is when the result was created by g_simple_async_report_error_in_idle() or g_simple_async_report_gerror_in_idle()) or equal to the convention, is a pointer to the _async function corresponding to the _finish function from which this function is called).
|
Gio.SimpleAsyncResult | |
complete
()
:
none
Completes an asynchronous I/O job immediately.
Completes an asynchronous I/O job immediately. Must be called in
the thread where the asynchronous result was to be delivered, as it invokes the callback directly. If you are in a different thread use g_simple_async_result_complete_in_idle(). Calling this function takes a reference to simple for as long as is needed to complete the call.
|
Gio.SimpleAsyncResult | |
complete_in_idle
()
:
none
Completes an asynchronous function in an idle handler in the linkend="g-main-context-push-thread-default">thread-default main
loop of the thread that simple was initially created in.
Completes an asynchronous function in an idle handler in the linkend="g-main-context-push-thread-default">thread-default main
loop of the thread that simple was initially created in. Calling this function takes a reference to simple for as long as is needed to complete the call.
|
Gio.SimpleAsyncResult | |
get_op_res_gboolean
()
:
gboolean
Gets the operation result boolean from within the asynchronous result.
Gets the operation result boolean from within the asynchronous result.
if the operation's result was FALSE.
|
Gio.SimpleAsyncResult | |
get_op_res_gssize
()
:
gint32
Gets a gssize from the asynchronous result.
Gets a gssize from the asynchronous result.
|
Gio.SimpleAsyncResult | |
get_source_object
()
:
GObject.Object
Gets the source object from a GAsyncResult.
Gets the source object from a GAsyncResult.
or NULL if there is none.
|
Gio.AsyncResult | |
get_user_data
()
:
void*
Gets the user data from a GAsyncResult.
Gets the user data from a GAsyncResult.
|
Gio.AsyncResult | |
propagate_error
()
:
gboolean
Propagates an error from within the simple asynchronous result to
a given destination.
Propagates an error from within the simple asynchronous result to
a given destination.
|
Gio.SimpleAsyncResult | |
set_from_error
(Object error)
:
none
Sets the result from a GError.
Sets the result from a GError.
|
Gio.SimpleAsyncResult | |
set_handle_cancellation
(gboolean handle_cancellation)
:
none
Sets whether to handle cancellation within the asynchronous operation.
Sets whether to handle cancellation within the asynchronous operation.
|
Gio.SimpleAsyncResult | |
set_op_res_gboolean
(gboolean op_res)
:
none
Sets the operation result to a boolean within the asynchronous result.
Sets the operation result to a boolean within the asynchronous result.
|
Gio.SimpleAsyncResult | |
set_op_res_gssize
(gint32 op_res)
:
none
Sets the operation result within the asynchronous result to
the given op_res.
Sets the operation result within the asynchronous result to
the given op_res.
|
Gio.SimpleAsyncResult |
None |