Separate SortOrder tests out from Filter tests

...and increase the functionality coverage.

Change-Id: I2a228e1881d021baff51b18a2901107956e21f81
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix threaded request synchronization issues

Like it was predicted, 26b2eab752073dc1d8b5769b7cfe307b9982e5b3
encovered the undefined behavior with the request notification
synchronization in case when the request gets updated from within
another thread - i.e. resultAvailable() or stateChanged() notification
could be delivered after the request has been destroyed.

Change-Id: I3411391511ae61d6aa8feb00b1cb0d1f7c431a25
Reviewed-by: Michael Krasnyk <michael.krasnyk@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Make QtDeclarative an optional dependency

Change-Id: I07431e5e51adb0cf86565afbbebc84704295a434
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Don't use deprecated qtAddLibrary()

This fixes a warning generated by qmake for every test.

Change-Id: Ifb1393bd58453051b2552b0c68397b591cbc4ccd
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Treat detail filter with unset field like a "detail exists" filter

QtContacts filters already meant that; do the same for QtOrganizer filters.

Change-Id: I1af2d10f1456fb0763a5e078f9ab901eed0873a9
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
[QOrganizerItemMemoryEngine] Optimize work with collections

Use QHash instead of QList, thus reducing access time.

Change-Id: I87f7f0561d0fb1bc67fa78f5cc3e703f17addba1
Reviewed-by: Michael Krasnyk <michael.krasnyk@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Emit dataChanged() on item modifications

Change-Id: I1783128465ec56edf8bd67692beefde23715ad9c
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Use STL algorithms instead of Qt's deprecated ones

Change-Id: I58262ef9be93f36465a64f79d0c71a5c83e0ad9e
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Avoid gcc warnings

<variable> defined but no used
and
<variable> may be used uninitialized in this function

Change-Id: Ic4ae4afc31113bddd3a6c0ede742f67d22f1c444
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Optimize QOrganizerManagerEngine::addSorted()

...by using std::upper_bound instead of linear search.

Change-Id: Ia990126e7e3fc1ead9b111fd80a5f5329b516d12
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Emit valueChanged on appending a recurrence detail

Change-Id: Ibdbcb73602909c0ce9e12cf579a83730e814d7d7
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
whitespace fixes

remove trailing whitespace & expand tabs

Change-Id: I7dd5aca1f157d7798227302b315bfb0e9f2e9f77
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
QtOrganizer: unescape &equ; character in engine id string

Change-Id: Ibf5e3019eb132088ddb5b282ab03d4ccbb8440b3
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>