summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qtlandmarksdocsample/requestexample.h
diff options
context:
space:
mode:
authorabcd <qt-info@nokia.com>2010-04-15 16:03:28 +1000
committerabcd <qt-info@nokia.com>2010-04-15 16:03:28 +1000
commita5cc0a2382bdae7761ce34f9e967935094f01338 (patch)
tree53599e78a4dbcf16f5669dc202c5999e9484c0fb /doc/src/snippets/qtlandmarksdocsample/requestexample.h
parent43d7b5fe90a24ac84364d5878db2947b17d35c0e (diff)
Update examples to not use resultsAvailable() on request objects
Because the request results are sorted, using a previousLastIndex and resultsAvailable() signal to be incrementally notified of new results does not work, and so should be removed from the examples
Diffstat (limited to 'doc/src/snippets/qtlandmarksdocsample/requestexample.h')
-rw-r--r--doc/src/snippets/qtlandmarksdocsample/requestexample.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/doc/src/snippets/qtlandmarksdocsample/requestexample.h b/doc/src/snippets/qtlandmarksdocsample/requestexample.h
index f10531df6e..982e9d4446 100644
--- a/doc/src/snippets/qtlandmarksdocsample/requestexample.h
+++ b/doc/src/snippets/qtlandmarksdocsample/requestexample.h
@@ -43,11 +43,11 @@
#define REQUESTEXAMPLE_H
#include <QObject>
-#include <QLandmarkFetchRequest>
-#include <QLandmarkCategorySaveRequest>
-#include <QLandmarkSaveRequest>
-#include <QLandmarkCategoryFetchRequest>
-#include <QLandmarkManager>
+#include <qlandmarkfetchrequest.h>
+#include <qlandmarkcategorysaverequest.h>
+#include <qlandmarksaverequest.h>
+#include <qlandmarkcategoryfetchrequest.h>
+#include <qlandmarkmanager.h>
QTM_USE_NAMESPACE
@@ -57,10 +57,10 @@ class RequestExample : public QObject
public:
RequestExample():QObject(),
lmManager(new QLandmarkManager(this)),
- catSaveRequest(new QLandmarkCategorySaveRequest),
- lmSaveRequest(new QLandmarkSaveRequest),
- catFetchRequest(new QLandmarkCategoryFetchRequest),
- lmFetchRequest(new QLandmarkFetchRequest){}
+ catSaveRequest(new QLandmarkCategorySaveRequest()),
+ lmSaveRequest(new QLandmarkSaveRequest()),
+ catFetchRequest(new QLandmarkCategoryFetchRequest()),
+ lmFetchRequest(new QLandmarkFetchRequest()){}
~RequestExample(){}
private slots:
@@ -73,9 +73,6 @@ private slots:
void landmarkFetchRequest();
void landmarkFetchHandlerRequest(QLandmarkAbstractRequest::State);
- void printCategories();
- void printLandmarks();
-
private:
QLandmarkManager *lmManager;
QLandmarkFetchRequest *m_fetchRequest;