diff options
author | Aaron McCarthy <mccarthy.aaron@gmail.com> | 2013-07-17 23:43:43 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-26 08:19:47 +0200 |
commit | cfec9ee4fd3fb2633eda7fc65eae2adf3ee4643c (patch) | |
tree | cf5c33435b33823d3f1a45250f09520b92a1e12c /src/location/places/qplacesearchresult.h | |
parent | 8df09353686b3b9121e84788e84afc52a1a12de0 (diff) | |
download | qtlocation-cfec9ee4fd3fb2633eda7fc65eae2adf3ee4643c.tar.gz |
Support explore functionality.
Add support for Nokia's explore functionality in places. This adds the
ProposedSearchResult search result type. The proposed search result has
a QPlaceSearchRequest, which can be submitted to
QPlaceManager::search() to perform the proposed search.
This has the added advantage that any arbitrary search request can be
returned as a search result. To facilitate this further a search
context field has been added to the place search request. This field
can be used by backends to store additional search context. Other
relevant fields should also be filled in. This allows additional search
context to be kept.
The Nokia v2 places implementation has be updated to use the explore
feature and to return ProposedSearchResults as well as place results.
Task-number: QTBUG-24874
Change-Id: Ib20c5a8c8a60e6bf16f38dcd75961a752b8b1b32
Reviewed-by: Alex <alexander.blasche@digia.com>
Diffstat (limited to 'src/location/places/qplacesearchresult.h')
-rw-r--r-- | src/location/places/qplacesearchresult.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/location/places/qplacesearchresult.h b/src/location/places/qplacesearchresult.h index f8f0a5fc..4bcdf6d8 100644 --- a/src/location/places/qplacesearchresult.h +++ b/src/location/places/qplacesearchresult.h @@ -57,7 +57,9 @@ QT_BEGIN_NAMESPACE #define Q_DECLARE_SEARCHRESULT_COPY_CTOR(Class) \ Class(const QPlaceSearchResult &other); +class QPlaceSearchRequest; class QPlaceSearchResultPrivate; +class QPlaceIcon; class Q_LOCATION_EXPORT QPlaceSearchResult { @@ -76,7 +78,8 @@ public: enum SearchResultType { UnknownSearchResult = 0, - PlaceResult + PlaceResult, + ProposedSearchResult }; SearchResultType type() const; |