summaryrefslogtreecommitdiffstats
path: root/examples/dummyresource/resourcefactory.cpp
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2015-05-15 16:22:03 +0200
committerDan Vrátil <dvratil@redhat.com>2015-05-15 16:22:31 +0200
commitb43c0cf97615957e097daef29ff8febc1ec884c8 (patch)
tree445479bf66df161e8554844a478d99d03ba43061 /examples/dummyresource/resourcefactory.cpp
parent9270185becb48401bf3b2337d248763df0873107 (diff)
downloadsink-b43c0cf97615957e097daef29ff8febc1ec884c8.tar.gz
sink-b43c0cf97615957e097daef29ff8febc1ec884c8.zip
Adapt to KAsync namespace change
Diffstat (limited to 'examples/dummyresource/resourcefactory.cpp')
-rw-r--r--examples/dummyresource/resourcefactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp
index a4cd68d..e16a693 100644
--- a/examples/dummyresource/resourcefactory.cpp
+++ b/examples/dummyresource/resourcefactory.cpp
@@ -162,9 +162,9 @@ void findByRemoteId(QSharedPointer<Akonadi2::Storage> storage, const QString &ri
162 }); 162 });
163} 163}
164 164
165Async::Job<void> DummyResource::synchronizeWithSource(Akonadi2::Pipeline *pipeline) 165KAsync::Job<void> DummyResource::synchronizeWithSource(Akonadi2::Pipeline *pipeline)
166{ 166{
167 return Async::start<void>([this, pipeline](Async::Future<void> &f) { 167 return KAsync::start<void>([this, pipeline](KAsync::Future<void> &f) {
168 //TODO use a read-only transaction during the complete sync to sync against a defined revision 168 //TODO use a read-only transaction during the complete sync to sync against a defined revision
169 auto storage = QSharedPointer<Akonadi2::Storage>::create(Akonadi2::Store::storageLocation(), "org.kde.dummy"); 169 auto storage = QSharedPointer<Akonadi2::Storage>::create(Akonadi2::Store::storageLocation(), "org.kde.dummy");
170 for (auto it = s_dataSource.constBegin(); it != s_dataSource.constEnd(); it++) { 170 for (auto it = s_dataSource.constBegin(); it != s_dataSource.constEnd(); it++) {