summaryrefslogtreecommitdiffstats
path: root/common/clientapi.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-05-01 23:47:56 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-05-01 23:47:56 +0200
commitd04b873e5341e2e3009f59f71a7210fe1b2b519d (patch)
tree58a7aef3baf8465b4a7622f1877c782c2021e856 /common/clientapi.cpp
parent69f7dd209e91c336ecebf90061e7f69059463026 (diff)
downloadsink-d04b873e5341e2e3009f59f71a7210fe1b2b519d.tar.gz
sink-d04b873e5341e2e3009f59f71a7210fe1b2b519d.zip
Synchronize API call
Diffstat (limited to 'common/clientapi.cpp')
-rw-r--r--common/clientapi.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp
index 3350927..e4608c8 100644
--- a/common/clientapi.cpp
+++ b/common/clientapi.cpp
@@ -56,4 +56,12 @@ void Store::shutdown(const QByteArray &identifier)
56 }).exec().waitForFinished(); 56 }).exec().waitForFinished();
57} 57}
58 58
59void Store::synchronize(const QByteArray &identifier)
60{
61 Trace() << "synchronize";
62 auto resourceAccess = QSharedPointer<Akonadi2::ResourceAccess>::create(identifier);
63 resourceAccess->open();
64 resourceAccess->synchronizeResource(true, false).exec().waitForFinished();
65}
66
59} // namespace Akonadi2 67} // namespace Akonadi2