diff options
author | abcd <qt-info@nokia.com> | 2010-10-03 13:20:30 +1000 |
---|---|---|
committer | abcd <qt-info@nokia.com> | 2010-10-03 13:20:30 +1000 |
commit | 2cb56a49fe75e56915364969cbd259a2d3bf1bd0 (patch) | |
tree | 222e56d26ea725010ffb03c679ebf6f6d9e6731a /src/location/landmarks/qlandmarkremoverequest.h | |
parent | bd8658350bb111db7c026bc2e0d6ef1aec81a0bc (diff) |
Add convenience functions + test clearing of errors
Add convencience functions so that developers don't need to
always use ids e.g. removing a landmark can be done witha landmark
object.
Add extra unit tests for these convenience functions
Also check that errors are cleared, i.e. a successful operation
following an unsuccessful operation will show the correct error code.
Also try stabilize notifcationsCheck unit test function.
Diffstat (limited to 'src/location/landmarks/qlandmarkremoverequest.h')
-rw-r--r-- | src/location/landmarks/qlandmarkremoverequest.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/location/landmarks/qlandmarkremoverequest.h b/src/location/landmarks/qlandmarkremoverequest.h index e46b853689..12ba70bcc1 100644 --- a/src/location/landmarks/qlandmarkremoverequest.h +++ b/src/location/landmarks/qlandmarkremoverequest.h @@ -58,6 +58,9 @@ public: void setLandmarkIds(const QList<QLandmarkId> &landmarkIds); void setLandmarkId(const QLandmarkId &landmarkId); + void setLandmarks(const QList<QLandmark> &landmark); + void setLandmark(const QLandmark &landmark); + QMap<int, QLandmarkManager::Error> errorMap() const; private: Q_DISABLE_COPY(QLandmarkRemoveRequest) |