summaryrefslogtreecommitdiffstats
path: root/examples/dummyresource/resourcefactory.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-06-08 10:47:57 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-06-08 10:47:57 +0200
commit63919d3040295415306267df7b66e7a5e2c9395f (patch)
treecb5e416487243ca68e6ad3ecff40a00527017ec6 /examples/dummyresource/resourcefactory.cpp
parent810543a625074fb8685c7c59e36123c055e8fda6 (diff)
downloadsink-63919d3040295415306267df7b66e7a5e2c9395f.tar.gz
sink-63919d3040295415306267df7b66e7a5e2c9395f.zip
Differentiate between resource name and instance identifier
Diffstat (limited to 'examples/dummyresource/resourcefactory.cpp')
-rw-r--r--examples/dummyresource/resourcefactory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp
index 31ec972..e244131 100644
--- a/examples/dummyresource/resourcefactory.cpp
+++ b/examples/dummyresource/resourcefactory.cpp
@@ -158,7 +158,7 @@ KAsync::Job<void> DummyResource::synchronizeWithSource(Akonadi2::Pipeline *pipel
158{ 158{
159 return KAsync::start<void>([this, pipeline](KAsync::Future<void> &f) { 159 return KAsync::start<void>([this, pipeline](KAsync::Future<void> &f) {
160 //TODO use a read-only transaction during the complete sync to sync against a defined revision 160 //TODO use a read-only transaction during the complete sync to sync against a defined revision
161 auto storage = QSharedPointer<Akonadi2::Storage>::create(Akonadi2::Store::storageLocation(), "org.kde.dummy"); 161 auto storage = QSharedPointer<Akonadi2::Storage>::create(Akonadi2::Store::storageLocation(), "org.kde.dummy.instance1");
162 for (auto it = s_dataSource.constBegin(); it != s_dataSource.constEnd(); it++) { 162 for (auto it = s_dataSource.constBegin(); it != s_dataSource.constEnd(); it++) {
163 bool isNew = true; 163 bool isNew = true;
164 if (storage->exists()) { 164 if (storage->exists()) {