diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2012-06-11 17:20:31 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-13 03:53:08 +0200 |
commit | 47bbed684c9ed344e59a236914e207109a96796b (patch) | |
tree | d11fac2ccbf9885bc6ca317c1e4276f71ef79b56 | |
parent | b85bf84c87c363e79030bdd819b016fee8aa04a6 (diff) |
Fixed doc for QJsonDbReadObject request
Change-Id: Id7d9f9ba23b19af6036212ce2784840811b8e707
Reviewed-by: Jing Bai <jing.t.bai@nokia.com>
-rw-r--r-- | src/client/qjsondbreadrequest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/qjsondbreadrequest.cpp b/src/client/qjsondbreadrequest.cpp index 178c3c8..60b7b52 100644 --- a/src/client/qjsondbreadrequest.cpp +++ b/src/client/qjsondbreadrequest.cpp @@ -318,11 +318,9 @@ void QJsonDbReadRequestPrivate::handleError(int code, const QString &message) QJsonDbReadObjectRequest *request = new QJsonDbReadObjectRequest(this); request->setUuid(objectUuid); connect(request, SIGNAL(objectAvailable(QJsonObject), this, SLOT(onObjectAvailable(QJsonObject))); + connect(request, SIGNAL(objectUnavailable(QUuid), this, SLOT(onObjectNotFound())); connect(request, SIGNAL(error(QtJsonDb::QJsonDbRequest::ErrorCode,QString)), this, SLOT(onError(QtJsonDb::QJsonDbRequest::ErrorCode,QString))); - //in case no object found,you will not receive objectAvailable or error signal - //in this case you can call takeResults() in onFinished to check it - connect(request, SIGNAL(finished()), this, SLOT(onFinished())); connection->send(request); \endcode */ |