summaryrefslogtreecommitdiff
path: root/src/location/places
Commit message (Collapse)AuthorAgeFilesLines
* Implement cross-referencing of Placesabcd2012-01-1314-7/+714
| | | | | | | | Cross referenceing means we can detect whether a place from one plugin/manager is already in another plugin/manager Change-Id: Ice1834446a61e30e02f869e1d383f6d8698b8db6 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Test setting QML objects from C++.Aaron McCarthy2012-01-109-11/+12
| | | | | Change-Id: I1db9c1d6724a83b027d4aadd6870a568e346c58f Reviewed-by: abcd <amos.choy@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-0663-63/+63
| | | | | Change-Id: I496795d13a615be8d252ca20a40dd2c5ba84ed60 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fixing up a bunch of minor compile warningsAlex Wilson2011-12-281-0/+1
| | | | | | | | Mostly just using Q_UNUSED in appropriate spots. Also commenting out some unused constants. Change-Id: Id43e171bf3a34f7c11e366b14eadb42f08f0096d Reviewed-by: Alex <alex.blasche@nokia.com>
* Changing QStringLiterals back to QLatin1StringAlex Wilson2011-12-212-6/+6
| | | | | | | | | | QStringLiterals are not designed to work properly in global scope, so for the moment anyway we use QLatin1String again so that the build doesn't break on gcc >= 4.6 and other platforms. Change-Id: Idfaf39588da378adcf334a7a0b363dfe36798d14 Reviewed-by: abcd <amos.choy@nokia.com>
* Replace use of QLatin1Constant with QStringLiteral.Aaron McCarthy2011-12-204-27/+12
| | | | | Change-Id: I8f9fa805d7edfefd783788ea78ad824715041982 Reviewed-by: Alex <alex.blasche@nokia.com>
* Move qplace .h, _p.h and .cpp files into src/location/placesabcd2011-12-204-0/+937
| | | | | | | | The place files were in src/location as a holdover from when qgeoplace was used. Moved it into the places directory instead. Change-Id: Ide98fba615c8ff5a73493c81eaefc19b21f2203a Reviewed-by: Alex <alex.blasche@nokia.com>
* Destructor should be virtualabcd2011-12-141-0/+1
| | | | | Change-Id: If95c3475ac4a770ba07e61843ea0ad3df64be202 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Location docs spelling/typo fixes.Peter Yard2011-12-143-5/+5
| | | | | Change-Id: I542b3e494b39a65952e8cb412f45cfec2f8567f0 Reviewed-by: Alex <alex.blasche@nokia.com>
* Simplify saving a place between managersabcd2011-12-124-0/+31
| | | | | | | | | | | For C++ we add a compatiblePlace() function which returns a pruned version of the original suitable for saving into the manager For QML there the Place has a copyFrom() method. Only data that is relevant to the current place's plugin is copied over. Change-Id: I97c3ed8f1c7e7f68165242a2d6f1d0b04e9ab9a0 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Unnecessary enumabcd2011-12-082-3/+0
| | | | | Change-Id: Ie2f884bf6658287c8ec53fd3a0f441d5586500f1 Reviewed-by: Alex <alex.blasche@nokia.com>
* Contact detail constants should be lower caseabcd2011-12-082-8/+8
| | | | | | | | This results in more natural QML place.contactDetails.phone rather than place.contactDetails.Phone Change-Id: Ib6d6942f9b5b31df86253912cab3050c1a219b8a Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix assignment in QPlaceSearchRequest.Friedemann Kleint2011-11-291-11/+13
| | | | | | | Check for equality. Change-Id: I12b9d16d4b94235bbcb9eb70a3a8713b196280a1 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Another fix for QtLocation namespace compilation.Toby Tomkins2011-11-291-2/+2
| | | | | Change-Id: Ib84f1be226fcd481fe6ffed380b2e0dc63d789e6 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename Ratings::value to Ratings::averageabcd2011-11-283-13/+13
| | | | | Change-Id: I545d22813ad762b1d918053602b5a7f08f666688 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fixed QtLocation namespace compilation.Toby Tomkins2011-11-281-3/+2
| | | | | | Change-Id: Ia74ad72b1ab035f173e61d66397577c9bcae7e67 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add ability to clear contact detailsabcd2011-11-252-0/+11
| | | | | Change-Id: I8c1acb14e667c2e292fc17bff4aaadaaa840e850 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix compiler warnings.Aaron McCarthy2011-11-252-2/+2
| | | | | Change-Id: Id88eb1e4178593ed2cad74984eb4b21849018c79 Reviewed-by: abcd <amos.choy@nokia.com>
* Add clarification about rich textabcd2011-11-172-4/+4
| | | | | Change-Id: Ifbbae53c80e90db013609baff78f94aae9e5bbd4 Reviewed-by: Alex <alex.blasche@nokia.com>
* Allow specification of locale preferencesabcd2011-11-174-15/+41
| | | | | | | | | | | The manager now accepts a list of locales. If the first locale cannot be accommodate, the manager falls back to the next. For those managers that do support locales, the default set of locales contains just the global default locale. Change-Id: Iaf6511e18e22fe3c8bd6a8a0ee6077c2827d664c Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename Rating to Ratingsabcd2011-11-174-57/+62
| | | | | | | | | | | | | | | | | | It may be possible that other rating values could be added to the rating object e.g. a count for how many gave a rating 1 a count for now many gave a rating of 2 or perhaps ratings for different aspects of a place eg. service cleanliness etc. Therefore ratings should be used instead or rating. Change-Id: I8a46646942dcd938bcee31921cabfa9df9862adc Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename getContent to getPlaceContentabcd2011-11-164-7/+7
| | | | | | | | | Rename for consistency with getPlaceDetails. Also change parameter from place object to place id. Change-Id: I1cabe7aa3cf17ce5aafba7c09d3e37ea1ab220b3 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Recommendations to use place id instead of place objectabcd2011-11-164-7/+10
| | | | | | | | | | | | | | For consistency with getPlaceDetails and getPlaceContent, use a place id as a parameter instead of a place object. Also provide a default search request parameter. Also rename element to PlaceRecommendationModel to be consisent with PlaceSearchModel and PlaceSearchSuggestionModel Change-Id: Idc68d8c14dcadcd8d65427fdf65a919d5d4560c5 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename textPrediction to searchSuggestionabcd2011-11-1610-56/+53
| | | | | | | | | | | | A suggestion is a more appropriate term since 'prediction' implies that the search term just is auto-completed. Suggestions may be given that do not derive directly from the entered partial search term. Also rename TextPredictionModel to PlaceSearchSuggestionModel. Change-Id: Ib7100e0c52c21196ecc70c8c25a94abfaecc9125 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Cpp Documentation class documentation + plugin documentationabcd2011-11-1629-322/+903
| | | | | Change-Id: I52e9eee45b96c42500108646880f500df9dae55d Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add some initial AttributeType constantsabcd2011-11-162-5/+48
| | | | | | | | | These are so we can document the attribute types, more will come later as we implement them. Right now they're not actually used. Change-Id: I447bf2406d22125b877882225dfb0827c0faf189 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Make QtLocation compilealex2011-11-111-0/+1
| | | | | Change-Id: Ieba2797bbaa0652d3a6687fd275feca15931218e Reviewed-by: Alex <alex.blasche@nokia.com>
* Add support for getting/setting QML location elements from C++.Aaron McCarthy2011-11-104-12/+18
| | | | | Change-Id: Ia5b353e7f97f2bc93c988cbfbd8d57784d3e3bbd Reviewed-by: Alex <alex.blasche@nokia.com>
* Change QPlaceContent::InvalidType to NoTypeabcd2011-11-093-4/+4
| | | | | | | | The term invalid is incorrect. A default constructed QPlaceContent object is still a valid object. Change-Id: I55644baaacb84c0496a0f723d6198c7eb284ee38 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Remove sourceUrl from contentabcd2011-11-094-25/+0
| | | | | | | Not required anymore. Change-Id: I8851ea90b656728e2a45e5c5a7a3c6783510459c Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* fix constness of signal parameterabcd2011-11-091-1/+1
| | | | | Change-Id: I34e24e0ecd2c735ce682f33041b4d2dfc568c8d5 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Docs for request classes + refactorabcd2011-11-0712-450/+375
| | | | | | | | | | | | | | | Documentation for the content and search request classes. There is no need for the request classes to inherit off a base request class. Currently the base class has limit and offset fields, but if for example there is an image submission request class the limit and offset become meaningless. The content reply class should have a field for the content request just like the search reply has a field for the search request. Change-Id: I8d9dfe8a31806c6bb3b31f66d1338c2999e27ce2 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add Notifications Featureabcd2011-11-042-1/+3
| | | | | | | | The notifications feature means the manager will give signal notifications for added/modified/removed places and categories. Change-Id: I30118d53e11a0b5ba9ed7edaf418c215861fa2c4 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* QPlaceManager::constructIconUrl does not need to existabcd2011-11-043-12/+3
| | | | | | | | The PlaceIcon can call the engine directly to get the constructed icon Change-Id: I71c91b958f6266acb81533c38e9b629751bbceaa Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename Review::content and Editorial::content to ::textabcd2011-11-046-22/+27
| | | | | | | | | | | | | | There already exists a content object so ::content() it is not appropriate. ::description() is unintuitive. ::text() is more natural. Note that the text could either be plain text or rich text. QLabel and QTextEdit have a setText() function and the text format is automatically detected. This makes using ::text() a natural fit. Change-Id: I77719202d0b210ae75a91d6867c3411c9c5ec51c Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Adds documentation for some places emements.Aaron McCarthy2011-11-012-29/+35
| | | | | | | | | | Add or improves element documentation for Category, CategoryModel EditorialModel, ImageModel, ReviewModel, PlaceAttribute, ExtendedAttributes, Icon, PlaceSearchModel, RecommendationModel, TextPredictionModel, Rating, User and BoundingCircle. Change-Id: Id067f207793aa1dfc11009ba4c29c165d54c8934 Reviewed-by: abcd <amos.choy@nokia.com>
* Refactor contacts.abcd2011-10-264-1/+354
| | | | | | | | | | | | | | | | | | | The REST server now supports labels for each contact value, so now it makes sense to incorporte the ContactValue class. ContactValue = user visible label + value(phone number, email etc) We use a map type implementation where the key for the map is the contact type and the value is a list of contact values. The first element of each list becomes the primary value. Eg the primaryPhone() field references the first element in the list of phone numbers. The setters for the primary___() functions has been removed. Url has also been renamed to Website to keep in line with LBSP. Change-Id: I9382a8286c5348bd1eb93d93f25088dfdf321852 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix inconsistency between removing places and categoriesabcd2011-10-253-5/+5
| | | | | | | | removing places used to take a place object while removing categories used a category id. Change removing places to use a place id. Change-Id: I2d603564df362b327fb2fdd27e1f2f00bf2ae833 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Update structure of QtLocation documentation.Aaron McCarthy2011-10-2520-91/+65
| | | | | | | | | Separate out into sections for C++ and QML. Mark all classes as "since QtLocation 5.0" as there has been many API changes since Qt Mobility. Change-Id: Ie71c5f7cb8341e76d41b9fefce4781979f3e898c Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fixup temporary QtLocation export.alex2011-10-2122-22/+22
| | | | | | | Q_LOCATION_EXPORT_TEMP -> Q_LOCATION_EXPORT Change-Id: I65b1d9c59ab2d2ad437f1934013eb53b0b96e606 Reviewed-by: Alex <alex.blasche@nokia.com>
* Remove obsolete \since flags from good old Mobility times.alex2011-10-201-1/+0
| | | | | Change-Id: I191f73426ec27df91409909004ac5a60f5b3aacc Reviewed-by: Alex <alex.blasche@nokia.com>
* Location docs, added Places, split off Maps.Peter Yard2011-10-198-2/+15
| | | | | | | Change-Id: Ic18bd60736b7412434091cbb4b2c539f334e3ec3 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com> Reviewed-by: David Laing <david.laing@nokia.com> Reviewed-by: abcd <amos.choy@nokia.com>
* Remove QT_MODULE(Location) from public Location classesalex2011-10-1922-22/+22
| | | | | | | | Removing all location related defines from qglobal.h causes this macro to fail. It seems that it is no longer used in new modules. Change-Id: Ifbfa6f7f40a419e0890a4611bab7e2d681f63a04 Reviewed-by: Alex <alex.blasche@nokia.com>
* Remove obsoleted signal connectionabcd2011-10-181-2/+0
| | | | | Change-Id: I6973845a234942aae665ae0aa9453ef295e7fa81 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* First step of removal of Q_LOCATION_EXPORT macro from qglobal.halex2011-10-1722-22/+37
| | | | | | | | | Each module handles each its own exports. We need to change the QtLocation version, remove the qglobal.h define and then add it back under the old name in QtLocation Change-Id: I7530a251b78402215a466cd55a33ec24664786b7 Reviewed-by: Alex <alex.blasche@nokia.com>
* Remove authentication required signalabcd2011-10-141-1/+0
| | | | | | | | | Authentication can be provided through parameters to the manager, which have been passed through the QGeoServiceProvider class. Change-Id: I8aaba0830e08d82393fac27cbeda84c61e3941a0 Reviewed-on: http://codereview.qt-project.org/6653 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Allow search to take multiple categoriesabcd2011-10-142-0/+13
| | | | | | | | | | | | | | If multiple categories are provided it is expected that the backend will effectively perform a union operation. i.e. any places that match one or more of the categories are returned. It is possible however that some backends may not support multiple categories. In this case the first category is used and the rest ignored. Change-Id: I50133a1945a775d6961f0ada3b07ef1721d4de24 Reviewed-on: http://codereview.qt-project.org/6567 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add attribution field to Content class/elementabcd2011-10-143-4/+29
| | | | | | Change-Id: I1cc07859f41aee40e8eb05d321a00a1417dd3970 Reviewed-on: http://codereview.qt-project.org/6584 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add a user classabcd2011-10-1210-40/+334
| | | | | | | Change-Id: I28993ed7d7cd1ba08c850a558c2bcd2f6fb2bf63 Reviewed-on: http://codereview.qt-project.org/6482 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add Supported Features handlingabcd2011-10-123-7/+25
| | | | | | | Change-Id: Ie2518c349fc551756f78a963417cceb93c81a3a8 Reviewed-on: http://codereview.qt-project.org/6407 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>