Gdk.ContentDeserializer

g GObject.GInterface GObject.GInterface Gio.AsyncResult Gio.AsyncResult GObject.GInterface->Gio.AsyncResult GObject.Object GObject.Object Gdk.ContentDeserializer Gdk.ContentDeserializer GObject.Object->Gdk.ContentDeserializer Gio.AsyncResult->Gdk.ContentDeserializer

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gio.AsyncResult (4)

Structs:

GObject.ObjectClass (5)

get_cancellable ()

get_gtype ()

get_input_stream ()

get_mime_type ()

get_priority ()

get_task_data ()

get_user_data ()

get_value ()

return_error (error)

return_success ()

set_task_data (data, notify)

Virtual Methods

Inherited:

GObject.Object (7), Gio.AsyncResult (3)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gdk.ContentDeserializer(**kwargs)
Bases:

GObject.Object, Gio.AsyncResult

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 a GObject.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:

Gio.Cancellable or None

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:

GObject.GType

Gets the GType to create an instance of.

get_input_stream()[source]
Returns:

the input stream for the current operation

Return type:

Gio.InputStream

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:

str

Gets the mime type to deserialize from.

get_priority()[source]
Returns:

the I/O priority for the current operation

Return type:

int

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]
Returns:

the task data for self

Return type:

object or None

Gets the data that was associated with the current operation.

See [method`Gdk`.ContentDeserializer.set_task_data].

get_user_data()[source]
Returns:

the user data for this deserializer

Return type:

object or None

Gets the user data that was passed when the deserializer was registered.

get_value()[source]
Returns:

the GValue for the current operation

Return type:

GObject.Value

Gets the GValue to store the deserialized object in.

return_error(error)[source]
Parameters:

error (GLib.Error) – a GError

Indicate that the deserialization has ended with an error.

This function consumes error.

return_success()[source]

Indicate that the deserialization has been successfully completed.

set_task_data(data, notify)[source]
Parameters:

Associate data with the current deserialization operation.