summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndrew Christian <andrew.christian@nokia.com>2012-03-16 10:31:42 -0400
committerChris Craig <ext-chris.craig@nokia.com>2012-03-16 19:36:41 +0100
commit85c13d27209d5197894f60ecfeba5433a0c48127 (patch)
tree915e543a2fdb512b7f9b8c88acb3b8c0f21fe8db /doc
parent75d66c20adb464e9ea36ddbfe6198a9cc70e407d (diff)
Cleaned up documentation
Change-Id: Ib79c0d8ccfd0fb332f768b4ea27507ca20dd7d69 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/jsonstream.qdocconf2
-rw-r--r--doc/src/index.qdoc8
-rw-r--r--doc/src/jsonstreamnamespace.qdoc9
-rw-r--r--doc/src/serialization.qdoc72
4 files changed, 50 insertions, 41 deletions
diff --git a/doc/jsonstream.qdocconf b/doc/jsonstream.qdocconf
index ac39078..bd816dc 100644
--- a/doc/jsonstream.qdocconf
+++ b/doc/jsonstream.qdocconf
@@ -1,4 +1,4 @@
-alias.i = e
+# alias.i = e
project = JsonStream
description = JSONStream Manager Documentation
diff --git a/doc/src/index.qdoc b/doc/src/index.qdoc
index c928256..7f66704 100644
--- a/doc/src/index.qdoc
+++ b/doc/src/index.qdoc
@@ -38,11 +38,11 @@ Javascript-based programming languages is to use \l
{http://www.json.org} {JSON} data-interchange format.
The JSON Stream classes implement a client/server framework.
-\bold{Discussion and examples}
+\b{Discussion and examples}
\list
- \o \l{Stream serialization}
- \o \l{Using JSON stream classes}
- \o \l{Authority notes}
+ \li \l{Stream serialization}
+ \li \l{Using JSON stream classes}
+ \li \l{Authority notes}
\endlist
The JSON Stream classes depend on the Qt Json experimental JSON module.
diff --git a/doc/src/jsonstreamnamespace.qdoc b/doc/src/jsonstreamnamespace.qdoc
index 50a382d..cff9499 100644
--- a/doc/src/jsonstreamnamespace.qdoc
+++ b/doc/src/jsonstreamnamespace.qdoc
@@ -46,6 +46,15 @@
*/
/*!
+ \headerfile <jsonstream-global.h>
+ \title Global JsonStream declarations
+
+ \brief The <jsonstream-global.h> file provides namespace
+ declarations and global enumerations for JsonStream.
+ */
+
+/*!
+ \relates <jsonstream-global.h>
\enum EncodingFormat
This enum is used to control the serialization format of the data stream.
diff --git a/doc/src/serialization.qdoc b/doc/src/serialization.qdoc
index eefd41a..7d1365f 100644
--- a/doc/src/serialization.qdoc
+++ b/doc/src/serialization.qdoc
@@ -35,17 +35,17 @@
One key challenge with JSON is that there are a number of different
ways that JSON can be serialized to be sent over a socket connection:
\list
- \o UTF-8 encoded (the default)
- \o UTF-16 LE or BE
- \o UTF-32 LE or BE
- \o \l {http://bsonspec.org} {BSON} (Binary JSON)
- \o \l Qt Json [ssh://codereview.qt-project.org:29418/playground/qtbinaryjson.git]
+ \li UTF-8 encoded (the default)
+ \li UTF-16 LE or BE
+ \li UTF-32 LE or BE
+ \li \l {http://bsonspec.org} {BSON} (Binary JSON)
+ \li \l Qt Json [ssh://codereview.qt-project.org:29418/playground/qtbinaryjson.git]
\endlist
For a discussion of the UTF encoding formats, see \l
{http://www.ietf.org/rfc/rfc4627} {RFC4627}.
The JSON stream reference supports all standard encoding formats by
-\bold{auto-detection}. The server class assumes that communication
+\b{auto-detection}. The server class assumes that communication
will be initiated by the client. The initial bytes received are
matched to the signature of one of the serialization techniques and
the connection is set to that format.
@@ -54,50 +54,50 @@ To be specific, the server matches (table data from \l
{http://www.ietf.org/rfc/rfc4627} {RFC4627}):
\table
\header
- \o Encoding
- \o Bytes
- \o Discussion
+ \li Encoding
+ \li Bytes
+ \li Discussion
\row
- \o UTF-8
- \o 7B xx yy zz
- \o First byte should be the '{' character, followed by whitespace
+ \li UTF-8
+ \li 7B xx yy zz
+ \li First byte should be the '{' character, followed by whitespace
and a '"' quotation mark.
\row
- \o BSON
- \o 62 73 6F 6E
- \o First four bytes are 'bson'. Strictly speaking, this is
+ \li BSON
+ \li 62 73 6F 6E
+ \li First four bytes are 'bson'. Strictly speaking, this is
not the true BSON format (which starts with an int32 length)
but in the interests of autodetection we've enforced this
requirement. The BSON packet follows.
\row
- \o QBJS
- \o 71 62 6A 73
- \o First four bytes are 'qbjs'. This matches the standard
+ \li QBJS
+ \li 71 62 6A 73
+ \li First four bytes are 'qbjs'. This matches the standard
QtJson::JsonDocument header.
\row
- \o UTF-32BE
- \o 00 00 00 7B
- \o First four bytes should be the '{' character
+ \li UTF-32BE
+ \li 00 00 00 7B
+ \li First four bytes should be the '{' character
\row
- \o UTF-32LE
- \o 7B 00 00 00
- \o First four bytes should be the '{' character.
+ \li UTF-32LE
+ \li 7B 00 00 00
+ \li First four bytes should be the '{' character.
\row
- \o Raw UTF-16BE
- \o 00 7B 00 xx
- \o First two bytes should be the '{' character.
+ \li Raw UTF-16BE
+ \li 00 7B 00 xx
+ \li First two bytes should be the '{' character.
\row
- \o Raw UTF-16LE
- \o 7B 00 xx 00
- \o First two bytes should be the '{' character.
+ \li Raw UTF-16LE
+ \li 7B 00 xx 00
+ \li First two bytes should be the '{' character.
\row
- \o UTF-16BE with BOM
- \o FE FF 00 7B
- \o U+FEFF + '{'
+ \li UTF-16BE with BOM
+ \li FE FF 00 7B
+ \li U+FEFF + '{'
\row
- \o UTF-16LE with BOM
- \o FF FE 7B 00
- \o U+FEFF + '{'
+ \li UTF-16LE with BOM
+ \li FF FE 7B 00
+ \li U+FEFF + '{'
\endtable
Clearly, there is a danger that the BSON encoding format could be