Class: Gdk::ContentDeserializer
- Inherits:
-
Object
- Object
- Gdk::ContentDeserializer
- Defined in:
- (unknown)
Overview
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 [funccontent_register_deserializer].
Also see [classGdk.ContentSerializer].
Instance Method Summary collapse
-
#cancellable ⇒ Gio::Cancellable
Gets the cancellable for the current operation.
-
#gtype ⇒ GLib::Type
Gets the
GTypeto create an instance of. -
#input_stream ⇒ Gio::InputStream
Gets the input stream for the current operation.
-
#mime_type ⇒ String
Gets the mime type to deserialize from.
-
#priority ⇒ Integer
Gets the I/O priority for the current operation.
-
#return_error(error) ⇒ nil
Indicate that the deserialization has ended with an error.
-
#return_success ⇒ nil
Indicate that the deserialization has been successfully completed.
-
#set_task_data(data, notify) ⇒ nil
Associate data with the current deserialization operation.
-
#task_data ⇒ GObject
Gets the data that was associated with the current operation.
-
#user_data ⇒ GObject
Gets the user data that was passed when the deserializer was registered.
-
#value ⇒ GObject::Value
Gets the
GValueto store the deserialized object in.
Instance Method Details
#cancellable ⇒ Gio::Cancellable
Gets the cancellable for the current operation.
This is the GCancellable that was passed to [funcGdk.content_deserialize_async].
#gtype ⇒ GLib::Type
Gets the GType to create an instance of.
#input_stream ⇒ Gio::InputStream
Gets the input stream for the current operation.
This is the stream that was passed to [funcGdk.content_deserialize_async].
#mime_type ⇒ String
Gets the mime type to deserialize from.
#priority ⇒ Integer
Gets the I/O priority for the current operation.
This is the priority that was passed to [funcGdk.content_deserialize_async].
#return_error(error) ⇒ nil
Indicate that the deserialization has ended with an error.
This function consumes error.
#return_success ⇒ nil
Indicate that the deserialization has been successfully completed.
#set_task_data(data, notify) ⇒ nil
Associate data with the current deserialization operation.
#task_data ⇒ GObject
Gets the data that was associated with the current operation.
See [methodGdk.ContentDeserializer.set_task_data].
#user_data ⇒ GObject
Gets the user data that was passed when the deserializer was registered.
#value ⇒ GObject::Value
Gets the GValue to store the deserialized object in.