summaryrefslogtreecommitdiffstats
path: root/src/contacts/qcontactmanagerengine.h
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2015-02-12 14:06:18 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2015-02-12 14:32:23 +0000
commit18e3d741c3526978cdacc88bc260d250918d2080 (patch)
tree751d4f540543795944bc984bf2d6004c7c17e7d6 /src/contacts/qcontactmanagerengine.h
parent86db658eace4dc84c1d3185c71f2282278b3a452 (diff)
Replace defaultCollection() with defaultCollectionId()
This assumes the id of a default collection is known at the engine initialization time, but makes it possible to defer fetching the default collection's content up until it is needed. This also greatly simplifies the initialization process for the async-only engines. Change-Id: I5116ffdd22d7fa6cc5f8a8eed7f94518e6db7089 Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Diffstat (limited to 'src/contacts/qcontactmanagerengine.h')
-rw-r--r--src/contacts/qcontactmanagerengine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contacts/qcontactmanagerengine.h b/src/contacts/qcontactmanagerengine.h
index 146b4a48d..db0e350b3 100644
--- a/src/contacts/qcontactmanagerengine.h
+++ b/src/contacts/qcontactmanagerengine.h
@@ -108,7 +108,7 @@ public:
virtual bool removeRelationships(const QList<QContactRelationship> &relationships, QMap<int, QContactManager::Error> *errorMap, QContactManager::Error *error);
// collections
- virtual QContactCollection defaultCollection(QContactManager::Error *error);
+ virtual QContactCollectionId defaultCollectionId() const;
virtual QContactCollection collection(const QContactCollectionId &collectionId, QContactManager::Error *error);
virtual QList<QContactCollection> collections(QContactManager::Error *error);
virtual bool saveCollection(QContactCollection *collection, QContactManager::Error *error);