ContentDeserializer
Object Hierarchy:
Gdk.ContentDeserializer
Gdk.ContentDeserializer
Gdk.ContentDeserializer
GLib.Object
GLib.Object
GLib.Object->Gdk.ContentDeserializer
GLib.AsyncResult
GLib.AsyncResult
GLib.AsyncResult->Gdk.ContentDeserializer
Description:
[ CCode ( type_id = "gdk_content_deserializer_get_type ()" ) ]public class ContentDeserializer : Object , AsyncResult
A `GdkContentDeserializer` is used to deserialize content received via inter-application data transfers.
The `GdkContentDeserializer` transforms serialized content that is identified by a mime type into an object identified by a GType.
GTK provides serializers and deserializers for common data types such as text, colors, images or file lists. To register your own
deserialization functions, use [func@content_register_deserializer].
Also see [[email protected] ].
Content:
Creation methods:
Methods:
public unowned Cancellable ? get_cancellable ()
Gets the cancellable for the current operation.
public Type get_gtype ()
Gets the `GType` to create an instance of.
public unowned InputStream get_input_stream ()
Gets the input stream for the current operation.
public unowned string get_mime_type ()
Gets the mime type to deserialize from.
public int get_priority ()
Gets the I/O priority for the current operation.
public void * get_task_data ()
Gets the data that was associated with the current operation.
public unowned Value ? get_value ()
Gets the `GValue` to store the deserialized object in.
public void return_error (owned Error error)
Indicate that the deserialization has ended with an error.
public void return_success ()
Indicate that the deserialization has been successfully completed.
public void set_task_data (void * data, DestroyNotify notify)
Associate data with the current deserialization operation.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.AsyncResult
get_source_object
get_user_data