summaryrefslogtreecommitdiff
path: root/src/location/places/qplacemanagerengine.cpp
diff options
context:
space:
mode:
authorabcd <qt-info@nokia.com>2011-09-02 10:57:00 +1000
committerabcd <qt_abcd1@ovi.com>2011-09-06 09:46:34 +0200
commit1cc33bb7ef8ab997a9ffe841857a39533ba09f31 (patch)
tree22aadaceae210d1dd64ad42ffde102b0c773f419 /src/location/places/qplacemanagerengine.cpp
parenta385d5889925c3effe468fed5835f59707da92da (diff)
downloadqtlocation-1cc33bb7ef8ab997a9ffe841857a39533ba09f31.tar.gz
Add place add/updated/removed signals + refactor Remove
These signals indicate changes to the database. These 3 signals are provided rather than a single placesChanged() signal because it gives greater granularity. E.g. if a place is removed, we may want to know precisely which one it is so we can remove it from a model. For the SearchResultmodel whenever a place is added, updated, or deleted we reload the model by executing the query again. For now in the jsondb plugin implement signal emission manually whenever a request is finished. In a future change we will use proper jsondb notifications. For the online plugins, we do not expect these signals to be emitted. Also place removal now uses the QPlaceIdReply. Change-Id: I29f5aaaa6b8152abe1f5305a4d52abc721e6915e Reviewed-on: http://codereview.qt.nokia.com/4109 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: abcd <qt_abcd1@ovi.com>
Diffstat (limited to 'src/location/places/qplacemanagerengine.cpp')
-rw-r--r--src/location/places/qplacemanagerengine.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/location/places/qplacemanagerengine.cpp b/src/location/places/qplacemanagerengine.cpp
index 6b5155fc..77c87f4f 100644
--- a/src/location/places/qplacemanagerengine.cpp
+++ b/src/location/places/qplacemanagerengine.cpp
@@ -153,6 +153,31 @@ QPlaceManagerEnginePrivate::~QPlaceManagerEnginePrivate()
{
}
+/*!
+ \fn void QPlaceManagerEngine::placeAdded(const QString&placeId)
+
+ This signal is emitted if a place has been added to the manager engine's datastore.
+
+ It is generally only emitted by managers that store places locally.
+
+*/
+
+/*!
+ \fn void QPlaceManagerEngine::placeUpdated(const QString&placeId)
+
+ This signal is emitted if a place has been modified in the manager engine's datastore.
+
+ It is generally only emitted by managers that store places locally.
+*/
+
+/*!
+ \fn void QPlaceManagerEngine::placeRemoved(const QString&placeId)
+
+ This signal is emitted if a place has been removed from the manager engine's datastore.
+
+ It is generally only emitted by managers that store places locally.
+*/
+
#include "moc_qplacemanagerengine.cpp"
QT_END_NAMESPACE