summaryrefslogtreecommitdiffstats
path: root/src/contacts/qcontactmanagerengine.h
diff options
context:
space:
mode:
authorMikko Suonio <mikko.suonio@nokia.com>2012-02-14 12:27:33 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-16 13:54:30 +0200
commit51674c9719c93b57a29f3dfdb83f889afb26ae7d (patch)
treeb16fad868dd05eafbe6dc1d5c1e68a8e79a62979 /src/contacts/qcontactmanagerengine.h
parent01da69eedf208e41249fe69542dfaa0d7ab9aa09 (diff)
Introducing StorageLocations in QtContacts.
This commit introduces a concept of StorageLocation in QtContacts QML and C++ interfaces. This concept enables QContacts to be stored in two different storage locations, namely UserDataStorage and SystemStorage. Commit includes also jsondb backend support for storage locations as well as test cases for QML and C++ interfaces. There are some limitations in using storage locations. - Contacts QML model can deal with one storage location at the time. - In C++ interface fetching can be done only from one storage location at a time. - Thus fetching from two different storage location requires two fetch requests. - Synchronous operations in C++ interface only supports the default storage location. - It is completely backend specific if and how storage locations are supported. - Currently jsondb backend supports storage locations with default storage location being UserDataStorage. C++ tests for storage locations were implemented by Mika Tikkakoski <mika.tikkakoski@nokia.com> Storage location implementation contain contributions by Claudio Brunelli <claudio.brunelli@nokia.com> Cristiano di Flora <cristiano.di-flora@nokia.com> Mika Tikkakoski <mika.tikkakoski@nokia.com> Change-Id: I4e8d05ccd88371ecd6c9a33a66a6d4bab762be3d Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
Diffstat (limited to 'src/contacts/qcontactmanagerengine.h')
-rw-r--r--src/contacts/qcontactmanagerengine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/contacts/qcontactmanagerengine.h b/src/contacts/qcontactmanagerengine.h
index 9d7b2ec36..a55043dd8 100644
--- a/src/contacts/qcontactmanagerengine.h
+++ b/src/contacts/qcontactmanagerengine.h
@@ -141,6 +141,7 @@ public:
static void setContactRelationships(QContact *contact, const QList<QContactRelationship> &relationships);
/* Helper functions */
+ static const QContactEngineId *engineId(const QContactId &contactId);
static int compareContact(const QContact &a, const QContact &b, const QList<QContactSortOrder> &sortOrders);
static void addSorted(QList<QContact>* sorted, const QContact &toAdd, const QList<QContactSortOrder> &sortOrders);
static int compareVariant(const QVariant &first, const QVariant &second, Qt::CaseSensitivity sensitivity);