summaryrefslogtreecommitdiffstats
path: root/src/contacts/qcontactmanager.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/qcontactmanager.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/qcontactmanager.h')
-rw-r--r--src/contacts/qcontactmanager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contacts/qcontactmanager.h b/src/contacts/qcontactmanager.h
index c50288ed1..db6a84e1f 100644
--- a/src/contacts/qcontactmanager.h
+++ b/src/contacts/qcontactmanager.h
@@ -158,7 +158,7 @@ public:
QList<QContactDetail::DetailType> supportedContactDetailTypes() const;
// collections
- QContactCollection defaultCollection();
+ QContactCollectionId defaultCollectionId() const;
QContactCollection collection(const QContactCollectionId& collectionId);
QList<QContactCollection> collections();
bool saveCollection(QContactCollection* collection);