Gdk.ContentDeserializer¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gdk.ContentDeserializer(**kwargs)¶
- Bases:
- Abstract:
No
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 aGObject.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 [class`Gdk`.ContentSerializer].
- get_cancellable()[source]¶
- Returns:
the cancellable for the current operation
- Return type:
Gets the cancellable for the current operation.
This is the
GCancellable
that was passed to [func`Gdk`.content_deserialize_async].
- get_gtype()[source]¶
- Returns:
the
GType
for the current operation- Return type:
Gets the
GType
to create an instance of.
- get_input_stream()[source]¶
- Returns:
the input stream for the current operation
- Return type:
Gets the input stream for the current operation.
This is the stream that was passed to [func`Gdk`.content_deserialize_async].
- get_mime_type()[source]¶
- Returns:
the mime type for the current operation
- Return type:
Gets the mime type to deserialize from.
- get_priority()[source]¶
- Returns:
the I/O priority for the current operation
- Return type:
Gets the I/O priority for the current operation.
This is the priority that was passed to [func`Gdk`.content_deserialize_async].
- get_task_data()[source]¶
-
Gets the data that was associated with the current operation.
See [method`Gdk`.ContentDeserializer.set_task_data].
- get_value()[source]¶
- Returns:
the
GValue
for the current operation- Return type:
Gets the
GValue
to store the deserialized object in.
- return_error(error)[source]¶
- Parameters:
error (
GLib.Error
) – aGError
Indicate that the deserialization has ended with an error.
This function consumes error.
- set_task_data(data, notify)[source]¶
- Parameters:
data (
object
orNone
) – data to associate with this operationnotify (
GLib.DestroyNotify
) – destroy notify for data
Associate data with the current deserialization operation.