summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qtlandmarksdocsample/requestexample.h
diff options
context:
space:
mode:
authorabcd <qt-info@nokia.com>2010-04-15 19:01:35 +1000
committerabcd <qt-info@nokia.com>2010-04-15 19:01:35 +1000
commitd0dc58c0e5fc8a714266453976e643fd5750ee65 (patch)
tree1e6b491650c7cd1d1c00b449ffd2e02d79ad1e00 /doc/src/snippets/qtlandmarksdocsample/requestexample.h
parent4b433c0036820aa75a6dc60587a4a6f65005a005 (diff)
Add in landmark removal examples
Diffstat (limited to 'doc/src/snippets/qtlandmarksdocsample/requestexample.h')
-rw-r--r--doc/src/snippets/qtlandmarksdocsample/requestexample.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/doc/src/snippets/qtlandmarksdocsample/requestexample.h b/doc/src/snippets/qtlandmarksdocsample/requestexample.h
index 982e9d4446..3f0b33e86e 100644
--- a/doc/src/snippets/qtlandmarksdocsample/requestexample.h
+++ b/doc/src/snippets/qtlandmarksdocsample/requestexample.h
@@ -47,6 +47,8 @@
#include <qlandmarkcategorysaverequest.h>
#include <qlandmarksaverequest.h>
#include <qlandmarkcategoryfetchrequest.h>
+#include <qlandmarkcategoryremoverequest.h>
+#include <qlandmarkremoverequest.h>
#include <qlandmarkmanager.h>
QTM_USE_NAMESPACE
@@ -57,10 +59,13 @@ 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(this)),
+ lmSaveRequest(new QLandmarkSaveRequest(this)),
+ catFetchRequest(new QLandmarkCategoryFetchRequest(this)),
+ lmFetchRequest(new QLandmarkFetchRequest(this)),
+ catRemoveRequest(new QLandmarkCategoryRemoveRequest(this)),
+ lmRemoveRequest(new QLandmarkRemoveRequest(this))
+ {}
~RequestExample(){}
private slots:
@@ -69,9 +74,13 @@ private slots:
void landmarkSaveRequest();
void landmarkSaveRequestHandler(QLandmarkAbstractRequest::State);
void categoryFetchRequest();
- void categoryFetchHandlerRequest(QLandmarkAbstractRequest::State);
+ void categoryFetchRequestHandler(QLandmarkAbstractRequest::State);
void landmarkFetchRequest();
- void landmarkFetchHandlerRequest(QLandmarkAbstractRequest::State);
+ void landmarkFetchRequestHandler(QLandmarkAbstractRequest::State);
+ void categoryRemoveRequest();
+ void categoryRemoveRequestHandler(QLandmarkAbstractRequest::State);
+ void landmarkRemoveRequest();
+ void landmarkRemoveRequestHandler(QLandmarkAbstractRequest::State);
private:
QLandmarkManager *lmManager;
@@ -80,6 +89,8 @@ private:
QLandmarkSaveRequest *lmSaveRequest;
QLandmarkCategoryFetchRequest *catFetchRequest;
QLandmarkFetchRequest *lmFetchRequest;
+ QLandmarkCategoryRemoveRequest *catRemoveRequest;
+ QLandmarkRemoveRequest *lmRemoveRequest;
QLandmarkCategoryId categoryId;
int previousLastIndex;