summaryrefslogtreecommitdiffstats
path: root/src/daemon/jsondbnotification.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Split partition handling out into a separate moduleKevin Simons2012-04-101-83/+0
| | | | | | | | | | | | | | | | | | | This is a brute force attempt to create a jsondbpartition module which can be used by the daemon, by autotests and by the client for private partitions. Most of the classes were largely unmodified by this change (with the exception of namespace and symbol exports). JsonDbManagedBtree was somewhat reworked in order not to expose QBtree as part of this module. Overall, the number of headers exposed by this module is far too large currently. Subsequent patches are needed to refine the APIs of this module, to make all the headers private and to overall reduce the number of headers provided. Change-Id: I6deaf32960102f9d3efcb290edd82381597657aa Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
* add missing member initialization in JsonDbNotificationBai Jing2012-04-031-0/+2
| | | | | Change-Id: I6ac5daea470f1efd19f371e2d941420236b2a591 Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
* Add support for old notifications to QJsonDbWatcherJamey Hicks2012-03-161-0/+1
| | | | | | | | | | | | | | | | | | | | | Example, assuming stateNumber 2962 is in the recent past: QtJsonDb::QJsonDbWatcher *watcher = new QtJsonDb::QJsonDbWatcher; watcher->setQuery(QStringLiteral("[?_type=\"Foo\"]")); watcher->setInitialStateNumber(2962); connection->addWatcher(watcher); ... QList<QJsonDbNotification> event = watcher->takeNotifications(); If stateNumber is 0xFFFFFFFF, then sends a "create" notification for every object currently in the specified partition. Applications can use this to find all matching objects and all changes to those objects going forward. Fixes Bug #7276. Also fixes Bug #7300. Change-Id: Icd01d05f89c8480804ea8ef09061022f107091f1 Reviewed-by: Kevin Simons <kevin.simons@nokia.com>
* Refactoring: remove JsonDb classKevin Simons2012-03-151-1/+2
| | | | | | | | | | | | | | This is the first major step in separating out the partition functionality into its own library. It completely removes the JsonDb class and splits the functionality between DBServer and JsonDbPartition. The goal of this patch is to minimize the changes to existing code. To that end, a great deal of code was copied-and-pasted from jsondb.cpp. Subsequent patches will further the refactoring, removing the redundant code created by this patch. Change-Id: I33347b802d53c00375829f1a26277bb142a272da Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
* Remove writable global static variablesKevin Simons2012-02-271-2/+0
| | | | | | | | | | | | Replace them with a singleton settings object. Having globals that span the gap between the partition and the daemon are an impediment to creating a separate partition library. The JsonDbSettings singleton automatically reads environment variables based on the names of its properties. Change-Id: I1a5301d954cf2987713813146c9ad7ca67efc27b Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
* Refactoring: make class names and file names more consistentKevin Simons2012-02-241-0/+81
Add JsonDb prefix to classes that did not have it and rename JsonDbBtreeStorage to JsonDbPartition Change-Id: Ic6213f77a204cc8f364900007eb23f5b368eb40d Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>