diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-09 16:14:31 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-09 16:14:31 +0100 |
commit | d5b4d64ca0609f65cda606d1456f4040ff008cda (patch) | |
tree | 8e700409faa481609a2e678d2dc4eb2a520b5ef1 | |
parent | 2b79fb7b6a4759086302c68d63731256465bc5fe (diff) | |
download | sink-d5b4d64ca0609f65cda606d1456f4040ff008cda.tar.gz sink-d5b4d64ca0609f65cda606d1456f4040ff008cda.zip |
Use Sink instead of SinkCommon
30 files changed, 115 insertions, 115 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 0dacda1..a165820 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt | |||
@@ -1,33 +1,33 @@ | |||
1 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | 1 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
2 | include_directories(domain) | 2 | include_directories(domain) |
3 | 3 | ||
4 | project(sinkcommon) | 4 | project(sink) |
5 | 5 | ||
6 | ecm_setup_version("0.1" VARIABLE_PREFIX SinkCommon | 6 | ecm_setup_version("0.1" VARIABLE_PREFIX Sink |
7 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/sinkcommon_version.h" | 7 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/sink_version.h" |
8 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/SinkCommonConfigVersion.cmake" | 8 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/SinkConfigVersion.cmake" |
9 | SOVERSION 0 | 9 | SOVERSION 0 |
10 | ) | 10 | ) |
11 | 11 | ||
12 | ########### CMake Config Files ########### | 12 | ########### CMake Config Files ########### |
13 | set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/SinkCommon") | 13 | set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/Sink") |
14 | 14 | ||
15 | ecm_configure_package_config_file( | 15 | ecm_configure_package_config_file( |
16 | "${CMAKE_CURRENT_SOURCE_DIR}/SinkCommonConfig.cmake.in" | 16 | "${CMAKE_CURRENT_SOURCE_DIR}/SinkConfig.cmake.in" |
17 | "${CMAKE_CURRENT_BINARY_DIR}/SinkCommonConfig.cmake" | 17 | "${CMAKE_CURRENT_BINARY_DIR}/SinkConfig.cmake" |
18 | INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} | 18 | INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} |
19 | ) | 19 | ) |
20 | 20 | ||
21 | install(FILES | 21 | install(FILES |
22 | "${CMAKE_CURRENT_BINARY_DIR}/SinkCommonConfig.cmake" | 22 | "${CMAKE_CURRENT_BINARY_DIR}/SinkConfig.cmake" |
23 | "${CMAKE_CURRENT_BINARY_DIR}/SinkCommonConfigVersion.cmake" | 23 | "${CMAKE_CURRENT_BINARY_DIR}/SinkConfigVersion.cmake" |
24 | DESTINATION "${CMAKECONFIG_INSTALL_DIR}" | 24 | DESTINATION "${CMAKECONFIG_INSTALL_DIR}" |
25 | COMPONENT Devel | 25 | COMPONENT Devel |
26 | ) | 26 | ) |
27 | 27 | ||
28 | add_definitions("-fvisibility=hidden") | 28 | add_definitions("-fvisibility=hidden") |
29 | 29 | ||
30 | install(EXPORT SinkCommonTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE SinkCommonTargets.cmake) | 30 | install(EXPORT SinkTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE SinkTargets.cmake) |
31 | 31 | ||
32 | set(storage_SRCS storage_lmdb.cpp) | 32 | set(storage_SRCS storage_lmdb.cpp) |
33 | set(storage_LIBS lmdb) | 33 | set(storage_LIBS lmdb) |
@@ -87,7 +87,7 @@ generate_flatbuffers( | |||
87 | queuedcommand | 87 | queuedcommand |
88 | ) | 88 | ) |
89 | 89 | ||
90 | generate_export_header(${PROJECT_NAME} BASE_NAME SinkCommon EXPORT_FILE_NAME sinkcommon_export.h) | 90 | generate_export_header(${PROJECT_NAME} BASE_NAME Sink EXPORT_FILE_NAME sink_export.h) |
91 | SET_TARGET_PROPERTIES(${PROJECT_NAME} | 91 | SET_TARGET_PROPERTIES(${PROJECT_NAME} |
92 | PROPERTIES LINKER_LANGUAGE CXX | 92 | PROPERTIES LINKER_LANGUAGE CXX |
93 | VERSION "0.1" | 93 | VERSION "0.1" |
@@ -97,7 +97,7 @@ SET_TARGET_PROPERTIES(${PROJECT_NAME} | |||
97 | qt5_use_modules(${PROJECT_NAME} Network) | 97 | qt5_use_modules(${PROJECT_NAME} Network) |
98 | target_link_libraries(${PROJECT_NAME} ${storage_LIBS} KF5::Async) | 98 | target_link_libraries(${PROJECT_NAME} ${storage_LIBS} KF5::Async) |
99 | install(TARGETS ${PROJECT_NAME} | 99 | install(TARGETS ${PROJECT_NAME} |
100 | EXPORT SinkCommonTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ${LIBRARY_NAMELINK} ) | 100 | EXPORT SinkTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ${LIBRARY_NAMELINK} ) |
101 | 101 | ||
102 | add_clang_static_analysis(${PROJECT_NAME}) | 102 | add_clang_static_analysis(${PROJECT_NAME}) |
103 | 103 | ||
@@ -108,7 +108,7 @@ install(FILES | |||
108 | inspection.h | 108 | inspection.h |
109 | notification.h | 109 | notification.h |
110 | bufferadaptor.h | 110 | bufferadaptor.h |
111 | ${CMAKE_CURRENT_BINARY_DIR}/sinkcommon_export.h | 111 | ${CMAKE_CURRENT_BINARY_DIR}/sink_export.h |
112 | DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} COMPONENT Devel | 112 | DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} COMPONENT Devel |
113 | ) | 113 | ) |
114 | 114 | ||
diff --git a/common/SinkCommonConfig.cmake.in b/common/SinkConfig.cmake.in index 6c2a1c2..930b2db 100644 --- a/common/SinkCommonConfig.cmake.in +++ b/common/SinkConfig.cmake.in | |||
@@ -2,4 +2,4 @@ | |||
2 | 2 | ||
3 | find_dependency(KF5Mime "@KMIME_LIB_VERSION@") | 3 | find_dependency(KF5Mime "@KMIME_LIB_VERSION@") |
4 | 4 | ||
5 | include("${CMAKE_CURRENT_LIST_DIR}/SinkCommonTargets.cmake") | 5 | include("${CMAKE_CURRENT_LIST_DIR}/SinkTargets.cmake") |
diff --git a/common/clientapi.h b/common/clientapi.h index f88eb5c..ff23da5 100644 --- a/common/clientapi.h +++ b/common/clientapi.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #pragma once | 21 | #pragma once |
22 | 22 | ||
23 | #include "sinkcommon_export.h" | 23 | #include "sink_export.h" |
24 | #include <QString> | 24 | #include <QString> |
25 | #include <QSharedPointer> | 25 | #include <QSharedPointer> |
26 | 26 | ||
@@ -36,7 +36,7 @@ namespace Sink { | |||
36 | class ResourceAccess; | 36 | class ResourceAccess; |
37 | class Notification; | 37 | class Notification; |
38 | 38 | ||
39 | class SINKCOMMON_EXPORT Notifier { | 39 | class SINK_EXPORT Notifier { |
40 | public: | 40 | public: |
41 | Notifier(const QSharedPointer<ResourceAccess> &resourceAccess); | 41 | Notifier(const QSharedPointer<ResourceAccess> &resourceAccess); |
42 | Notifier(const QByteArray &resourceInstanceIdentifier); | 42 | Notifier(const QByteArray &resourceInstanceIdentifier); |
@@ -54,8 +54,8 @@ private: | |||
54 | */ | 54 | */ |
55 | namespace Store { | 55 | namespace Store { |
56 | 56 | ||
57 | QString SINKCOMMON_EXPORT storageLocation(); | 57 | QString SINK_EXPORT storageLocation(); |
58 | QByteArray SINKCOMMON_EXPORT resourceName(const QByteArray &instanceIdentifier); | 58 | QByteArray SINK_EXPORT resourceName(const QByteArray &instanceIdentifier); |
59 | 59 | ||
60 | enum Roles { | 60 | enum Roles { |
61 | DomainObjectRole = Qt::UserRole + 1, //Must be the same as in ModelResult | 61 | DomainObjectRole = Qt::UserRole + 1, //Must be the same as in ModelResult |
@@ -67,13 +67,13 @@ enum Roles { | |||
67 | * Asynchronusly load a dataset with tree structure information | 67 | * Asynchronusly load a dataset with tree structure information |
68 | */ | 68 | */ |
69 | template <class DomainType> | 69 | template <class DomainType> |
70 | QSharedPointer<QAbstractItemModel> SINKCOMMON_EXPORT loadModel(Query query); | 70 | QSharedPointer<QAbstractItemModel> SINK_EXPORT loadModel(Query query); |
71 | 71 | ||
72 | /** | 72 | /** |
73 | * Create a new entity. | 73 | * Create a new entity. |
74 | */ | 74 | */ |
75 | template <class DomainType> | 75 | template <class DomainType> |
76 | KAsync::Job<void> SINKCOMMON_EXPORT create(const DomainType &domainObject); | 76 | KAsync::Job<void> SINK_EXPORT create(const DomainType &domainObject); |
77 | 77 | ||
78 | /** | 78 | /** |
79 | * Modify an entity. | 79 | * Modify an entity. |
@@ -81,51 +81,51 @@ KAsync::Job<void> SINKCOMMON_EXPORT create(const DomainType &domainObject); | |||
81 | * This includes moving etc. since these are also simple settings on a property. | 81 | * This includes moving etc. since these are also simple settings on a property. |
82 | */ | 82 | */ |
83 | template <class DomainType> | 83 | template <class DomainType> |
84 | KAsync::Job<void> SINKCOMMON_EXPORT modify(const DomainType &domainObject); | 84 | KAsync::Job<void> SINK_EXPORT modify(const DomainType &domainObject); |
85 | 85 | ||
86 | /** | 86 | /** |
87 | * Remove an entity. | 87 | * Remove an entity. |
88 | */ | 88 | */ |
89 | template <class DomainType> | 89 | template <class DomainType> |
90 | KAsync::Job<void> SINKCOMMON_EXPORT remove(const DomainType &domainObject); | 90 | KAsync::Job<void> SINK_EXPORT remove(const DomainType &domainObject); |
91 | 91 | ||
92 | /** | 92 | /** |
93 | * Synchronize data to local cache. | 93 | * Synchronize data to local cache. |
94 | */ | 94 | */ |
95 | KAsync::Job<void> SINKCOMMON_EXPORT synchronize(const Sink::Query &query); | 95 | KAsync::Job<void> SINK_EXPORT synchronize(const Sink::Query &query); |
96 | 96 | ||
97 | /** | 97 | /** |
98 | * Removes a resource from disk. | 98 | * Removes a resource from disk. |
99 | */ | 99 | */ |
100 | void SINKCOMMON_EXPORT removeFromDisk(const QByteArray &resourceIdentifier); | 100 | void SINK_EXPORT removeFromDisk(const QByteArray &resourceIdentifier); |
101 | 101 | ||
102 | /** | 102 | /** |
103 | * Removes all resource data from disk. | 103 | * Removes all resource data from disk. |
104 | * | 104 | * |
105 | * This will not touch the configuration. All commands that that arrived at the resource before this command will be dropped. All commands that arrived later will be executed. | 105 | * This will not touch the configuration. All commands that that arrived at the resource before this command will be dropped. All commands that arrived later will be executed. |
106 | */ | 106 | */ |
107 | KAsync::Job<void> SINKCOMMON_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier); | 107 | KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier); |
108 | 108 | ||
109 | template <class DomainType> | 109 | template <class DomainType> |
110 | KAsync::Job<DomainType> SINKCOMMON_EXPORT fetchOne(const Sink::Query &query); | 110 | KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query); |
111 | 111 | ||
112 | template <class DomainType> | 112 | template <class DomainType> |
113 | KAsync::Job<QList<typename DomainType::Ptr> > SINKCOMMON_EXPORT fetchAll(const Sink::Query &query); | 113 | KAsync::Job<QList<typename DomainType::Ptr> > SINK_EXPORT fetchAll(const Sink::Query &query); |
114 | 114 | ||
115 | template <class DomainType> | 115 | template <class DomainType> |
116 | KAsync::Job<QList<typename DomainType::Ptr> > SINKCOMMON_EXPORT fetch(const Sink::Query &query, int minimumAmount = 0); | 116 | KAsync::Job<QList<typename DomainType::Ptr> > SINK_EXPORT fetch(const Sink::Query &query, int minimumAmount = 0); |
117 | 117 | ||
118 | }; | 118 | }; |
119 | 119 | ||
120 | namespace Resources { | 120 | namespace Resources { |
121 | 121 | ||
122 | template <class DomainType> | 122 | template <class DomainType> |
123 | KAsync::Job<void> SINKCOMMON_EXPORT inspect(const Inspection &inspectionCommand); | 123 | KAsync::Job<void> SINK_EXPORT inspect(const Inspection &inspectionCommand); |
124 | 124 | ||
125 | /** | 125 | /** |
126 | * Shutdown resource. | 126 | * Shutdown resource. |
127 | */ | 127 | */ |
128 | KAsync::Job<void> SINKCOMMON_EXPORT shutdown(const QByteArray &resourceIdentifier); | 128 | KAsync::Job<void> SINK_EXPORT shutdown(const QByteArray &resourceIdentifier); |
129 | 129 | ||
130 | /** | 130 | /** |
131 | * Start resource. | 131 | * Start resource. |
@@ -134,17 +134,17 @@ KAsync::Job<void> SINKCOMMON_EXPORT shutdown(const QByteArray &resourceIdentifie | |||
134 | * This command is only necessary if a resource was shutdown previously, | 134 | * This command is only necessary if a resource was shutdown previously, |
135 | * otherwise the resource process will automatically start as necessary. | 135 | * otherwise the resource process will automatically start as necessary. |
136 | */ | 136 | */ |
137 | KAsync::Job<void> SINKCOMMON_EXPORT start(const QByteArray &resourceIdentifier); | 137 | KAsync::Job<void> SINK_EXPORT start(const QByteArray &resourceIdentifier); |
138 | 138 | ||
139 | /** | 139 | /** |
140 | * Flushes any pending messages to disk | 140 | * Flushes any pending messages to disk |
141 | */ | 141 | */ |
142 | KAsync::Job<void> SINKCOMMON_EXPORT flushMessageQueue(const QByteArrayList &resourceIdentifier); | 142 | KAsync::Job<void> SINK_EXPORT flushMessageQueue(const QByteArrayList &resourceIdentifier); |
143 | 143 | ||
144 | /** | 144 | /** |
145 | * Flushes any pending messages that haven't been replayed to the source. | 145 | * Flushes any pending messages that haven't been replayed to the source. |
146 | */ | 146 | */ |
147 | KAsync::Job<void> SINKCOMMON_EXPORT flushReplayQueue(const QByteArrayList &resourceIdentifier); | 147 | KAsync::Job<void> SINK_EXPORT flushReplayQueue(const QByteArrayList &resourceIdentifier); |
148 | 148 | ||
149 | } | 149 | } |
150 | 150 | ||
diff --git a/common/commands.h b/common/commands.h index adf2094..64abd76 100644 --- a/common/commands.h +++ b/common/commands.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #pragma once | 21 | #pragma once |
22 | 22 | ||
23 | #include "sinkcommon_export.h" | 23 | #include "sink_export.h" |
24 | #include <flatbuffers/flatbuffers.h> | 24 | #include <flatbuffers/flatbuffers.h> |
25 | #include <QByteArray> | 25 | #include <QByteArray> |
26 | 26 | ||
@@ -55,10 +55,10 @@ enum CommandIds { | |||
55 | 55 | ||
56 | QByteArray name(int commandId); | 56 | QByteArray name(int commandId); |
57 | 57 | ||
58 | int SINKCOMMON_EXPORT headerSize(); | 58 | int SINK_EXPORT headerSize(); |
59 | void SINKCOMMON_EXPORT write(QIODevice *device, int messageId, int commandId); | 59 | void SINK_EXPORT write(QIODevice *device, int messageId, int commandId); |
60 | void SINKCOMMON_EXPORT write(QIODevice *device, int messageId, int commandId, const char *buffer, uint size); | 60 | void SINK_EXPORT write(QIODevice *device, int messageId, int commandId, const char *buffer, uint size); |
61 | void SINKCOMMON_EXPORT write(QIODevice *device, int messageId, int commandId, flatbuffers::FlatBufferBuilder &fbb); | 61 | void SINK_EXPORT write(QIODevice *device, int messageId, int commandId, flatbuffers::FlatBufferBuilder &fbb); |
62 | 62 | ||
63 | } | 63 | } |
64 | 64 | ||
diff --git a/common/definitions.h b/common/definitions.h index b17514c..029d3f8 100644 --- a/common/definitions.h +++ b/common/definitions.h | |||
@@ -20,11 +20,11 @@ | |||
20 | 20 | ||
21 | #pragma once | 21 | #pragma once |
22 | 22 | ||
23 | #include "sinkcommon_export.h" | 23 | #include "sink_export.h" |
24 | #include <QString> | 24 | #include <QString> |
25 | #include <QByteArray> | 25 | #include <QByteArray> |
26 | 26 | ||
27 | namespace Sink { | 27 | namespace Sink { |
28 | QString SINKCOMMON_EXPORT storageLocation(); | 28 | QString SINK_EXPORT storageLocation(); |
29 | QByteArray SINKCOMMON_EXPORT resourceName(const QByteArray &instanceIdentifier); | 29 | QByteArray SINK_EXPORT resourceName(const QByteArray &instanceIdentifier); |
30 | } | 30 | } |
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index ce35af0..858049c 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "sinkcommon_export.h" | 22 | #include "sink_export.h" |
23 | #include <QSharedPointer> | 23 | #include <QSharedPointer> |
24 | #include <QVariant> | 24 | #include <QVariant> |
25 | #include <QByteArray> | 25 | #include <QByteArray> |
@@ -37,7 +37,7 @@ namespace ApplicationDomain { | |||
37 | * | 37 | * |
38 | * ApplicationDomainTypes don't adhere to any standard and are meant to be extended frequently (hence the non-typesafe interface). | 38 | * ApplicationDomainTypes don't adhere to any standard and are meant to be extended frequently (hence the non-typesafe interface). |
39 | */ | 39 | */ |
40 | class SINKCOMMON_EXPORT ApplicationDomainType { | 40 | class SINK_EXPORT ApplicationDomainType { |
41 | public: | 41 | public: |
42 | typedef QSharedPointer<ApplicationDomainType> Ptr; | 42 | typedef QSharedPointer<ApplicationDomainType> Ptr; |
43 | 43 | ||
@@ -96,37 +96,37 @@ inline QDebug operator<< (QDebug d, const ApplicationDomainType &type) | |||
96 | return d; | 96 | return d; |
97 | } | 97 | } |
98 | 98 | ||
99 | struct SINKCOMMON_EXPORT Entity : public ApplicationDomainType { | 99 | struct SINK_EXPORT Entity : public ApplicationDomainType { |
100 | typedef QSharedPointer<Entity> Ptr; | 100 | typedef QSharedPointer<Entity> Ptr; |
101 | using ApplicationDomainType::ApplicationDomainType; | 101 | using ApplicationDomainType::ApplicationDomainType; |
102 | virtual ~Entity(); | 102 | virtual ~Entity(); |
103 | }; | 103 | }; |
104 | 104 | ||
105 | struct SINKCOMMON_EXPORT Event : public Entity { | 105 | struct SINK_EXPORT Event : public Entity { |
106 | typedef QSharedPointer<Event> Ptr; | 106 | typedef QSharedPointer<Event> Ptr; |
107 | using Entity::Entity; | 107 | using Entity::Entity; |
108 | virtual ~Event(); | 108 | virtual ~Event(); |
109 | }; | 109 | }; |
110 | 110 | ||
111 | struct SINKCOMMON_EXPORT Todo : public Entity { | 111 | struct SINK_EXPORT Todo : public Entity { |
112 | typedef QSharedPointer<Todo> Ptr; | 112 | typedef QSharedPointer<Todo> Ptr; |
113 | using Entity::Entity; | 113 | using Entity::Entity; |
114 | virtual ~Todo(); | 114 | virtual ~Todo(); |
115 | }; | 115 | }; |
116 | 116 | ||
117 | struct SINKCOMMON_EXPORT Calendar : public Entity { | 117 | struct SINK_EXPORT Calendar : public Entity { |
118 | typedef QSharedPointer<Calendar> Ptr; | 118 | typedef QSharedPointer<Calendar> Ptr; |
119 | using Entity::Entity; | 119 | using Entity::Entity; |
120 | virtual ~Calendar(); | 120 | virtual ~Calendar(); |
121 | }; | 121 | }; |
122 | 122 | ||
123 | struct SINKCOMMON_EXPORT Mail : public Entity { | 123 | struct SINK_EXPORT Mail : public Entity { |
124 | typedef QSharedPointer<Mail> Ptr; | 124 | typedef QSharedPointer<Mail> Ptr; |
125 | using Entity::Entity; | 125 | using Entity::Entity; |
126 | virtual ~Mail(); | 126 | virtual ~Mail(); |
127 | }; | 127 | }; |
128 | 128 | ||
129 | struct SINKCOMMON_EXPORT Folder : public Entity { | 129 | struct SINK_EXPORT Folder : public Entity { |
130 | typedef QSharedPointer<Folder> Ptr; | 130 | typedef QSharedPointer<Folder> Ptr; |
131 | using Entity::Entity; | 131 | using Entity::Entity; |
132 | virtual ~Folder(); | 132 | virtual ~Folder(); |
@@ -138,7 +138,7 @@ struct SINKCOMMON_EXPORT Folder : public Entity { | |||
138 | * This type is used for configuration of resources, | 138 | * This type is used for configuration of resources, |
139 | * and for creating and removing resource instances. | 139 | * and for creating and removing resource instances. |
140 | */ | 140 | */ |
141 | struct SINKCOMMON_EXPORT SinkResource : public ApplicationDomainType { | 141 | struct SINK_EXPORT SinkResource : public ApplicationDomainType { |
142 | typedef QSharedPointer<SinkResource> Ptr; | 142 | typedef QSharedPointer<SinkResource> Ptr; |
143 | using ApplicationDomainType::ApplicationDomainType; | 143 | using ApplicationDomainType::ApplicationDomainType; |
144 | virtual ~SinkResource(); | 144 | virtual ~SinkResource(); |
@@ -150,22 +150,22 @@ struct SINKCOMMON_EXPORT SinkResource : public ApplicationDomainType { | |||
150 | * Do not store these types to disk, they may change over time. | 150 | * Do not store these types to disk, they may change over time. |
151 | */ | 151 | */ |
152 | template<class DomainType> | 152 | template<class DomainType> |
153 | QByteArray SINKCOMMON_EXPORT getTypeName(); | 153 | QByteArray SINK_EXPORT getTypeName(); |
154 | 154 | ||
155 | template<> | 155 | template<> |
156 | QByteArray SINKCOMMON_EXPORT getTypeName<Event>(); | 156 | QByteArray SINK_EXPORT getTypeName<Event>(); |
157 | 157 | ||
158 | template<> | 158 | template<> |
159 | QByteArray SINKCOMMON_EXPORT getTypeName<Todo>(); | 159 | QByteArray SINK_EXPORT getTypeName<Todo>(); |
160 | 160 | ||
161 | template<> | 161 | template<> |
162 | QByteArray SINKCOMMON_EXPORT getTypeName<SinkResource>(); | 162 | QByteArray SINK_EXPORT getTypeName<SinkResource>(); |
163 | 163 | ||
164 | template<> | 164 | template<> |
165 | QByteArray SINKCOMMON_EXPORT getTypeName<Mail>(); | 165 | QByteArray SINK_EXPORT getTypeName<Mail>(); |
166 | 166 | ||
167 | template<> | 167 | template<> |
168 | QByteArray SINKCOMMON_EXPORT getTypeName<Folder>(); | 168 | QByteArray SINK_EXPORT getTypeName<Folder>(); |
169 | 169 | ||
170 | /** | 170 | /** |
171 | * Type implementation. | 171 | * Type implementation. |
@@ -174,7 +174,7 @@ QByteArray SINKCOMMON_EXPORT getTypeName<Folder>(); | |||
174 | * Contains all non-resource specific, but type-specific code. | 174 | * Contains all non-resource specific, but type-specific code. |
175 | */ | 175 | */ |
176 | template<typename DomainType> | 176 | template<typename DomainType> |
177 | class SINKCOMMON_EXPORT TypeImplementation; | 177 | class SINK_EXPORT TypeImplementation; |
178 | 178 | ||
179 | } | 179 | } |
180 | } | 180 | } |
diff --git a/common/domainadaptor.h b/common/domainadaptor.h index 6299a23..893c8d0 100644 --- a/common/domainadaptor.h +++ b/common/domainadaptor.h | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "sinkcommon_export.h" | 22 | #include "sink_export.h" |
23 | #include <QVariant> | 23 | #include <QVariant> |
24 | #include <QByteArray> | 24 | #include <QByteArray> |
25 | #include <functional> | 25 | #include <functional> |
@@ -122,7 +122,7 @@ public: | |||
122 | * This is required by the facade the read the value, and by the pipeline preprocessors to access the domain values in a generic way. | 122 | * This is required by the facade the read the value, and by the pipeline preprocessors to access the domain values in a generic way. |
123 | */ | 123 | */ |
124 | template<typename DomainType, typename ResourceBuffer, typename ResourceBuilder> | 124 | template<typename DomainType, typename ResourceBuffer, typename ResourceBuilder> |
125 | class SINKCOMMON_EXPORT DomainTypeAdaptorFactory : public DomainTypeAdaptorFactoryInterface | 125 | class SINK_EXPORT DomainTypeAdaptorFactory : public DomainTypeAdaptorFactoryInterface |
126 | { | 126 | { |
127 | typedef typename Sink::ApplicationDomain::TypeImplementation<DomainType>::Buffer LocalBuffer; | 127 | typedef typename Sink::ApplicationDomain::TypeImplementation<DomainType>::Buffer LocalBuffer; |
128 | typedef typename Sink::ApplicationDomain::TypeImplementation<DomainType>::BufferBuilder LocalBuilder; | 128 | typedef typename Sink::ApplicationDomain::TypeImplementation<DomainType>::BufferBuilder LocalBuilder; |
diff --git a/common/entitybuffer.h b/common/entitybuffer.h index 495e94e..474a619 100644 --- a/common/entitybuffer.h +++ b/common/entitybuffer.h | |||
@@ -1,6 +1,6 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include "sinkcommon_export.h" | 3 | #include "sink_export.h" |
4 | #include <functional> | 4 | #include <functional> |
5 | #include <flatbuffers/flatbuffers.h> | 5 | #include <flatbuffers/flatbuffers.h> |
6 | #include <QByteArray> | 6 | #include <QByteArray> |
@@ -8,7 +8,7 @@ | |||
8 | namespace Sink { | 8 | namespace Sink { |
9 | struct Entity; | 9 | struct Entity; |
10 | 10 | ||
11 | class SINKCOMMON_EXPORT EntityBuffer { | 11 | class SINK_EXPORT EntityBuffer { |
12 | public: | 12 | public: |
13 | EntityBuffer(const void *dataValue, int size); | 13 | EntityBuffer(const void *dataValue, int size); |
14 | EntityBuffer(const QByteArray &data); | 14 | EntityBuffer(const QByteArray &data); |
diff --git a/common/facade.h b/common/facade.h index 914b6fc..a85b1de 100644 --- a/common/facade.h +++ b/common/facade.h | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "sinkcommon_export.h" | 22 | #include "sink_export.h" |
23 | #include "facadeinterface.h" | 23 | #include "facadeinterface.h" |
24 | 24 | ||
25 | #include <QByteArray> | 25 | #include <QByteArray> |
@@ -44,7 +44,7 @@ namespace Sink { | |||
44 | * Additionally a resource only has to provide a synchronizer plugin to execute the synchronization | 44 | * Additionally a resource only has to provide a synchronizer plugin to execute the synchronization |
45 | */ | 45 | */ |
46 | template <typename DomainType> | 46 | template <typename DomainType> |
47 | class SINKCOMMON_EXPORT GenericFacade: public Sink::StoreFacade<DomainType> | 47 | class SINK_EXPORT GenericFacade: public Sink::StoreFacade<DomainType> |
48 | { | 48 | { |
49 | public: | 49 | public: |
50 | /** | 50 | /** |
diff --git a/common/facadefactory.h b/common/facadefactory.h index 8425229..ef2a3f9 100644 --- a/common/facadefactory.h +++ b/common/facadefactory.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #pragma once | 21 | #pragma once |
22 | 22 | ||
23 | #include "sinkcommon_export.h" | 23 | #include "sink_export.h" |
24 | #include <QByteArray> | 24 | #include <QByteArray> |
25 | #include <QDebug> | 25 | #include <QDebug> |
26 | #include <QMutex> | 26 | #include <QMutex> |
@@ -38,7 +38,7 @@ namespace Sink { | |||
38 | * | 38 | * |
39 | * If we were to provide default implementations for certain capabilities. Here would be the place to do so. | 39 | * If we were to provide default implementations for certain capabilities. Here would be the place to do so. |
40 | */ | 40 | */ |
41 | class SINKCOMMON_EXPORT FacadeFactory { | 41 | class SINK_EXPORT FacadeFactory { |
42 | public: | 42 | public: |
43 | typedef std::function<std::shared_ptr<void>(const QByteArray &)> FactoryFunction; | 43 | typedef std::function<std::shared_ptr<void>(const QByteArray &)> FactoryFunction; |
44 | 44 | ||
diff --git a/common/genericresource.h b/common/genericresource.h index ae505a6..ceb6b61 100644 --- a/common/genericresource.h +++ b/common/genericresource.h | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "sinkcommon_export.h" | 22 | #include "sink_export.h" |
23 | #include <resource.h> | 23 | #include <resource.h> |
24 | #include <messagequeue.h> | 24 | #include <messagequeue.h> |
25 | #include <flatbuffers/flatbuffers.h> | 25 | #include <flatbuffers/flatbuffers.h> |
@@ -37,7 +37,7 @@ class Preprocessor; | |||
37 | /** | 37 | /** |
38 | * Generic Resource implementation. | 38 | * Generic Resource implementation. |
39 | */ | 39 | */ |
40 | class SINKCOMMON_EXPORT GenericResource : public Resource | 40 | class SINK_EXPORT GenericResource : public Resource |
41 | { | 41 | { |
42 | public: | 42 | public: |
43 | GenericResource(const QByteArray &resourceInstanceIdentifier, const QSharedPointer<Pipeline> &pipeline = QSharedPointer<Pipeline>()); | 43 | GenericResource(const QByteArray &resourceInstanceIdentifier, const QSharedPointer<Pipeline> &pipeline = QSharedPointer<Pipeline>()); |
diff --git a/common/index.h b/common/index.h index c280571..1a5b250 100644 --- a/common/index.h +++ b/common/index.h | |||
@@ -1,6 +1,6 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include "sinkcommon_export.h" | 3 | #include "sink_export.h" |
4 | #include <string> | 4 | #include <string> |
5 | #include <functional> | 5 | #include <functional> |
6 | #include <QString> | 6 | #include <QString> |
@@ -9,7 +9,7 @@ | |||
9 | /** | 9 | /** |
10 | * An index for value pairs. | 10 | * An index for value pairs. |
11 | */ | 11 | */ |
12 | class SINKCOMMON_EXPORT Index | 12 | class SINK_EXPORT Index |
13 | { | 13 | { |
14 | public: | 14 | public: |
15 | enum ErrorCodes { | 15 | enum ErrorCodes { |
diff --git a/common/listener.h b/common/listener.h index 1d11cf1..5bcc93e 100644 --- a/common/listener.h +++ b/common/listener.h | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "sinkcommon_export.h" | 22 | #include "sink_export.h" |
23 | #include <QObject> | 23 | #include <QObject> |
24 | 24 | ||
25 | #include <QPointer> | 25 | #include <QPointer> |
@@ -57,7 +57,7 @@ public: | |||
57 | qint64 currentRevision; | 57 | qint64 currentRevision; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | class SINKCOMMON_EXPORT Listener : public QObject | 60 | class SINK_EXPORT Listener : public QObject |
61 | { | 61 | { |
62 | Q_OBJECT | 62 | Q_OBJECT |
63 | 63 | ||
diff --git a/common/log.h b/common/log.h index bf133c4..415c7f7 100644 --- a/common/log.h +++ b/common/log.h | |||
@@ -1,6 +1,6 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include "sinkcommon_export.h" | 3 | #include "sink_export.h" |
4 | #include <QDebug> | 4 | #include <QDebug> |
5 | 5 | ||
6 | namespace Sink { | 6 | namespace Sink { |
@@ -13,16 +13,16 @@ enum DebugLevel { | |||
13 | Error | 13 | Error |
14 | }; | 14 | }; |
15 | 15 | ||
16 | QByteArray SINKCOMMON_EXPORT debugLevelName(DebugLevel debugLevel); | 16 | QByteArray SINK_EXPORT debugLevelName(DebugLevel debugLevel); |
17 | DebugLevel SINKCOMMON_EXPORT debugLevelFromName(const QByteArray &name); | 17 | DebugLevel SINK_EXPORT debugLevelFromName(const QByteArray &name); |
18 | 18 | ||
19 | /** | 19 | /** |
20 | * Sets the debug output level. | 20 | * Sets the debug output level. |
21 | * | 21 | * |
22 | * Everything below is ignored. | 22 | * Everything below is ignored. |
23 | */ | 23 | */ |
24 | void SINKCOMMON_EXPORT setDebugOutputLevel(DebugLevel); | 24 | void SINK_EXPORT setDebugOutputLevel(DebugLevel); |
25 | DebugLevel SINKCOMMON_EXPORT debugOutputLevel(); | 25 | DebugLevel SINK_EXPORT debugOutputLevel(); |
26 | 26 | ||
27 | enum FilterType { | 27 | enum FilterType { |
28 | Area, | 28 | Area, |
@@ -37,8 +37,8 @@ enum FilterType { | |||
37 | * | 37 | * |
38 | * Note: In case of resources the application name is the identifier. | 38 | * Note: In case of resources the application name is the identifier. |
39 | */ | 39 | */ |
40 | void SINKCOMMON_EXPORT setDebugOutputFilter(FilterType, const QByteArrayList &filter); | 40 | void SINK_EXPORT setDebugOutputFilter(FilterType, const QByteArrayList &filter); |
41 | QByteArrayList SINKCOMMON_EXPORT debugOutputFilter(FilterType type); | 41 | QByteArrayList SINK_EXPORT debugOutputFilter(FilterType type); |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * Set the debug output fields. | 44 | * Set the debug output fields. |
@@ -50,18 +50,18 @@ QByteArrayList SINKCOMMON_EXPORT debugOutputFilter(FilterType type); | |||
50 | * | 50 | * |
51 | * These are additional items to the default ones (level, area, message). | 51 | * These are additional items to the default ones (level, area, message). |
52 | */ | 52 | */ |
53 | void SINKCOMMON_EXPORT setDebugOutputFields(const QByteArrayList &filter); | 53 | void SINK_EXPORT setDebugOutputFields(const QByteArrayList &filter); |
54 | QByteArrayList SINKCOMMON_EXPORT debugOutputFields(); | 54 | QByteArrayList SINK_EXPORT debugOutputFields(); |
55 | 55 | ||
56 | QDebug SINKCOMMON_EXPORT debugStream(DebugLevel debugLevel, int line, const char* file, const char* function, const char* debugArea = 0); | 56 | QDebug SINK_EXPORT debugStream(DebugLevel debugLevel, int line, const char* file, const char* function, const char* debugArea = 0); |
57 | 57 | ||
58 | struct SINKCOMMON_EXPORT TraceTime | 58 | struct SINK_EXPORT TraceTime |
59 | { | 59 | { |
60 | TraceTime(int i) : time(i){}; | 60 | TraceTime(int i) : time(i){}; |
61 | const int time; | 61 | const int time; |
62 | }; | 62 | }; |
63 | 63 | ||
64 | inline QDebug SINKCOMMON_EXPORT operator<<(QDebug d, const TraceTime &time) | 64 | inline QDebug SINK_EXPORT operator<<(QDebug d, const TraceTime &time) |
65 | { | 65 | { |
66 | d << time.time << "[ms]"; | 66 | d << time.time << "[ms]"; |
67 | return d; | 67 | return d; |
diff --git a/common/messagequeue.h b/common/messagequeue.h index 112318a..9399055 100644 --- a/common/messagequeue.h +++ b/common/messagequeue.h | |||
@@ -1,6 +1,6 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include "sinkcommon_export.h" | 3 | #include "sink_export.h" |
4 | #include <QObject> | 4 | #include <QObject> |
5 | #include <QByteArrayList> | 5 | #include <QByteArrayList> |
6 | #include <string> | 6 | #include <string> |
@@ -12,7 +12,7 @@ | |||
12 | /** | 12 | /** |
13 | * A persistent FIFO message queue. | 13 | * A persistent FIFO message queue. |
14 | */ | 14 | */ |
15 | class SINKCOMMON_EXPORT MessageQueue : public QObject | 15 | class SINK_EXPORT MessageQueue : public QObject |
16 | { | 16 | { |
17 | Q_OBJECT | 17 | Q_OBJECT |
18 | public: | 18 | public: |
diff --git a/common/notification.h b/common/notification.h index 7c25003..cf69a99 100644 --- a/common/notification.h +++ b/common/notification.h | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "sinkcommon_export.h" | 22 | #include "sink_export.h" |
23 | #include <QString> | 23 | #include <QString> |
24 | 24 | ||
25 | namespace Sink | 25 | namespace Sink |
@@ -28,7 +28,7 @@ namespace Sink | |||
28 | /** | 28 | /** |
29 | * A notification | 29 | * A notification |
30 | */ | 30 | */ |
31 | class SINKCOMMON_EXPORT Notification | 31 | class SINK_EXPORT Notification |
32 | { | 32 | { |
33 | public: | 33 | public: |
34 | QByteArray id; | 34 | QByteArray id; |
diff --git a/common/pipeline.h b/common/pipeline.h index 316b525..096771f 100644 --- a/common/pipeline.h +++ b/common/pipeline.h | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <QSharedDataPointer> | 25 | #include <QSharedDataPointer> |
26 | #include <QObject> | 26 | #include <QObject> |
27 | 27 | ||
28 | #include "sinkcommon_export.h" | 28 | #include "sink_export.h" |
29 | #include <storage.h> | 29 | #include <storage.h> |
30 | 30 | ||
31 | #include <Async/Async> | 31 | #include <Async/Async> |
@@ -37,7 +37,7 @@ namespace Sink | |||
37 | 37 | ||
38 | class Preprocessor; | 38 | class Preprocessor; |
39 | 39 | ||
40 | class SINKCOMMON_EXPORT Pipeline : public QObject | 40 | class SINK_EXPORT Pipeline : public QObject |
41 | { | 41 | { |
42 | Q_OBJECT | 42 | Q_OBJECT |
43 | 43 | ||
@@ -77,7 +77,7 @@ private: | |||
77 | Private * const d; | 77 | Private * const d; |
78 | }; | 78 | }; |
79 | 79 | ||
80 | class SINKCOMMON_EXPORT Preprocessor | 80 | class SINK_EXPORT Preprocessor |
81 | { | 81 | { |
82 | public: | 82 | public: |
83 | Preprocessor(); | 83 | Preprocessor(); |
diff --git a/common/propertymapper.h b/common/propertymapper.h index 3fb3b44..57202ab 100644 --- a/common/propertymapper.h +++ b/common/propertymapper.h | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "sinkcommon_export.h" | 22 | #include "sink_export.h" |
23 | #include <QVariant> | 23 | #include <QVariant> |
24 | #include <QByteArray> | 24 | #include <QByteArray> |
25 | #include <functional> | 25 | #include <functional> |
@@ -29,17 +29,17 @@ | |||
29 | * Defines how to convert qt primitives to flatbuffer ones | 29 | * Defines how to convert qt primitives to flatbuffer ones |
30 | */ | 30 | */ |
31 | template <class T> | 31 | template <class T> |
32 | flatbuffers::uoffset_t SINKCOMMON_EXPORT variantToProperty(const QVariant &, flatbuffers::FlatBufferBuilder &fbb); | 32 | flatbuffers::uoffset_t SINK_EXPORT variantToProperty(const QVariant &, flatbuffers::FlatBufferBuilder &fbb); |
33 | 33 | ||
34 | /** | 34 | /** |
35 | * Defines how to convert flatbuffer primitives to qt ones | 35 | * Defines how to convert flatbuffer primitives to qt ones |
36 | */ | 36 | */ |
37 | template <typename T> | 37 | template <typename T> |
38 | QVariant SINKCOMMON_EXPORT propertyToVariant(const flatbuffers::String *); | 38 | QVariant SINK_EXPORT propertyToVariant(const flatbuffers::String *); |
39 | template <typename T> | 39 | template <typename T> |
40 | QVariant SINKCOMMON_EXPORT propertyToVariant(uint8_t); | 40 | QVariant SINK_EXPORT propertyToVariant(uint8_t); |
41 | template <typename T> | 41 | template <typename T> |
42 | QVariant SINKCOMMON_EXPORT propertyToVariant(const flatbuffers::Vector<uint8_t> *); | 42 | QVariant SINK_EXPORT propertyToVariant(const flatbuffers::Vector<uint8_t> *); |
43 | 43 | ||
44 | 44 | ||
45 | /** | 45 | /** |
diff --git a/common/resource.h b/common/resource.h index 368759c..ab30cb9 100644 --- a/common/resource.h +++ b/common/resource.h | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "sinkcommon_export.h" | 22 | #include "sink_export.h" |
23 | 23 | ||
24 | #include <Async/Async> | 24 | #include <Async/Async> |
25 | #include "notification.h" | 25 | #include "notification.h" |
@@ -31,7 +31,7 @@ class FacadeFactory; | |||
31 | /** | 31 | /** |
32 | * Resource interface | 32 | * Resource interface |
33 | */ | 33 | */ |
34 | class SINKCOMMON_EXPORT Resource : public QObject | 34 | class SINK_EXPORT Resource : public QObject |
35 | { | 35 | { |
36 | Q_OBJECT | 36 | Q_OBJECT |
37 | public: | 37 | public: |
@@ -72,7 +72,7 @@ private: | |||
72 | /** | 72 | /** |
73 | * Factory interface for resource to implement. | 73 | * Factory interface for resource to implement. |
74 | */ | 74 | */ |
75 | class SINKCOMMON_EXPORT ResourceFactory : public QObject | 75 | class SINK_EXPORT ResourceFactory : public QObject |
76 | { | 76 | { |
77 | public: | 77 | public: |
78 | static ResourceFactory *load(const QString &resourceName); | 78 | static ResourceFactory *load(const QString &resourceName); |
diff --git a/common/resourceaccess.h b/common/resourceaccess.h index 3acc886..4c10adb 100644 --- a/common/resourceaccess.h +++ b/common/resourceaccess.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #pragma once | 21 | #pragma once |
22 | 22 | ||
23 | #include "sinkcommon_export.h" | 23 | #include "sink_export.h" |
24 | #include <QLocalSocket> | 24 | #include <QLocalSocket> |
25 | #include <QObject> | 25 | #include <QObject> |
26 | #include <QTimer> | 26 | #include <QTimer> |
@@ -35,7 +35,7 @@ namespace Sink | |||
35 | 35 | ||
36 | struct QueuedCommand; | 36 | struct QueuedCommand; |
37 | 37 | ||
38 | class SINKCOMMON_EXPORT ResourceAccessInterface : public QObject | 38 | class SINK_EXPORT ResourceAccessInterface : public QObject |
39 | { | 39 | { |
40 | Q_OBJECT | 40 | Q_OBJECT |
41 | public: | 41 | public: |
@@ -63,7 +63,7 @@ public Q_SLOTS: | |||
63 | virtual void close() = 0; | 63 | virtual void close() = 0; |
64 | }; | 64 | }; |
65 | 65 | ||
66 | class SINKCOMMON_EXPORT ResourceAccess : public ResourceAccessInterface | 66 | class SINK_EXPORT ResourceAccess : public ResourceAccessInterface |
67 | { | 67 | { |
68 | Q_OBJECT | 68 | Q_OBJECT |
69 | public: | 69 | public: |
diff --git a/common/resourceconfig.h b/common/resourceconfig.h index 0f3d55b..2108caa 100644 --- a/common/resourceconfig.h +++ b/common/resourceconfig.h | |||
@@ -19,13 +19,13 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "sinkcommon_export.h" | 22 | #include "sink_export.h" |
23 | #include <QList> | 23 | #include <QList> |
24 | #include <QByteArray> | 24 | #include <QByteArray> |
25 | #include <QVariant> | 25 | #include <QVariant> |
26 | #include <QMap> | 26 | #include <QMap> |
27 | 27 | ||
28 | class SINKCOMMON_EXPORT ResourceConfig | 28 | class SINK_EXPORT ResourceConfig |
29 | { | 29 | { |
30 | public: | 30 | public: |
31 | static QMap<QByteArray, QByteArray> getResources(); | 31 | static QMap<QByteArray, QByteArray> getResources(); |
diff --git a/common/storage.h b/common/storage.h index 8ec3f1d..ac03947 100644 --- a/common/storage.h +++ b/common/storage.h | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | #pragma once | 22 | #pragma once |
23 | 23 | ||
24 | #include "sinkcommon_export.h" | 24 | #include "sink_export.h" |
25 | #include <string> | 25 | #include <string> |
26 | #include <functional> | 26 | #include <functional> |
27 | #include <QString> | 27 | #include <QString> |
@@ -29,7 +29,7 @@ | |||
29 | namespace Sink | 29 | namespace Sink |
30 | { | 30 | { |
31 | 31 | ||
32 | class SINKCOMMON_EXPORT Storage { | 32 | class SINK_EXPORT Storage { |
33 | public: | 33 | public: |
34 | enum AccessMode { ReadOnly, ReadWrite }; | 34 | enum AccessMode { ReadOnly, ReadWrite }; |
35 | 35 | ||
diff --git a/common/threadboundary.h b/common/threadboundary.h index 193eb56..7bea4ea 100644 --- a/common/threadboundary.h +++ b/common/threadboundary.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #pragma once | 21 | #pragma once |
22 | 22 | ||
23 | #include "sinkcommon_export.h" | 23 | #include "sink_export.h" |
24 | 24 | ||
25 | #include <QObject> | 25 | #include <QObject> |
26 | #include <functional> | 26 | #include <functional> |
@@ -31,7 +31,7 @@ namespace async { | |||
31 | * A helper class to invoke a method in a different thread using the event loop. | 31 | * A helper class to invoke a method in a different thread using the event loop. |
32 | * The ThreadBoundary object must live in the thread where the function should be called. | 32 | * The ThreadBoundary object must live in the thread where the function should be called. |
33 | */ | 33 | */ |
34 | class SINKCOMMON_EXPORT ThreadBoundary : public QObject { | 34 | class SINK_EXPORT ThreadBoundary : public QObject { |
35 | Q_OBJECT | 35 | Q_OBJECT |
36 | public: | 36 | public: |
37 | ThreadBoundary(); | 37 | ThreadBoundary(); |
diff --git a/examples/client/CMakeLists.txt b/examples/client/CMakeLists.txt index 85840c4..ef00368 100644 --- a/examples/client/CMakeLists.txt +++ b/examples/client/CMakeLists.txt | |||
@@ -3,6 +3,6 @@ project(sink_client) | |||
3 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | 3 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) |
4 | 4 | ||
5 | add_executable(${PROJECT_NAME} main.cpp console.cpp) | 5 | add_executable(${PROJECT_NAME} main.cpp console.cpp) |
6 | target_link_libraries(${PROJECT_NAME} sinkcommon) | 6 | target_link_libraries(${PROJECT_NAME} sink) |
7 | qt5_use_modules(${PROJECT_NAME} Widgets Network) | 7 | qt5_use_modules(${PROJECT_NAME} Widgets Network) |
8 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | 8 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) |
diff --git a/examples/dummyresource/CMakeLists.txt b/examples/dummyresource/CMakeLists.txt index 6ffac9a..6400f0c 100644 --- a/examples/dummyresource/CMakeLists.txt +++ b/examples/dummyresource/CMakeLists.txt | |||
@@ -7,6 +7,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | |||
7 | add_library(${PROJECT_NAME} SHARED facade.cpp resourcefactory.cpp domainadaptor.cpp dummystore.cpp) | 7 | add_library(${PROJECT_NAME} SHARED facade.cpp resourcefactory.cpp domainadaptor.cpp dummystore.cpp) |
8 | generate_flatbuffers(${PROJECT_NAME} dummycalendar) | 8 | generate_flatbuffers(${PROJECT_NAME} dummycalendar) |
9 | qt5_use_modules(${PROJECT_NAME} Core Network) | 9 | qt5_use_modules(${PROJECT_NAME} Core Network) |
10 | target_link_libraries(${PROJECT_NAME} sinkcommon) | 10 | target_link_libraries(${PROJECT_NAME} sink) |
11 | 11 | ||
12 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) | 12 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) |
diff --git a/examples/maildirresource/CMakeLists.txt b/examples/maildirresource/CMakeLists.txt index baacd44..efaa266 100644 --- a/examples/maildirresource/CMakeLists.txt +++ b/examples/maildirresource/CMakeLists.txt | |||
@@ -8,7 +8,7 @@ find_package(KF5 COMPONENTS REQUIRED Mime) | |||
8 | add_library(${PROJECT_NAME} SHARED facade.cpp maildirresource.cpp domainadaptor.cpp) | 8 | add_library(${PROJECT_NAME} SHARED facade.cpp maildirresource.cpp domainadaptor.cpp) |
9 | # generate_flatbuffers(${PROJECT_NAME} dummycalendar) | 9 | # generate_flatbuffers(${PROJECT_NAME} dummycalendar) |
10 | qt5_use_modules(${PROJECT_NAME} Core Network) | 10 | qt5_use_modules(${PROJECT_NAME} Core Network) |
11 | target_link_libraries(${PROJECT_NAME} sinkcommon maildir KF5::Mime) | 11 | target_link_libraries(${PROJECT_NAME} sink maildir KF5::Mime) |
12 | 12 | ||
13 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) | 13 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) |
14 | 14 | ||
diff --git a/sinksh/CMakeLists.txt b/sinksh/CMakeLists.txt index 90abaec..3149347 100644 --- a/sinksh/CMakeLists.txt +++ b/sinksh/CMakeLists.txt | |||
@@ -23,6 +23,6 @@ set(sink_cli_SRCS | |||
23 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | 23 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) |
24 | 24 | ||
25 | add_executable(${PROJECT_NAME} ${sink_cli_SRCS}) | 25 | add_executable(${PROJECT_NAME} ${sink_cli_SRCS}) |
26 | target_link_libraries(${PROJECT_NAME} Qt5::Core ${Readline_LIBRARY} sinkcommon) | 26 | target_link_libraries(${PROJECT_NAME} Qt5::Core ${Readline_LIBRARY} sink) |
27 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | 27 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) |
28 | 28 | ||
diff --git a/synchronizer/CMakeLists.txt b/synchronizer/CMakeLists.txt index f2802a4..9e9d8d4 100644 --- a/synchronizer/CMakeLists.txt +++ b/synchronizer/CMakeLists.txt | |||
@@ -7,6 +7,6 @@ set(sinksynchronizer_SRCS | |||
7 | ) | 7 | ) |
8 | 8 | ||
9 | add_executable(${PROJECT_NAME} ${sinksynchronizer_SRCS}) | 9 | add_executable(${PROJECT_NAME} ${sinksynchronizer_SRCS}) |
10 | target_link_libraries(${PROJECT_NAME} sinkcommon KF5::Async) | 10 | target_link_libraries(${PROJECT_NAME} sink KF5::Async) |
11 | qt5_use_modules(${PROJECT_NAME} Widgets Network) | 11 | qt5_use_modules(${PROJECT_NAME} Widgets Network) |
12 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | 12 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) |
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b01a329..b8ee5a5 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -15,7 +15,7 @@ macro(manual_tests) | |||
15 | add_executable(${_testname} ${_testname}.cpp testimplementations.cpp getrssusage.cpp) | 15 | add_executable(${_testname} ${_testname}.cpp testimplementations.cpp getrssusage.cpp) |
16 | generate_flatbuffers(${_testname} calendar) | 16 | generate_flatbuffers(${_testname} calendar) |
17 | qt5_use_modules(${_testname} Core Test Concurrent) | 17 | qt5_use_modules(${_testname} Core Test Concurrent) |
18 | target_link_libraries(${_testname} sinkcommon libhawd) | 18 | target_link_libraries(${_testname} sink libhawd) |
19 | endforeach(_testname) | 19 | endforeach(_testname) |
20 | endmacro(manual_tests) | 20 | endmacro(manual_tests) |
21 | 21 | ||
@@ -25,7 +25,7 @@ macro(auto_tests) | |||
25 | generate_flatbuffers(${_testname} calendar) | 25 | generate_flatbuffers(${_testname} calendar) |
26 | add_test(${_testname} ${_testname}) | 26 | add_test(${_testname} ${_testname}) |
27 | qt5_use_modules(${_testname} Core Test Concurrent) | 27 | qt5_use_modules(${_testname} Core Test Concurrent) |
28 | target_link_libraries(${_testname} sinkcommon libhawd) | 28 | target_link_libraries(${_testname} sink libhawd) |
29 | endforeach(_testname) | 29 | endforeach(_testname) |
30 | endmacro(auto_tests) | 30 | endmacro(auto_tests) |
31 | 31 | ||
diff --git a/tests/hawd/CMakeLists.txt b/tests/hawd/CMakeLists.txt index 268e7a9..d754726 100644 --- a/tests/hawd/CMakeLists.txt +++ b/tests/hawd/CMakeLists.txt | |||
@@ -26,7 +26,7 @@ set(SRCS | |||
26 | add_library(lib${PROJECT_NAME} SHARED ${lib_SRCS}) | 26 | add_library(lib${PROJECT_NAME} SHARED ${lib_SRCS}) |
27 | generate_export_header(lib${PROJECT_NAME} BASE_NAME HAWD EXPORT_FILE_NAME hawd_export.h) | 27 | generate_export_header(lib${PROJECT_NAME} BASE_NAME HAWD EXPORT_FILE_NAME hawd_export.h) |
28 | qt5_use_modules(lib${PROJECT_NAME} Core) | 28 | qt5_use_modules(lib${PROJECT_NAME} Core) |
29 | target_link_libraries(lib${PROJECT_NAME} sinkcommon) | 29 | target_link_libraries(lib${PROJECT_NAME} sink) |
30 | if (LIBGIT2_FOUND) | 30 | if (LIBGIT2_FOUND) |
31 | target_link_libraries(lib${PROJECT_NAME} ${LIBGIT2_LIBRARIES}) | 31 | target_link_libraries(lib${PROJECT_NAME} ${LIBGIT2_LIBRARIES}) |
32 | endif(LIBGIT2_FOUND) | 32 | endif(LIBGIT2_FOUND) |