Cancels a job not yet executed. This may fail for the following reasons: <itemizedlist> <listitem><para>the job id could not be found, either because it has already been treated or because it does not exist or because it was created in another thread</para></listitem> <listitem><para>the job id is currently being treated by the worker thread</para></listitem> </itemizedlist>
Connects a callback function to a signal for a particular object. The difference with g_signal_connect() and similar functions are: <itemizedlist> <listitem><para>the callback argument is not a #GCallback function, so the callback signature is not dependent on the signal itself</para></listitem> <listitem><para>the signal handler must not have to return any value</para></listitem> <listitem><para>the callback function will be called asynchronously, the caller may need to use gda.thread_wrapper.ThreadWrapper.iterate to get the notification</para></listitem> <listitem><para>if private_job and private_thread control in which case the signal is propagated.</para></listitem> </itemizedlist>
Disconnects the emission of a signal, does the opposite of gda.thread_wrapper.ThreadWrapper.connectRaw.
Use this method to check if the execution of a function is finished. The function's execution must have been requested using gda.thread_wrapper.ThreadWrapper.execute.
Allow wrapper to notify when an execution job is finished, by making its exec ID readable through a new #GIOChannel. This function is useful when the notification needs to be included into a main loop. This also notifies that signals (emitted by objects in wrapper's internal thread) are available.
Use this method to query the number of functions which have been queued to be executed but which have not yet been executed.
This method gives wrapper a chance to check if some functions to be executed have finished <emphasis>for the calling thread</emphasis>. In this case it handles the execution result and makes it ready to be processed using gda.thread_wrapper.ThreadWrapper.fetchResult.
Returns this, for use in with statements.
Requests that the signal which ID is id (which has been obtained using gda.thread_wrapper.ThreadWrapper.connectRaw) be treated by the calling thread instead of by the thread in which gda.thread_wrapper.ThreadWrapper.connectRaw was called.
Does the opposite of gda.thread_wrapper.ThreadWrapper.getIoChannel
Set the GObject of a D ObjectWrap wrapper.
Get a pointer to the underlying C object.
Calls g_object_ref() on a GObject.
Calls g_object_unref() on a GObject.
Get the GType of an object.
GObject GType property.
Convenience method to return this cast to a type. For use in D with statements.
Template to get the D object from a C GObject and cast it to the given D object type.
Connect a D closure to an object signal.
Template for setting a GObject property.
Template for getting a GObject property.
Creates a binding between source_property on source and target_property on target.
Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.
This function is intended for #GObject implementations to re-enforce a floating[floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling gobject.object.ObjectWrap.refSink.
Increases the freeze count on object. If the freeze count is non-zero, the emission of "notify" signals on object is stopped. The signals are queued until the freeze count is decreased to zero. Duplicate notifications are squashed so that at most one #GObject::notify signal is emitted for each property modified while the object is frozen.
Gets a named field from the objects table of associations (see gobject.object.ObjectWrap.setData).
Gets a property of an object.
This function gets back user data pointers stored via gobject.object.ObjectWrap.setQdata.
Gets n_properties properties for an object. Obtained properties will be set to values. All properties must be valid. Warnings will be emitted and undefined behaviour may result if invalid properties are passed in.
Checks whether object has a floating[floating-ref] reference.
Emits a "notify" signal for the property property_name on object.
Emits a "notify" signal for the property specified by pspec on object.
Increase the reference count of object, and possibly remove the floating[floating-ref] reference, if object has a floating reference.
Releases all references to other objects. This can be used to break reference cycles.
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
Sets a property on an object.
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
This function gets back user data pointers stored via gobject.object.ObjectWrap.setQdata and removes the data from object without invoking its destroy() function (if any was set). Usually, calling this function is only required to update user data pointers with a destroy notifier, for example:
Reverts the effect of a previous call to gobject.object.ObjectWrap.freezeNotify. The freeze count is decreased on object and when it reaches zero, queued "notify" signals are emitted.
This function essentially limits the life time of the closure to the life time of the object. That is, when the object is finalized, the closure is invalidated by calling gobject.closure.Closure.invalidate on it, in order to prevent invocations of the closure with a finalized (nonexisting) object. Also, gobject.object.ObjectWrap.ref_ and gobject.object.ObjectWrap.unref are added as marshal guards to the closure, to ensure that an extra reference count is held on object during invocation of the closure. Usually, this function will be called on closures that use this object as closure data.
Connect to Notify signal.