summaryrefslogtreecommitdiffstats
path: root/examples/maildirresource/maildirresource.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-28 10:19:27 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-28 10:20:53 +0100
commite05306d22bc994bcfae869dcd857ec76027495d1 (patch)
treeb5b7db5108947a210d893c76b5e75cfadca32f50 /examples/maildirresource/maildirresource.h
parentab16e5aa9e9d83b6aa9189a67d97a4d089952902 (diff)
downloadsink-e05306d22bc994bcfae869dcd857ec76027495d1.tar.gz
sink-e05306d22bc994bcfae869dcd857ec76027495d1.zip
Changereplay for maildir folders.
The sync and changereplay can not run at the same time, or would have to share the transaction otherwise.
Diffstat (limited to 'examples/maildirresource/maildirresource.h')
-rw-r--r--examples/maildirresource/maildirresource.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/maildirresource/maildirresource.h b/examples/maildirresource/maildirresource.h
index eec1e97..e577e18 100644
--- a/examples/maildirresource/maildirresource.h
+++ b/examples/maildirresource/maildirresource.h
@@ -41,6 +41,12 @@ private:
41 KAsync::Job<void> replay(const QByteArray &type, const QByteArray &key, const QByteArray &value) Q_DECL_OVERRIDE; 41 KAsync::Job<void> replay(const QByteArray &type, const QByteArray &key, const QByteArray &value) Q_DECL_OVERRIDE;
42 42
43 /** 43 /**
44 * Records a localId to remoteId mapping
45 */
46 void recordRemoteId(const QByteArray &bufferType, const QByteArray &localId, const QByteArray &remoteId, Akonadi2::Storage::Transaction &transaction);
47 void removeRemoteId(const QByteArray &bufferType, const QByteArray &localId, const QByteArray &remoteId, Akonadi2::Storage::Transaction &transaction);
48
49 /**
44 * Tries to find a local id for the remote id, and creates a new local id otherwise. 50 * Tries to find a local id for the remote id, and creates a new local id otherwise.
45 * 51 *
46 * The new local id is recorded in the local to remote id mapping. 52 * The new local id is recorded in the local to remote id mapping.