Gdk.ContentSerializer¶
class — extends GObject.Object, Gio.AsyncResult
Serializes content for inter-application data transfers.
The GdkContentSerializer transforms an object that is identified
by a GType into a serialized form (i.e. a byte stream) that is
identified by a mime type.
GTK provides serializers and deserializers for common data types
such as text, colors, images or file lists. To register your own
serialization functions, use content_register_serializer.
Also see ContentDeserializer.
Methods¶
get_cancellable¶
Gets the cancellable for the current operation.
This is the GCancellable that was passed to content_serialize_async.
get_gtype¶
Gets the GType to of the object to serialize.
get_mime_type¶
Gets the mime type to serialize to.
get_output_stream¶
Gets the output stream for the current operation.
This is the stream that was passed to content_serialize_async.
get_priority¶
Gets the I/O priority for the current operation.
This is the priority that was passed to content_serialize_async.
get_task_data¶
Gets the data that was associated with the current operation.
See ContentSerializer.set_task_data.
get_user_data¶
Gets the user data that was passed when the serializer was registered.
get_value¶
Gets the GValue to read the object to serialize from.
return_error¶
Indicate that the serialization has ended with an error.
This function consumes error.
Parameters:
error— aGError
return_success¶
Indicate that the serialization has been successfully completed.
set_task_data¶
Associate data with the current serialization operation.
Parameters:
data— data to associate with this operationnotify— destroy notify fordata