diff options
author | abcd <qt-info@nokia.com> | 2011-08-22 20:24:43 +1000 |
---|---|---|
committer | abcd <qt_abcd1@ovi.com> | 2011-08-24 09:30:54 +0200 |
commit | 631783858474a28a219bcdd704efad5ef72d0f34 (patch) | |
tree | 210ddfd11f1d78b113dd8c3ecac72ab6df6a86a5 /src/location/places/qplacesearchrequest.h | |
parent | e6dbdfbbad070c5ca7a4e14bdd917ee2c7b52f71 (diff) | |
download | qtlocation-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/qplacesearchrequest.h')
-rw-r--r-- | src/location/places/qplacesearchrequest.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/location/places/qplacesearchrequest.h b/src/location/places/qplacesearchrequest.h index 463da0fd..83edd0b4 100644 --- a/src/location/places/qplacesearchrequest.h +++ b/src/location/places/qplacesearchrequest.h @@ -65,17 +65,9 @@ public: }; QPlaceSearchRequest(); - QPlaceSearchRequest(const QPlaceSearchRequest &other); - + Q_DECLARE_COPY_CTOR(QPlaceSearchRequest, QPlaceRequest) virtual ~QPlaceSearchRequest(); - QPlaceSearchRequest &operator=(const QPlaceSearchRequest &other); - - bool operator==(const QPlaceSearchRequest &other) const; - bool operator!=(const QPlaceSearchRequest &other) const { - return !(other == *this); - } - QString searchTerm() const; void setSearchTerm(const QString &term); @@ -94,7 +86,7 @@ public: void clear(); private: - QSharedDataPointer<QPlaceSearchRequestPrivate> d; + Q_DECLARE_D_FUNC(QPlaceSearchRequest) }; QT_END_NAMESPACE |