diff options
Diffstat (limited to 'common/clientapi.cpp')
-rw-r--r-- | common/clientapi.cpp | 8 |
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 | ||
59 | void 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 |