summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-11-23 22:50:27 +0100
committerKnoll Lars <lars.knoll@nokia.com>2011-11-25 12:53:47 +0100
commitb28e7ecec0ec1619f8004b34475fd862dc73be39 (patch)
tree81be304b02fbf285b275b66822053378eb89f5d6
parenta4e9727aabee8b19f1c13b0fcaf382a62f500327 (diff)
This is outdated, let's rather remove it.
Change-Id: I7e3f8eb5b55e57f3dfa9bc3b73874fa02b920b09 Reviewed-by: Knoll Lars <lars.knoll@nokia.com>
-rw-r--r--doc/format.txt111
1 files changed, 0 insertions, 111 deletions
diff --git a/doc/format.txt b/doc/format.txt
deleted file mode 100644
index 258f80a..0000000
--- a/doc/format.txt
+++ /dev/null
@@ -1,111 +0,0 @@
-offset: uint
-stringref: uint
-valueref: value or offset
-
-Entry: {
- ushort format;
- ushort unused;
- char[20] version;
- char[16] uuid;
- stringref type;
- stringref owner;
- Object
-}
-
-ContentTable : {
- uint numEntries;
- Array of ContentEntry
-}
-
-ContentEntry: {
- ushort keyHash;
- uchar ValueType;
- uchar unused;
- stringref key;
- Value value;
-}
-
-ValueType {
- null: 0x0
- bool: 0x1
- number: 0x2
- string: 0x3
- array: 0x4
- object: 0x5
-}
-
-Value: union {
- char[8];
- bool;
- double number;
- stringref;
- offet to Array;
- offset to Object;
-}
-
-Array: {
- int length;
- list of Value;
-}
-
-Object: {
- uint size;
- ContentTable;
- Data;
-}
-
-Data: char[]
-
-
-
-
-Class JsonDbEntry : public QJsonObject {
-public:
- uuid();
- version();
- owner();
- type();
-}
-
-class JSonData {
- QBasicAtomic ref;
- char *realData;
- bool needsCompaction;
-}
-
-
-class JsonObject {
-public:
- QStringList keys();
- int size();
-
- // ### rather use an iterator?
- QString keyAt(int);
- QSonValue valueAt(int)
-
- QSonValue value(const QString & key);
-
- void setValue(const QString &key, const QsonValue &value)
- void removeKey(const QString &key);
-
-private:
- QSonData *data;
- int offset;
-}
-
-class JsonArray
-{
- ...
-}
-
-
-class JSonValue {
- Type type();
-
- template <> value();
- void setValue(bool);
- ...
-private:
- JSonData *data;
- int offset;
-}