summaryrefslogtreecommitdiff
path: root/src/plugins
Commit message (Collapse)AuthorAgeFilesLines
* make use of qtHaveModule()Oswald Buddenhagen2013-01-081-1/+1
| | | | | | Change-Id: Ifd6b6040bd00357bf658f5b51215d4208823bab1 Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Sync MARC language codes with QLocale onesKonstantin Ritt2012-11-241-21/+67
| | | | | Change-Id: Ia300cfc5746204fcfc159c36e6e4f082ebecea69 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* adjust to qt_plugin.prf changesOswald Buddenhagen2012-11-237-35/+7
| | | | | | | | DESTDIR and INSTALLS+=target are set up automatically now, but PLUGIN_TYPE needs to be defined. Change-Id: Ifd9c031343b793f6da2a1ac595d54cb0b1176e5c Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-24107-2579/+2579
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ic1390da64a219642fa1e1482a7677a4c2db15cbc Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* centralize load(qt_build_config)s in .qmake.confOswald Buddenhagen2012-09-137-14/+0
| | | | | Change-Id: Icbf4870866053bb6812f6ff0084744d6c2566e6f Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Convert GeoShape, GeoRectangle and GeoCircle into QML value types.v5.0.0-beta1Aaron McCarthy2012-08-282-2/+0
| | | | | | | | | | | | | This replaces the GeoShape, GeoRectangle and GeoCircle QML elements with value types. A value type is a better fit for shape types. It is very similar to a rect with some utility functions. Declare QGeoShape, QGeoRectangle and QGeoCircle as movable types. Update documentation. Change-Id: Id6c48e1e841c68f2f0c5c6a9c4a6580a57e2dfb6 Reviewed-by: abcd <amos.choy@nokia.com>
* Remove unnecessary warningabcd2012-08-061-2/+1
| | | | | Change-Id: I63307317d6b4607194ad26f88db90aba62d00adb Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix incorrect error code during details fetch for nokia pluginabcd2012-08-063-0/+8
| | | | | | | | | | | Previously a CommunicationError was returned if the id did not exist, this was because an incorrect id would result in a non-existent URL being used. Now we make the assumption if the URL content is not found, then it must be because the id did not exist. In such a case we can return a PlaceDoesNotExistError. Change-Id: Ibfc21b826e0514fd694cb69d0372ef99e46e768e Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Refactor schema representation of categoriesabcd2012-08-0613-158/+378
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old schema was fragile due to the fact that there was dupliation of reference data. E.g. if A->B->C ('->' means parent of) then C would have a "linage" consisting of [A,B,C], in addition to a parentUuid of B Likewise, B has a lineage of [A,B] and a parentUuid of A. When assinging a category to a place the lineages of the categories would be combined into an allCategoryUuids field, eg a place belonging to C would have allCategoryUuids consist of [A,B,C]. The idea being that if we are searching by category A, then one could look whether a Place's allCategoryUUids field contains A. This duplication of data introduces complexity making maintenance of data integrity more difficult. Instead Categories only reference their parents, and Places only reference categories they are directly assigned to. If someome were to search for category A, we would traverse through the "cached" categories of the engine to get A and all of its subcategories, then search if the place categoryUuids field contained A or any of its subcategory ids. The cost of this approach is that the "cached" categories must always be up to date. We listen to any saved/removed category notifications and re-initialize the categories. There is a small window of opportunity between a save and update of the "cache" where the "cache" is incorrect. Change-Id: I841c86b91c274573a84c7c761f2105e3d1851498 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix incorrect error code during recommendation searchabcd2012-08-021-0/+5
| | | | | | | | | | | Previously a CommunicationError was returned if the id did not exist, this was because an incorrect id would result in a non-esistent URL being used. Now we make the assumption that if the URL content is not found, then it must be because the id did not exist. In such a case we can return a PlaceDoesNotExistError. Change-Id: I50ddacb2341639dd6e227e795cefc5e92eea3d6e Reviewed-by: Alex <alex.blasche@nokia.com>
* QWeakPointer for QObjects is deprecated: use QPointerThiago Macieira2012-08-021-1/+1
| | | | | | | This makes the plugin compile with disabled deprecated functions. Change-Id: I86c30126a0de1f816a9c734f6a014310442a7399 Reviewed-by: Ian Chen <ian.1.chen@nokia.com>
* Assorted fixes for jsondb pluginabcd2012-07-231-5/+7
| | | | | | | | | | | | | | | -when a geoshape was supplied, no search results were returned -the title and icon fields of QPlaceSearchResult weren't filled in -the plugin erronously did sorting after it set the results, when it should've done sorting before -categories for results were not set due to assignment to a copy rather than to a reference This change is one of the first steps of re-enabling the jsondb unit test to prevent further regressions. Change-Id: I1ff3d7e32b46341ab506bf0804556a5e880ff925 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Produce warning if connection to jsondb could not be madeabcd2012-07-192-0/+10
| | | | | | Task-number: QTBUG-26505 Change-Id: I908ccf8fe5fd95e3c78ff8ac7cce335ed8dbf358 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename nokia_places_jsondb to places_jsondbabcd2012-07-1726-9/+9
| | | | | Change-Id: Id3d5a0dd04d399ccb5252c3820f76102144f2802 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* provide check for invalid coordinate parameters for nokia pluginabcd2012-07-121-19/+37
| | | | | Change-Id: I725af80fdd47d3d0bb50c6c2f02058bec7736b75 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix setting of ratings count in nokia plugin.abcd2012-07-051-1/+1
| | | | | Change-Id: I6302b2e40961732e98ed61de0ce5518691740a11 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Refactor error handling in nokia plugin for search suggestionsabcd2012-07-055-17/+15
| | | | | Change-Id: I022ccad6a1d53ec0f3da14e1ef8fe0e2b27e0687 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add in checks for invalid arguments for search suggestionsabcd2012-07-031-0/+20
| | | | | Change-Id: Iceb3777ea3518988971bec8b484e9e05fa606db4 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Refactor detection of unsupported search parameter combinationsabcd2012-07-031-3/+4
| | | | | Change-Id: I58c4992d4f189effdbd43df691d6eb01e730c422 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Set the visibility of places for nokia pluginabcd2012-07-022-0/+2
| | | | | Change-Id: I19a1ccd7cf29fa50c6e40f9428ac92da78258450 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix finished signaling (on error) for nokia pluginabcd2012-07-025-29/+26
| | | | | | | | The engine was not emitting a finished signal when the search reply errored out due to bad search arguments. Change-Id: I7010da1de31c98bc5a082fbf116e3ff6f3bf136b Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* remove commented out QTDIR_build conditionalsOswald Buddenhagen2012-06-295-6/+0
| | | | | | | re-enabling them would not work anymore anyway Change-Id: I272a27c54a715fdde07990f32ad397a337fd96fb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Move copyright message to follow map when it resizesAlex Wilson2012-06-282-0/+8
| | | | | | Task-number: QTBUG-26042 Change-Id: I9aa24a484f3fba6fb8f3e0c3309455a8ab1b9029 Reviewed-by: Ian Chen <ian.1.chen@nokia.com>
* Fix compile of jsondb pluginabcd2012-06-281-1/+1
| | | | | Change-Id: I9fa6318e245ff6c748022fe06768da8682dd12f5 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Manager should have been assigned to iconabcd2012-06-271-0/+4
| | | | | Change-Id: I731c61636e714f1891892603dfd9068289ac7a86 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Fix compile warnings.Aaron McCarthy2012-06-262-4/+4
| | | | | | | | Use toLatin1/fromLatin instead of toAscii/fromAscii. Add message format string to qCritical usages. Change-Id: I95c863fae6997cc8f85e0a6d16fdebba607a3ce1 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Add config test to detect when to build gypsy backend.Aaron McCarthy2012-06-254-9/+18
| | | | | | | | Previously the gypsy backend was only being built when CONFIG+=meego was set. Change-Id: Ia738ea270252206974f5fcdf146a53ba221925f0 Reviewed-by: Alex <alex.blasche@nokia.com>
* Add config test to detect when to build geoclue backend.Aaron McCarthy2012-06-254-6/+13
| | | | | | | | Previously the geoclue backend was only being built when CONFIG+=meego was set. Change-Id: I55f723d597aa7af159edb78e24bd2bf0116ae7dd Reviewed-by: Alex <alex.blasche@nokia.com>
* Compile fix for maemo position backend.Aaron McCarthy2012-06-255-2/+17
| | | | | Change-Id: I9d73ec615b2799ec64d23ac0702699eec93de968 Reviewed-by: Alex <alex.blasche@nokia.com>
* build system cleanupsOswald Buddenhagen2012-06-257-9/+7
| | | | | | | | | | | | | | | - load(qt_module) => load(qt_build_config) - remove: - CONFIG+=module (obsolete) - abuse of QMAKE_PKGCONFIG_REQUIRES - QT_BUILD_*_LIB defines (automated now) - code relating to module version headers (automated now) - %mastercontent assignment (automated now) - pointless QPRO_PWD assignments - pointless DEFINES+=QT_MAKEDLL Change-Id: I3f129ee42289aa409418eb9d29b1902cc40370f9 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* switch to new-style configure testsOswald Buddenhagen2012-06-251-1/+1
| | | | | Change-Id: I15247291dc56c4fd7ae2415a3de1541c9f8b295b Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename Icon class in jsondb plugin.Aaron McCarthy2012-06-226-88/+88
| | | | | | | | | The Icon class in the jsondb plugin confuses qdoc because the name clashes with the QML type "Icon" in the QtLocation import. This is a workaround for QTBUG-26273. Change-Id: I5453c0f6a8abc9ccfa67239a5e47d0fb3f240a29 Reviewed-by: Alex <alex.blasche@nokia.com>
* Removed unused files.abcd2012-06-213-420/+0
| | | | | | | | The v1 engine functionality was switched off some time ago. The class was not removed at that time, remove it now. Change-Id: Ib9ed219306d9169b0ff0d3734bd588f5b3b73bf4 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Refactor recommendationsabcd2012-06-219-315/+38
| | | | | | | | Recommendations can be incorporated into ordinary searches. this is more convenient for the developer. Change-Id: Ifd3e040b6b7a964227981175b074ca4f52d7579c Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Rename QGeoBoundingArea and related classes to QGeoShape.Aaron McCarthy2012-06-2118-57/+62
| | | | | | | | | | | | | | | | | | | | | QGeoBoundingArea is used for describing more than just a bounding area. Renaming it to a more appropriate name, QGeoShape. The same is done for subclasses and QML equivalents. In C++: QGeoBoundingArea -> QGeoShape QGeoBoundingCircle -> QGeoCircle QGeoBoundingBox -> QGeoRectangle In QML: BoundingArea -> GeoShape BoundingCircle -> GeoCircle BoundingBox -> GeoRectangle Change-Id: I93c6df8f1b6c5179ed52fd8354a05f709063b1cf Reviewed-by: abcd <amos.choy@nokia.com>
* Refactor Search Resultsabcd2012-06-204-23/+43
| | | | | | | | The different types of search results should be spearated into different classes. Change-Id: I21f43e7979f9f0ae1dfb51e0b619a7c855a469bb Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Add an option to search by distance and or name.Chris Axiarlis2012-06-191-47/+37
| | | | | | | | | Example to have search option to sort by name or distance if the jsondb plugin is selected Task-number: QTBUG-23412 Change-Id: Ia44ee8798d75cb816d5ccb565f96adc3a9ccae2d Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Remove correctionsabcd2012-06-141-1/+0
| | | | | | | | | | | | The new REST server doesn't support did you mean corrections. This combined with the fact that a more generic solution to provide corrections is intended to be provided later on means that it is not worthwhile providing corrections as they are currently implemented, they will soon be deprecated anyway. Change-Id: I674aba99dc3cdc0eb0fc48d928a2146f5e792a2f Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Update Nokia places service URLs.Aaron McCarthy2012-06-075-30/+19
| | | | | | | | | Update to the new places service URLs. Remove the /places path from the host name. Task-number: QTBUG-24984 Change-Id: Ib0be6505a457e16bb5ff2f309a2c56c8b3ef1c57 Reviewed-by: abcd <amos.choy@nokia.com>
* Use QPointer instead of QWeakPointer.Stephen Kelly2012-06-072-2/+3
| | | | | | | | The latter is to be deprecated. Change-Id: Ibba791706fd1c5f0057d95c01bf7414df0c44f83 Reviewed-by: Cristian Adam <cristian.adam@nokia.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Remove Maps from public C++ API.Aaron McCarthy2012-06-076-9/+10
| | | | | | | | | | | | The preliminary C++ Maps API was exposed to provide an interface between the QML plugin and the geo services plugins. Mark it as private API for now as it is likely to change when the full C++ API is developed. Mapping functionality is currently only available through QML. Change-Id: Id16e0f1a2165c70192047dffa40e69ab1f29ba69 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Fix crash in simulator when connection fails.Aaron McCarthy2012-06-075-4/+19
| | | | | | | Remove the qFatal() and return a null pointer from the factory instead. Change-Id: Icbc263092cb7e3ce824602e656cc1243b359249b Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Fix compilation on Windows using MinGW 4.6.2Cristian Adam2012-06-062-11/+11
| | | | | | | | QStringLiteral doesn't work on GCC outside functions nor in template-arguments lists. Change-Id: Ib59e3fc7e5233efb369f73703775057ceff8be54 Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* Removing old placesv1 interface.Chris Axiarlis2012-06-0542-5892/+1
| | | | | | | | The places v1 is no longer supported on the backend. Users shoudd upgrade if useing the C++ interface. Change-Id: I97ff768b0b3559f3ae38d4f310bc8948f3dc122a Reviewed-by: abcd <amos.choy@nokia.com>
* Populate error information if required parameters (app_id and token) are absent.Vladimir Bezkorovainyi2012-06-042-75/+49
| | | | | Change-Id: Ia110416b1cd64425abcb3ebcf79209b635050b0b Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* Move hard-codded messages into separate file and declare constants for them.Vladimir Bezkorovainyi2012-05-3110-17/+163
| | | | | Change-Id: I35a2a5ca9d4c4dc20e291051666bb88f4264ab33 Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* QtLocation: Fix compiler warnings.Friedemann Kleint2012-05-291-0/+1
| | | | | | | | - Assigned/unused variables. - Signed/unsigned comparison Change-Id: I712baa90442f9fc9699965e7c7e1c5f4ca319aab Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* Correct destruction of mappingManagerEngineThomas Lowe2012-05-292-7/+9
| | | | | | | | | | | Use of weakPointer to prevent accessing deleted memory. Plus thread exiting to cause the fetcher and thread to destroy themselves. Additional use of weak pointers to deal with the complexity of the mapping manager destructing before the declarative objects. Task-number: QTBUG-25797 Change-Id: I6a27568580c1a00f7588565ff7e35d63eb5dd785 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Prevent implicit copying raw pointers, which lead to double pointer deletionvladimirb2012-05-254-24/+22
| | | | | Change-Id: I293fbda64138319bf12ebbea5d26b5b113d06351 Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
* QtLocation/Nokia plugin: Removed service authentication data and refs.Jean Gressmann2012-05-254-19/+0
| | | | | | | Task-number: QTBUG-25497 Change-Id: I43357def9db11bfbe5f9fe14c963f22f11f05310 Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>