summaryrefslogtreecommitdiff
path: root/src/location/places/qplacemanager.h
diff options
context:
space:
mode:
authorabcd <qt-info@nokia.com>2011-08-22 20:24:43 +1000
committerabcd <qt_abcd1@ovi.com>2011-08-24 09:30:54 +0200
commit631783858474a28a219bcdd704efad5ef72d0f34 (patch)
tree210ddfd11f1d78b113dd8c3ecac72ab6df6a86a5 /src/location/places/qplacemanager.h
parente6dbdfbbad070c5ca7a4e14bdd917ee2c7b52f71 (diff)
downloadqtlocation-631783858474a28a219bcdd704efad5ef72d0f34.tar.gz
Use content mechanism to retrieve reviews
This means we no longer need the qplacereviewreply or the paginationlist. We also create a QPlaceContentRequest class to specialize in requesting content. It follows the same pattern that QPlaceContent does where the private classes use inheritance to mirror the public classes so that we only have a single d pointer instance per class(as opposed to a dpointer for QPlaceRequest and a dpointer for QPlaceContentRequest). QPlaceSeachRequest has been modified like this as well. Also in the nokia plugin we rename the qplaceimagereplyimpl class to the qplacecontentreplyimpl class. We use this to get the reviews as well as images and we no longer need the qplacereviewreplyimpl class. Change-Id: I0aa1254a4df3d136bf81f9faf0f6ec06a0773100 Reviewed-on: http://codereview.qt.nokia.com/3305 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: abcd <qt_abcd1@ovi.com>
Diffstat (limited to 'src/location/places/qplacemanager.h')
-rw-r--r--src/location/places/qplacemanager.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/location/places/qplacemanager.h b/src/location/places/qplacemanager.h
index 483f6dab..d4a57f55 100644
--- a/src/location/places/qplacemanager.h
+++ b/src/location/places/qplacemanager.h
@@ -44,11 +44,11 @@
#include "qmobilityglobal.h"
#include "qplacecontentreply.h"
+#include "qplacecontentrequest.h"
#include "qplacerequest.h"
#include "qplacesavereply.h"
#include "qplacereply.h"
#include "qplacedetailsreply.h"
-#include "qplacereviewreply.h"
#include "qplacetextpredictionreply.h"
#include <QLocale>
@@ -110,9 +110,7 @@ public:
QPlaceDetailsReply *getPlaceDetails(const QString &placeId) const;
QPlaceReply *postRating(const QString &placeId, qreal value);
- QPlaceReviewReply *getReviews(const QGeoPlace &place, const QPlaceRequest &query) const;
-
- QPlaceContentReply *getContent(QPlaceContent::Type type, const QGeoPlace &place, const QPlaceRequest &query) const;
+ QPlaceContentReply *getContent(const QGeoPlace &place, const QPlaceContentRequest &request) const;
QPlaceSearchReply *searchForPlaces(const QPlaceSearchRequest &query) const;