summaryrefslogtreecommitdiffstats
path: root/examples/dummyresource/resourcefactory.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-09-08 21:08:54 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-09-08 21:08:54 +0200
commitbbbda3fe9444eba6795a5490da0425cdf8f26361 (patch)
treed558ce110b71278df91135db5ac29c484e588ac5 /examples/dummyresource/resourcefactory.h
parent43ae43bc74800473aadf9c5c807603cdf8516d36 (diff)
downloadsink-bbbda3fe9444eba6795a5490da0425cdf8f26361.tar.gz
sink-bbbda3fe9444eba6795a5490da0425cdf8f26361.zip
Added support for mails to akonadi and the dummyresource.
Adding new types definitely needs to become easier.
Diffstat (limited to 'examples/dummyresource/resourcefactory.h')
-rw-r--r--examples/dummyresource/resourcefactory.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/dummyresource/resourcefactory.h b/examples/dummyresource/resourcefactory.h
index 4baafa7..cf0f624 100644
--- a/examples/dummyresource/resourcefactory.h
+++ b/examples/dummyresource/resourcefactory.h
@@ -34,6 +34,9 @@ class DummyResource : public Akonadi2::GenericResource
34public: 34public:
35 DummyResource(const QByteArray &instanceIdentifier, const QSharedPointer<Akonadi2::Pipeline> &pipeline = QSharedPointer<Akonadi2::Pipeline>()); 35 DummyResource(const QByteArray &instanceIdentifier, const QSharedPointer<Akonadi2::Pipeline> &pipeline = QSharedPointer<Akonadi2::Pipeline>());
36 KAsync::Job<void> synchronizeWithSource() Q_DECL_OVERRIDE; 36 KAsync::Job<void> synchronizeWithSource() Q_DECL_OVERRIDE;
37private:
38 void createEvent(const QByteArray &rid, const QByteArray &data, flatbuffers::FlatBufferBuilder &entityFbb);
39 void createMail(const QByteArray &rid, const QByteArray &data, flatbuffers::FlatBufferBuilder &entityFbb);
37}; 40};
38 41
39class DummyResourceFactory : public Akonadi2::ResourceFactory 42class DummyResourceFactory : public Akonadi2::ResourceFactory