diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-30 23:42:07 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-02 13:48:24 +0200 |
commit | dacf52300b389c9ab2a6141423962202b84da6d8 (patch) | |
tree | 63f706db90267ba83c5130828091f7f32b47bc04 | |
parent | e2ff5df1661b4119f584578d49c54899a9ef45b6 (diff) | |
download | sink-dacf52300b389c9ab2a6141423962202b84da6d8.tar.gz sink-dacf52300b389c9ab2a6141423962202b84da6d8.zip |
Cleanup.
-rw-r--r-- | common/genericresource.h | 5 | ||||
-rw-r--r-- | common/resource.h | 3 | ||||
-rw-r--r-- | examples/caldavresource/caldavresource.h | 1 | ||||
-rw-r--r-- | examples/carddavresource/carddavresource.h | 9 | ||||
-rw-r--r-- | examples/dummyresource/resourcefactory.h | 6 | ||||
-rw-r--r-- | examples/imapresource/imapresource.h | 13 | ||||
-rw-r--r-- | examples/maildirresource/maildirresource.h | 8 | ||||
-rw-r--r-- | tests/upgradetest.cpp | 1 |
8 files changed, 11 insertions, 35 deletions
diff --git a/common/genericresource.h b/common/genericresource.h index d34a361..017d6bc 100644 --- a/common/genericresource.h +++ b/common/genericresource.h | |||
@@ -20,8 +20,8 @@ | |||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "sink_export.h" | 22 | #include "sink_export.h" |
23 | #include <resource.h> | 23 | #include "resource.h" |
24 | #include <resourcecontext.h> | 24 | #include "resourcecontext.h" |
25 | 25 | ||
26 | namespace Sink { | 26 | namespace Sink { |
27 | class Pipeline; | 27 | class Pipeline; |
@@ -35,6 +35,7 @@ class CommandProcessor; | |||
35 | */ | 35 | */ |
36 | class SINK_EXPORT GenericResource : public Resource | 36 | class SINK_EXPORT GenericResource : public Resource |
37 | { | 37 | { |
38 | Q_OBJECT | ||
38 | public: | 39 | public: |
39 | GenericResource(const Sink::ResourceContext &context, const QSharedPointer<Pipeline> &pipeline = QSharedPointer<Pipeline>()); | 40 | GenericResource(const Sink::ResourceContext &context, const QSharedPointer<Pipeline> &pipeline = QSharedPointer<Pipeline>()); |
40 | virtual ~GenericResource() Q_DECL_OVERRIDE; | 41 | virtual ~GenericResource() Q_DECL_OVERRIDE; |
diff --git a/common/resource.h b/common/resource.h index 1b0b388..2c33c0c 100644 --- a/common/resource.h +++ b/common/resource.h | |||
@@ -64,6 +64,7 @@ private: | |||
64 | */ | 64 | */ |
65 | class SINK_EXPORT ResourceFactory : public QObject | 65 | class SINK_EXPORT ResourceFactory : public QObject |
66 | { | 66 | { |
67 | Q_OBJECT | ||
67 | public: | 68 | public: |
68 | static ResourceFactory *load(const QByteArray &resourceName); | 69 | static ResourceFactory *load(const QByteArray &resourceName); |
69 | 70 | ||
@@ -83,4 +84,4 @@ private: | |||
83 | 84 | ||
84 | } // namespace Sink | 85 | } // namespace Sink |
85 | 86 | ||
86 | Q_DECLARE_INTERFACE(Sink::ResourceFactory, "sink.sink.resourcefactory") | 87 | Q_DECLARE_INTERFACE(Sink::ResourceFactory, "sink.resourcefactory") |
diff --git a/examples/caldavresource/caldavresource.h b/examples/caldavresource/caldavresource.h index 5822495..79f438f 100644 --- a/examples/caldavresource/caldavresource.h +++ b/examples/caldavresource/caldavresource.h | |||
@@ -19,6 +19,7 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "common/resource.h" | ||
22 | #include "common/genericresource.h" | 23 | #include "common/genericresource.h" |
23 | 24 | ||
24 | /** | 25 | /** |
diff --git a/examples/carddavresource/carddavresource.h b/examples/carddavresource/carddavresource.h index 3c0f707..6238736 100644 --- a/examples/carddavresource/carddavresource.h +++ b/examples/carddavresource/carddavresource.h | |||
@@ -19,16 +19,9 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "common/resource.h" | ||
22 | #include "common/genericresource.h" | 23 | #include "common/genericresource.h" |
23 | 24 | ||
24 | #include <KDAV2/DavUrl> | ||
25 | #include <KAsync/Async> | ||
26 | |||
27 | #include <flatbuffers/flatbuffers.h> | ||
28 | |||
29 | class ContactAdaptorFactory; | ||
30 | class AddressbookAdaptorFactory; | ||
31 | |||
32 | /** | 25 | /** |
33 | * A CardDAV resource. | 26 | * A CardDAV resource. |
34 | * | 27 | * |
diff --git a/examples/dummyresource/resourcefactory.h b/examples/dummyresource/resourcefactory.h index cfc6577..0e13696 100644 --- a/examples/dummyresource/resourcefactory.h +++ b/examples/dummyresource/resourcefactory.h | |||
@@ -19,12 +19,8 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "common/resource.h" | ||
22 | #include "common/genericresource.h" | 23 | #include "common/genericresource.h" |
23 | #include "common/messagequeue.h" | ||
24 | |||
25 | #include <KAsync/Async> | ||
26 | |||
27 | #include <flatbuffers/flatbuffers.h> | ||
28 | 24 | ||
29 | class DummyResource : public Sink::GenericResource | 25 | class DummyResource : public Sink::GenericResource |
30 | { | 26 | { |
diff --git a/examples/imapresource/imapresource.h b/examples/imapresource/imapresource.h index 3b8b670..8a6bb59 100644 --- a/examples/imapresource/imapresource.h +++ b/examples/imapresource/imapresource.h | |||
@@ -19,20 +19,9 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "common/resource.h" | ||
22 | #include "common/genericresource.h" | 23 | #include "common/genericresource.h" |
23 | 24 | ||
24 | #include <KAsync/Async> | ||
25 | |||
26 | #include <flatbuffers/flatbuffers.h> | ||
27 | |||
28 | class ImapMailAdaptorFactory; | ||
29 | class ImapFolderAdaptorFactory; | ||
30 | |||
31 | namespace Imap { | ||
32 | struct Message; | ||
33 | struct Folder; | ||
34 | } | ||
35 | |||
36 | /** | 25 | /** |
37 | * An imap resource. | 26 | * An imap resource. |
38 | */ | 27 | */ |
diff --git a/examples/maildirresource/maildirresource.h b/examples/maildirresource/maildirresource.h index 8ceb2f5..538ea0b 100644 --- a/examples/maildirresource/maildirresource.h +++ b/examples/maildirresource/maildirresource.h | |||
@@ -19,15 +19,9 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "common/resource.h" | ||
22 | #include "common/genericresource.h" | 23 | #include "common/genericresource.h" |
23 | 24 | ||
24 | #include <KAsync/Async> | ||
25 | |||
26 | #include <flatbuffers/flatbuffers.h> | ||
27 | |||
28 | class MaildirMailAdaptorFactory; | ||
29 | class MaildirFolderAdaptorFactory; | ||
30 | |||
31 | /** | 25 | /** |
32 | * A maildir resource. | 26 | * A maildir resource. |
33 | * | 27 | * |
diff --git a/tests/upgradetest.cpp b/tests/upgradetest.cpp index 1060626..0b150e7 100644 --- a/tests/upgradetest.cpp +++ b/tests/upgradetest.cpp | |||
@@ -10,6 +10,7 @@ | |||
10 | #include "test.h" | 10 | #include "test.h" |
11 | #include "testutils.h" | 11 | #include "testutils.h" |
12 | #include "definitions.h" | 12 | #include "definitions.h" |
13 | #include "storage.h" | ||
13 | 14 | ||
14 | using namespace Sink; | 15 | using namespace Sink; |
15 | using namespace Sink::ApplicationDomain; | 16 | using namespace Sink::ApplicationDomain; |