diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-17 08:27:31 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-17 08:27:31 +0100 |
commit | 1c7e8fd482bb67a5487449948488bd286a3504c1 (patch) | |
tree | 38789d22037a0b2ed7550b60fd2280fa522c086d /dummyresource/resourcefactory.h | |
parent | 7265d88245767960f1b551bb57f8f84942b898d2 (diff) | |
download | sink-1c7e8fd482bb67a5487449948488bd286a3504c1.tar.gz sink-1c7e8fd482bb67a5487449948488bd286a3504c1.zip |
a basically-working Pipeline implementation
still a skeleton rather than a full body with flesh and blood, but
it is getting there!
Diffstat (limited to 'dummyresource/resourcefactory.h')
-rw-r--r-- | dummyresource/resourcefactory.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dummyresource/resourcefactory.h b/dummyresource/resourcefactory.h index 7c40084..807a654 100644 --- a/dummyresource/resourcefactory.h +++ b/dummyresource/resourcefactory.h | |||
@@ -21,6 +21,8 @@ | |||
21 | 21 | ||
22 | #include "common/resource.h" | 22 | #include "common/resource.h" |
23 | 23 | ||
24 | #include <flatbuffers/flatbuffers.h> | ||
25 | |||
24 | //TODO: a little ugly to have this in two places, once here and once in Q_PLUGIN_METADATA | 26 | //TODO: a little ugly to have this in two places, once here and once in Q_PLUGIN_METADATA |
25 | #define PLUGIN_NAME "org.kde.dummy" | 27 | #define PLUGIN_NAME "org.kde.dummy" |
26 | 28 | ||
@@ -28,7 +30,11 @@ class DummyResource : public Akonadi2::Resource | |||
28 | { | 30 | { |
29 | public: | 31 | public: |
30 | DummyResource(); | 32 | DummyResource(); |
31 | void synchronizeWithSource(); | 33 | void synchronizeWithSource(Akonadi2::Pipeline *pipeline); |
34 | void processCommand(int commandId, const QByteArray &data, uint size, Akonadi2::Pipeline *pipeline); | ||
35 | |||
36 | private: | ||
37 | flatbuffers::FlatBufferBuilder m_fbb; | ||
32 | }; | 38 | }; |
33 | 39 | ||
34 | class DummyResourceFactory : public Akonadi2::ResourceFactory | 40 | class DummyResourceFactory : public Akonadi2::ResourceFactory |