summaryrefslogtreecommitdiff
path: root/src/location/places/qplacereply.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Enable asynchronous incremental updates of QPlaceReplyPaolo Angelelli2018-07-271-0/+13
| | | | | | | | | | | | | | | | | | | This patch adds a new signal to QPlaceReply, contentUpdated. This signal can be emitted in subclasses when the provider is capable of notifying partial updates of the content. The typical use case if fetching the data from multiple databases, also locally instead of over network, and incrementally populating the results, as opposed to the current way of operating, that is via previous page / next page, in which case it's the backend who provides the proper query parameters to obtain the previous or the next page. This signal is currently handled only for QPlaceSearchReplies in QDeclarativeSearchResultModel, where such a signal would trigger a layout update. Change-Id: I0aaba5aa9249b61c970d3a309d93fab7fc39d667 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Doc: Location *Reply classes: Document aborted() signalTopi Reinio2017-01-301-1/+12
| | | | | | | | | | | | | | | Fixes the following qdoc warnings: src/location/maps/qgeocodereply.h:83: warning: No documentation for 'QGeoCodeReply::aborted()' src/location/maps/qgeoroutereply.h:77: warning: No documentation for 'QGeoRouteReply::aborted()' src/location/places/qplacereply.h:89: warning: No documentation for 'QPlaceReply::aborted()' Change-Id: Id8c871abf2a197e41042bfa74e1abf9db94a65e4 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Refactoring: removing m_reply from GeoReply classesPaolo Angelelli2016-11-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch tries to simplify the code removing the contained m_reply from all the Geo[Map,Route,Geocode,Places]Reply classes. The need for m_reply was associated to the "abort" method, but this can be solved by emitting a signal in the superclass abort() method, and connecting that to QNetworkReply::abort() in the constructor. Since QNetworkReplyHttpImpl always sends an OperationCanceledError it should then be safe to call deleteLater() on the network reply in the slot connected to QNetworkReply::error This patch also prevents the series of "QCoreApplication::postEvent: Unexpected null receiver" warnings that are generated due to deletingLater already deleted objects (abort() emits an error, the reply is destroyed inside the onError slot, but also in the abort() method). Finally, this patch removes the setFinished() call in QGeoRouteReply::abort() since the documentation does not mention this, and all the subclasses do not perform this operation and emit the corresponding signal. tst_qgeoroutereply has been adapted accordingly. Change-Id: I226ee163e7bed784dd7f0da1522e651459543bca Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Bump all QtLocation 5.5 tags to 5.6Alex Blasche2015-09-231-1/+1
| | | | | | | | | | | | | | | 5.5 was a tech preview release. The real release is 5.6. Some 5.5 interfaces did change. It is possible that there are apps in existence which are based on the 5.5 API's. To avoid miscommunication we bump all version tags to the real first release version. The existing 5.5 QML imports will continue to work but apps may encounter API changes when they move from 5.5 to 5.6. The API changes are listed in the QtLocation documentation. Change-Id: Ia7000e871a5ee6b09234e5d58d4fc8927e93b154 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Fix QtLocation \since tags in QML and C++Alex Blasche2015-05-291-1/+1
| | | | | | | | The first release is 5.5 and not 5.0 Change-Id: Ib659adf77293e10e8f3d117ce16bbc25858d6ab2 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Remove LGPLv2.1 and add GPLv2+ from/to QtLocationAlex Blasche2015-02-191-14/+17
| | | | | | Change-Id: I3007aa04d3dbc0e00cb0a43987d64d01ddf91edd Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Update contact URL in all license headers to qt.ioAlex Blasche2015-02-181-1/+1
| | | | | Change-Id: Ia1e333be7fec8898de609d9b9303b1ad7687632e Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Update license headers and add new license filesAntti Kokko2014-08-241-19/+11
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: Iedee2507ab1bd46788409a98505d7be510253110 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* Update copyright year to 2013Sergio Ahumada2013-06-131-1/+1
| | | | | Change-Id: I5b0cb7d56997ad7b91c073b3e02b31d0368fdcfa Reviewed-by: Alex <alexander.blasche@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-241-24/+24
| | | | | | | | 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>
* Docs: Bug-5818 fixes.Peter Yard2012-05-211-2/+2
| | | | | | Change-Id: I25e95e07ecaf1c368029741a81f7385eed801316 Reviewed-by: Peter Yard <peter.yard@nokia.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* General documentation issuesWolfgang Beck2012-03-291-3/+3
| | | | | Change-Id: I021ab70e1cbb973817aecbf53b7af0760c5e36c4 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Docs: Bug-6677 fix for items 001-003.Peter Yard2012-03-151-2/+2
| | | | | Change-Id: I8da3e2e445782eccec379a54823d39df7ed8d9f8 Reviewed-by: Alex <alex.blasche@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-301-1/+1
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I00c66363046e475e6924aafd221483c7fad5c0d9 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-231-1/+1
| | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I3850177e14291901e924f9c27ba09e75df00f96a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Implement cross-referencing of Placesabcd2012-01-131-0/+3
| | | | | | | | 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>
* Update copyright year in license headers.Jason McDonald2012-01-061-1/+1
| | | | | Change-Id: I496795d13a615be8d252ca20a40dd2c5ba84ed60 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Unnecessary enumabcd2011-12-081-2/+0
| | | | | Change-Id: Ie2f884bf6658287c8ec53fd3a0f441d5586500f1 Reviewed-by: Alex <alex.blasche@nokia.com>
* Rename textPrediction to searchSuggestionabcd2011-11-161-3/+2
| | | | | | | | | | | | 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-161-15/+40
| | | | | Change-Id: I52e9eee45b96c42500108646880f500df9dae55d Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Update structure of QtLocation documentation.Aaron McCarthy2011-10-251-6/+4
| | | | | | | | | 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>
* Fix missing/outdated license headers.Aaron McCarthy2011-09-261-2/+2
| | | | | | | Change-Id: I9dbdf6f4974167a2a4229bd3bd798f7de36bfc10 Reviewed-on: http://codereview.qt-project.org/4939 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Introduce Content class and rename PlaceMediaObject to PlaceImageabcd2011-08-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Paging is now implemented in terms of content objects, things like images, reviews etc should inherit off the QPlaceContent class. The main advantage of this change in C++ is that the paging code will not be duplicated for different content types, also we have less symbols which is good for plugin loading times. For now, in QML we still retain separate specialized models. In future it might be possible to just have a single model class to hold different content types. There will still however need to be separate model instances for say reviews and images. PlaceMediaObject has been renamed to PlaceImage because currently all we provide are images. It is anticipated that if there are new media types like video we would introduce QPlaceVideo and have it inherit off QPlaceContent. It is suboptimal to try define a generic media object right now when we do not have a clear idea about the use cases of each possible media type. A future change will have QPlaceReview inherit off QPlaceContent. Change-Id: Ia6cf5092e246374ed639694d7653e30429c94cc2 Reviewed-on: http://codereview.qt.nokia.com/3284 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com> Reviewed-by: abcd <qt_abcd1@ovi.com>
* Allow places branch to work when Qt is built in a namespace.Aaron McCarthy2011-07-141-1/+1
| | | | | | | | | Change QTM_* to QT_*. Change-Id: I8d0d0a53458ffb2f3ecc26d70a3542fb2cb1bf74 Reviewed-on: http://codereview.qt.nokia.com/1613 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: abcd <qt_abcd1@ovi.com>
* Use QGeoPlace instead of QPlaceabcd2011-06-221-3/+0
| | | | QGeoPlace was an already existing class in mobility.
* Add license headers to places filesabcd2011-06-171-0/+41
|
* Add plugin detection infrastructure + minor fixesabcd2011-06-101-0/+5
| | | | Also changes to keep in sync with the qt4 pre-release
* Refactor private classes to mirror inheritance of public classesabcd2011-06-071-21/+10
| | | | | Essentially this is to have something like the bridge design pattern.
* Use mobility namespace instead of places namespaceabcd2011-06-031-3/+3
|
* Initial dump of placesabcd2011-06-021-0/+183