Serializable
Object Hierarchy:
Description:
[
CCode ( type_id =
"ibus_serializable_get_type ()" ) ]
public class Serializable :
Object
An Serializable is an IBus object which can be serialized, that is, to be to and from a
Variant.
This class is to be extended by other class that requires serialization. An extended class should overrides following methods:
serialize(object,iter)
: for serialize.
deserialize(object,iter)
: for deserialize.
copy(desc,src)
: for copy between IBusSerializable.
See SerializableSerializeFunc,
SerializableDeserializeFunc,
SerializableCopyFunc for function prototype.
Content:
Creation methods:
Methods:
- public virtual bool copy (Serializable src)
Clone an Serializable.
- public virtual int deserialize (Variant variant)
Deserialize a Variant to an
Serializable/ The deserialize method should be implemented in extended class.
- public Variant get_qattachment (Quark key)
Gets a value from attachment of an Serializable
.
- public void remove_qattachment (Quark key)
Remove a value from attachment of an Serializable
.
- public virtual bool serialize (VariantBuilder builder)
Serialize an Serializable to a
Variant.
- public void set_qattachment (Quark key, Variant value)
Attach a value to an Serializable.
Inherited Members:
All known members inherited from class IBus.Object
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