[gxml/serialization_isolation] gxml/Serializable: add minimal serializable interface
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/serialization_isolation] gxml/Serializable: add minimal serializable interface
- Date: Wed, 2 Apr 2014 15:23:13 +0000 (UTC)
commit b1fe519d24e14aa050fc6dbd24707b6330f03d04
Author: Richard Schwarting <aquarichy gmail com>
Date: Wed Apr 2 11:22:48 2014 -0400
gxml/Serializable: add minimal serializable interface
gxml/Serializable.vala | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/gxml/Serializable.vala b/gxml/Serializable.vala
new file mode 100644
index 0000000..cce07f0
--- /dev/null
+++ b/gxml/Serializable.vala
@@ -0,0 +1,17 @@
+namespace GXml {
+ public interface Serializable : GLib.Object {
+ public abstract Node? serialize (Node node) throws GLib.Error;
+ public abstract GXml.Node? serialize_property (Element element,
+
GLib.ParamSpec prop) throws GLib.Error;
+ public abstract Node? deserialize (Node node) throws GLib.Error;
+ public abstract bool deserialize_property (GXml.Node property_node) throws GLib.Error;
+ public abstract GLib.ParamSpec? find_property_spec (string property_name);
+ public abstract GLib.ParamSpec[] list_serializable_properties ();
+ public abstract void get_property_value (GLib.ParamSpec spec, ref Value val);
+ public abstract void set_property_value (GLib.ParamSpec spec, GLib.Value val);
+ }
+
+ public errordomain SerializableError {
+ UNSUPPORTED_TYPE
+ }
+}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]