diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-30 18:01:58 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-30 18:01:58 +0100 |
commit | ecc2a18e1afc1b99df6725066c9ae552d09e90d8 (patch) | |
tree | c897f73483a1622d5e4f18c5cdbff55573881d93 /examples/dummyresource | |
parent | 84957496800a862aa88bb2e88da0a9b2c4e19dc2 (diff) | |
download | sink-ecc2a18e1afc1b99df6725066c9ae552d09e90d8.tar.gz sink-ecc2a18e1afc1b99df6725066c9ae552d09e90d8.zip |
Centralize where we create the stores
Diffstat (limited to 'examples/dummyresource')
-rw-r--r-- | examples/dummyresource/resourcefactory.cpp | 2 | ||||
-rw-r--r-- | examples/dummyresource/resourcefactory.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index a24ff27..08e3594 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp | |||
@@ -164,7 +164,7 @@ KAsync::Job<void> DummyResource::synchronizeWithSource() | |||
164 | }); | 164 | }); |
165 | } | 165 | } |
166 | 166 | ||
167 | KAsync::Job<void> DummyResource::replay(const QByteArray &type, const QByteArray &key, const QByteArray &value) | 167 | KAsync::Job<void> DummyResource::replay(Akonadi2::Storage &synchronizationStore, const QByteArray &type, const QByteArray &key, const QByteArray &value) |
168 | { | 168 | { |
169 | Trace() << "Replaying " << key; | 169 | Trace() << "Replaying " << key; |
170 | return KAsync::null<void>(); | 170 | return KAsync::null<void>(); |
diff --git a/examples/dummyresource/resourcefactory.h b/examples/dummyresource/resourcefactory.h index 3216e13..c638b7c 100644 --- a/examples/dummyresource/resourcefactory.h +++ b/examples/dummyresource/resourcefactory.h | |||
@@ -40,7 +40,7 @@ public: | |||
40 | KAsync::Job<void> synchronizeWithSource() Q_DECL_OVERRIDE; | 40 | KAsync::Job<void> synchronizeWithSource() Q_DECL_OVERRIDE; |
41 | static void removeFromDisk(const QByteArray &instanceIdentifier); | 41 | static void removeFromDisk(const QByteArray &instanceIdentifier); |
42 | private: | 42 | private: |
43 | KAsync::Job<void> replay(const QByteArray &type, const QByteArray &key, const QByteArray &value) Q_DECL_OVERRIDE; | 43 | KAsync::Job<void> replay(Akonadi2::Storage &synchronizationStore, const QByteArray &type, const QByteArray &key, const QByteArray &value) Q_DECL_OVERRIDE; |
44 | QString resolveRemoteId(const QByteArray &type, const QString &remoteId, Akonadi2::Storage::Transaction &transaction); | 44 | QString resolveRemoteId(const QByteArray &type, const QString &remoteId, Akonadi2::Storage::Transaction &transaction); |
45 | void createEvent(const QByteArray &rid, const QMap<QString, QVariant> &data, flatbuffers::FlatBufferBuilder &entityFbb, Akonadi2::Storage::Transaction &); | 45 | void createEvent(const QByteArray &rid, const QMap<QString, QVariant> &data, flatbuffers::FlatBufferBuilder &entityFbb, Akonadi2::Storage::Transaction &); |
46 | void createMail(const QByteArray &rid, const QMap<QString, QVariant> &data, flatbuffers::FlatBufferBuilder &entityFbb, Akonadi2::Storage::Transaction &); | 46 | void createMail(const QByteArray &rid, const QMap<QString, QVariant> &data, flatbuffers::FlatBufferBuilder &entityFbb, Akonadi2::Storage::Transaction &); |