diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-08 11:22:40 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-08 11:36:32 +0200 |
commit | 81fa4c3635a029b1c8f9cc3cd670f0b04f1c3f21 (patch) | |
tree | 3acd44ee1d055e4dfe6c8c0409406235b39e0980 /examples | |
parent | 9317fbffeab4a8c258acb1116eb12fbded7053d8 (diff) | |
download | sink-81fa4c3635a029b1c8f9cc3cd670f0b04f1c3f21.tar.gz sink-81fa4c3635a029b1c8f9cc3cd670f0b04f1c3f21.zip |
Shorten the types to be more distinctive.
The org.kde prefix is useless and possibly misleading.
Simply prefixing with sink is more unique and shorter.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/client/main.cpp | 2 | ||||
-rw-r--r-- | examples/dummyresource/resourcefactory.h | 4 | ||||
-rw-r--r-- | examples/imapresource/imapresource.h | 4 | ||||
-rw-r--r-- | examples/maildirresource/maildirresource.h | 4 | ||||
-rw-r--r-- | examples/mailtransportresource/mailtransportresource.h | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/examples/client/main.cpp b/examples/client/main.cpp index 07e780e..f4b472f 100644 --- a/examples/client/main.cpp +++ b/examples/client/main.cpp | |||
@@ -120,7 +120,7 @@ public: | |||
120 | syncButton->setText("Synchronize!"); | 120 | syncButton->setText("Synchronize!"); |
121 | QObject::connect(syncButton, &QPushButton::pressed, []() { | 121 | QObject::connect(syncButton, &QPushButton::pressed, []() { |
122 | Sink::Query query; | 122 | Sink::Query query; |
123 | query.resources << "org.kde.dummy.instance1"; | 123 | query.resources << "sink.dummy.instance1"; |
124 | Sink::Store::synchronize(query).exec(); | 124 | Sink::Store::synchronize(query).exec(); |
125 | }); | 125 | }); |
126 | 126 | ||
diff --git a/examples/dummyresource/resourcefactory.h b/examples/dummyresource/resourcefactory.h index a7d0281..9192c68 100644 --- a/examples/dummyresource/resourcefactory.h +++ b/examples/dummyresource/resourcefactory.h | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <flatbuffers/flatbuffers.h> | 27 | #include <flatbuffers/flatbuffers.h> |
28 | 28 | ||
29 | //TODO: a little ugly to have this in two places, once here and once in Q_PLUGIN_METADATA | 29 | //TODO: a little ugly to have this in two places, once here and once in Q_PLUGIN_METADATA |
30 | #define PLUGIN_NAME "org.kde.dummy" | 30 | #define PLUGIN_NAME "sink.dummy" |
31 | 31 | ||
32 | class DummyResource : public Sink::GenericResource | 32 | class DummyResource : public Sink::GenericResource |
33 | { | 33 | { |
@@ -42,7 +42,7 @@ public: | |||
42 | class DummyResourceFactory : public Sink::ResourceFactory | 42 | class DummyResourceFactory : public Sink::ResourceFactory |
43 | { | 43 | { |
44 | Q_OBJECT | 44 | Q_OBJECT |
45 | Q_PLUGIN_METADATA(IID "org.kde.dummy") | 45 | Q_PLUGIN_METADATA(IID "sink.dummy") |
46 | Q_INTERFACES(Sink::ResourceFactory) | 46 | Q_INTERFACES(Sink::ResourceFactory) |
47 | 47 | ||
48 | public: | 48 | public: |
diff --git a/examples/imapresource/imapresource.h b/examples/imapresource/imapresource.h index 0c3b541..534a04e 100644 --- a/examples/imapresource/imapresource.h +++ b/examples/imapresource/imapresource.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <flatbuffers/flatbuffers.h> | 26 | #include <flatbuffers/flatbuffers.h> |
27 | 27 | ||
28 | //TODO: a little ugly to have this in two places, once here and once in Q_PLUGIN_METADATA | 28 | //TODO: a little ugly to have this in two places, once here and once in Q_PLUGIN_METADATA |
29 | #define PLUGIN_NAME "org.kde.imap" | 29 | #define PLUGIN_NAME "sink.imap" |
30 | 30 | ||
31 | class ImapMailAdaptorFactory; | 31 | class ImapMailAdaptorFactory; |
32 | class ImapFolderAdaptorFactory; | 32 | class ImapFolderAdaptorFactory; |
@@ -56,7 +56,7 @@ private: | |||
56 | class ImapResourceFactory : public Sink::ResourceFactory | 56 | class ImapResourceFactory : public Sink::ResourceFactory |
57 | { | 57 | { |
58 | Q_OBJECT | 58 | Q_OBJECT |
59 | Q_PLUGIN_METADATA(IID "org.kde.imap") | 59 | Q_PLUGIN_METADATA(IID "sink.imap") |
60 | Q_INTERFACES(Sink::ResourceFactory) | 60 | Q_INTERFACES(Sink::ResourceFactory) |
61 | 61 | ||
62 | public: | 62 | public: |
diff --git a/examples/maildirresource/maildirresource.h b/examples/maildirresource/maildirresource.h index d481b22..76aef77 100644 --- a/examples/maildirresource/maildirresource.h +++ b/examples/maildirresource/maildirresource.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <flatbuffers/flatbuffers.h> | 26 | #include <flatbuffers/flatbuffers.h> |
27 | 27 | ||
28 | //TODO: a little ugly to have this in two places, once here and once in Q_PLUGIN_METADATA | 28 | //TODO: a little ugly to have this in two places, once here and once in Q_PLUGIN_METADATA |
29 | #define PLUGIN_NAME "org.kde.maildir" | 29 | #define PLUGIN_NAME "sink.maildir" |
30 | 30 | ||
31 | class MaildirMailAdaptorFactory; | 31 | class MaildirMailAdaptorFactory; |
32 | class MaildirFolderAdaptorFactory; | 32 | class MaildirFolderAdaptorFactory; |
@@ -58,7 +58,7 @@ private: | |||
58 | class MaildirResourceFactory : public Sink::ResourceFactory | 58 | class MaildirResourceFactory : public Sink::ResourceFactory |
59 | { | 59 | { |
60 | Q_OBJECT | 60 | Q_OBJECT |
61 | Q_PLUGIN_METADATA(IID "org.kde.maildir") | 61 | Q_PLUGIN_METADATA(IID "sink.maildir") |
62 | Q_INTERFACES(Sink::ResourceFactory) | 62 | Q_INTERFACES(Sink::ResourceFactory) |
63 | 63 | ||
64 | public: | 64 | public: |
diff --git a/examples/mailtransportresource/mailtransportresource.h b/examples/mailtransportresource/mailtransportresource.h index 6622ea6..cf6abf2 100644 --- a/examples/mailtransportresource/mailtransportresource.h +++ b/examples/mailtransportresource/mailtransportresource.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #include "common/genericresource.h" | 23 | #include "common/genericresource.h" |
24 | 24 | ||
25 | //TODO: a little ugly to have this in two places, once here and once in Q_PLUGIN_METADATA | 25 | //TODO: a little ugly to have this in two places, once here and once in Q_PLUGIN_METADATA |
26 | #define PLUGIN_NAME "org.kde.mailtransport" | 26 | #define PLUGIN_NAME "sink.mailtransport" |
27 | 27 | ||
28 | class MailtransportResource : public Sink::GenericResource | 28 | class MailtransportResource : public Sink::GenericResource |
29 | { | 29 | { |
@@ -46,7 +46,7 @@ private: | |||
46 | class MailtransportResourceFactory : public Sink::ResourceFactory | 46 | class MailtransportResourceFactory : public Sink::ResourceFactory |
47 | { | 47 | { |
48 | Q_OBJECT | 48 | Q_OBJECT |
49 | Q_PLUGIN_METADATA(IID "org.kde.mailtransport") | 49 | Q_PLUGIN_METADATA(IID "sink.mailtransport") |
50 | Q_INTERFACES(Sink::ResourceFactory) | 50 | Q_INTERFACES(Sink::ResourceFactory) |
51 | 51 | ||
52 | public: | 52 | public: |