summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAli Akhtarzada <ali.akhtarzada@nokia.com>2012-05-16 15:49:57 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-27 16:51:27 +0200
commit99fb02b3215fb97a70d0a25fa32d577bbdd5040c (patch)
tree317c0405689a5de0621341c672270aa733478dd9
parent3b693a54e53b6378af23a348ff74bb9d0728f96b (diff)
Add some docs to QJsonDbWriteRequest
Change-Id: I41237c7afefbdf3bb70ccd7379e884191fff9ca6 Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
-rw-r--r--src/client/qjsondbwriterequest.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/qjsondbwriterequest.cpp b/src/client/qjsondbwriterequest.cpp
index 4d57d8e..8d88fc7 100644
--- a/src/client/qjsondbwriterequest.cpp
+++ b/src/client/qjsondbwriterequest.cpp
@@ -54,6 +54,15 @@ QT_BEGIN_NAMESPACE_JSONDB
\brief The QJsonDbWriteRequest class allows to put objects into the database.
+ Every write request to JsonDb is essentially an update to the object store. You can
+ update the database by adding a new object, modifying an existing object
+ or removing an existing object.
+
+ All updates are carried out by passing a QJsonObject list to the setObjects() function
+ and then sending the write request object to the server via the QJsonDbConnection::send()
+ function. How JsonDb processes each object depends on which properties the object has.
+ For a description of these properties, please see the setObjects() function.
+
\code
QJsonObject object;
object.insert(QStringLiteral("_type"), QLatin1String("Foo"));
@@ -80,6 +89,7 @@ QT_BEGIN_NAMESPACE_JSONDB
objects.
\sa QJsonDbObject
+ \sa setObjects()
*/
/*!
\enum QJsonDbWriteRequest::ErrorCode