summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/CMakeLists.txt26
-rw-r--r--common/SinkConfig.cmake.in (renamed from common/SinkCommonConfig.cmake.in)2
-rw-r--r--common/clientapi.h38
-rw-r--r--common/commands.h10
-rw-r--r--common/definitions.h6
-rw-r--r--common/domain/applicationdomaintype.h32
-rw-r--r--common/domainadaptor.h4
-rw-r--r--common/entitybuffer.h4
-rw-r--r--common/facade.h4
-rw-r--r--common/facadefactory.h4
-rw-r--r--common/genericresource.h4
-rw-r--r--common/index.h4
-rw-r--r--common/listener.h4
-rw-r--r--common/log.h24
-rw-r--r--common/messagequeue.h4
-rw-r--r--common/notification.h4
-rw-r--r--common/pipeline.h6
-rw-r--r--common/propertymapper.h10
-rw-r--r--common/resource.h6
-rw-r--r--common/resourceaccess.h6
-rw-r--r--common/resourceconfig.h4
-rw-r--r--common/storage.h4
-rw-r--r--common/threadboundary.h4
-rw-r--r--examples/client/CMakeLists.txt2
-rw-r--r--examples/dummyresource/CMakeLists.txt2
-rw-r--r--examples/maildirresource/CMakeLists.txt2
-rw-r--r--sinksh/CMakeLists.txt2
-rw-r--r--synchronizer/CMakeLists.txt2
-rw-r--r--tests/CMakeLists.txt4
-rw-r--r--tests/hawd/CMakeLists.txt2
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 @@
1include_directories(${CMAKE_CURRENT_BINARY_DIR}) 1include_directories(${CMAKE_CURRENT_BINARY_DIR})
2include_directories(domain) 2include_directories(domain)
3 3
4project(sinkcommon) 4project(sink)
5 5
6ecm_setup_version("0.1" VARIABLE_PREFIX SinkCommon 6ecm_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 ###########
13set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/SinkCommon") 13set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/Sink")
14 14
15ecm_configure_package_config_file( 15ecm_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
21install(FILES 21install(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
28add_definitions("-fvisibility=hidden") 28add_definitions("-fvisibility=hidden")
29 29
30install(EXPORT SinkCommonTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE SinkCommonTargets.cmake) 30install(EXPORT SinkTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE SinkTargets.cmake)
31 31
32set(storage_SRCS storage_lmdb.cpp) 32set(storage_SRCS storage_lmdb.cpp)
33set(storage_LIBS lmdb) 33set(storage_LIBS lmdb)
@@ -87,7 +87,7 @@ generate_flatbuffers(
87 queuedcommand 87 queuedcommand
88) 88)
89 89
90generate_export_header(${PROJECT_NAME} BASE_NAME SinkCommon EXPORT_FILE_NAME sinkcommon_export.h) 90generate_export_header(${PROJECT_NAME} BASE_NAME Sink EXPORT_FILE_NAME sink_export.h)
91SET_TARGET_PROPERTIES(${PROJECT_NAME} 91SET_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}
97qt5_use_modules(${PROJECT_NAME} Network) 97qt5_use_modules(${PROJECT_NAME} Network)
98target_link_libraries(${PROJECT_NAME} ${storage_LIBS} KF5::Async) 98target_link_libraries(${PROJECT_NAME} ${storage_LIBS} KF5::Async)
99install(TARGETS ${PROJECT_NAME} 99install(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
102add_clang_static_analysis(${PROJECT_NAME}) 102add_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
3find_dependency(KF5Mime "@KMIME_LIB_VERSION@") 3find_dependency(KF5Mime "@KMIME_LIB_VERSION@")
4 4
5include("${CMAKE_CURRENT_LIST_DIR}/SinkCommonTargets.cmake") 5include("${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 {
36class ResourceAccess; 36class ResourceAccess;
37class Notification; 37class Notification;
38 38
39class SINKCOMMON_EXPORT Notifier { 39class SINK_EXPORT Notifier {
40public: 40public:
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 */
55namespace Store { 55namespace Store {
56 56
57QString SINKCOMMON_EXPORT storageLocation(); 57QString SINK_EXPORT storageLocation();
58QByteArray SINKCOMMON_EXPORT resourceName(const QByteArray &instanceIdentifier); 58QByteArray SINK_EXPORT resourceName(const QByteArray &instanceIdentifier);
59 59
60enum Roles { 60enum 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 */
69template <class DomainType> 69template <class DomainType>
70QSharedPointer<QAbstractItemModel> SINKCOMMON_EXPORT loadModel(Query query); 70QSharedPointer<QAbstractItemModel> SINK_EXPORT loadModel(Query query);
71 71
72/** 72/**
73 * Create a new entity. 73 * Create a new entity.
74 */ 74 */
75template <class DomainType> 75template <class DomainType>
76KAsync::Job<void> SINKCOMMON_EXPORT create(const DomainType &domainObject); 76KAsync::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 */
83template <class DomainType> 83template <class DomainType>
84KAsync::Job<void> SINKCOMMON_EXPORT modify(const DomainType &domainObject); 84KAsync::Job<void> SINK_EXPORT modify(const DomainType &domainObject);
85 85
86/** 86/**
87 * Remove an entity. 87 * Remove an entity.
88 */ 88 */
89template <class DomainType> 89template <class DomainType>
90KAsync::Job<void> SINKCOMMON_EXPORT remove(const DomainType &domainObject); 90KAsync::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 */
95KAsync::Job<void> SINKCOMMON_EXPORT synchronize(const Sink::Query &query); 95KAsync::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 */
100void SINKCOMMON_EXPORT removeFromDisk(const QByteArray &resourceIdentifier); 100void 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 */
107KAsync::Job<void> SINKCOMMON_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier); 107KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier);
108 108
109template <class DomainType> 109template <class DomainType>
110KAsync::Job<DomainType> SINKCOMMON_EXPORT fetchOne(const Sink::Query &query); 110KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query);
111 111
112template <class DomainType> 112template <class DomainType>
113KAsync::Job<QList<typename DomainType::Ptr> > SINKCOMMON_EXPORT fetchAll(const Sink::Query &query); 113KAsync::Job<QList<typename DomainType::Ptr> > SINK_EXPORT fetchAll(const Sink::Query &query);
114 114
115template <class DomainType> 115template <class DomainType>
116KAsync::Job<QList<typename DomainType::Ptr> > SINKCOMMON_EXPORT fetch(const Sink::Query &query, int minimumAmount = 0); 116KAsync::Job<QList<typename DomainType::Ptr> > SINK_EXPORT fetch(const Sink::Query &query, int minimumAmount = 0);
117 117
118}; 118};
119 119
120namespace Resources { 120namespace Resources {
121 121
122template <class DomainType> 122template <class DomainType>
123KAsync::Job<void> SINKCOMMON_EXPORT inspect(const Inspection &inspectionCommand); 123KAsync::Job<void> SINK_EXPORT inspect(const Inspection &inspectionCommand);
124 124
125/** 125/**
126 * Shutdown resource. 126 * Shutdown resource.
127 */ 127 */
128KAsync::Job<void> SINKCOMMON_EXPORT shutdown(const QByteArray &resourceIdentifier); 128KAsync::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 */
137KAsync::Job<void> SINKCOMMON_EXPORT start(const QByteArray &resourceIdentifier); 137KAsync::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 */
142KAsync::Job<void> SINKCOMMON_EXPORT flushMessageQueue(const QByteArrayList &resourceIdentifier); 142KAsync::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 */
147KAsync::Job<void> SINKCOMMON_EXPORT flushReplayQueue(const QByteArrayList &resourceIdentifier); 147KAsync::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
56QByteArray name(int commandId); 56QByteArray name(int commandId);
57 57
58int SINKCOMMON_EXPORT headerSize(); 58int SINK_EXPORT headerSize();
59void SINKCOMMON_EXPORT write(QIODevice *device, int messageId, int commandId); 59void SINK_EXPORT write(QIODevice *device, int messageId, int commandId);
60void SINKCOMMON_EXPORT write(QIODevice *device, int messageId, int commandId, const char *buffer, uint size); 60void SINK_EXPORT write(QIODevice *device, int messageId, int commandId, const char *buffer, uint size);
61void SINKCOMMON_EXPORT write(QIODevice *device, int messageId, int commandId, flatbuffers::FlatBufferBuilder &fbb); 61void 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
27namespace Sink { 27namespace 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 */
40class SINKCOMMON_EXPORT ApplicationDomainType { 40class SINK_EXPORT ApplicationDomainType {
41public: 41public:
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
99struct SINKCOMMON_EXPORT Entity : public ApplicationDomainType { 99struct 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
105struct SINKCOMMON_EXPORT Event : public Entity { 105struct 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
111struct SINKCOMMON_EXPORT Todo : public Entity { 111struct 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
117struct SINKCOMMON_EXPORT Calendar : public Entity { 117struct 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
123struct SINKCOMMON_EXPORT Mail : public Entity { 123struct 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
129struct SINKCOMMON_EXPORT Folder : public Entity { 129struct 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 */
141struct SINKCOMMON_EXPORT SinkResource : public ApplicationDomainType { 141struct 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 */
152template<class DomainType> 152template<class DomainType>
153QByteArray SINKCOMMON_EXPORT getTypeName(); 153QByteArray SINK_EXPORT getTypeName();
154 154
155template<> 155template<>
156QByteArray SINKCOMMON_EXPORT getTypeName<Event>(); 156QByteArray SINK_EXPORT getTypeName<Event>();
157 157
158template<> 158template<>
159QByteArray SINKCOMMON_EXPORT getTypeName<Todo>(); 159QByteArray SINK_EXPORT getTypeName<Todo>();
160 160
161template<> 161template<>
162QByteArray SINKCOMMON_EXPORT getTypeName<SinkResource>(); 162QByteArray SINK_EXPORT getTypeName<SinkResource>();
163 163
164template<> 164template<>
165QByteArray SINKCOMMON_EXPORT getTypeName<Mail>(); 165QByteArray SINK_EXPORT getTypeName<Mail>();
166 166
167template<> 167template<>
168QByteArray SINKCOMMON_EXPORT getTypeName<Folder>(); 168QByteArray 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 */
176template<typename DomainType> 176template<typename DomainType>
177class SINKCOMMON_EXPORT TypeImplementation; 177class 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 */
124template<typename DomainType, typename ResourceBuffer, typename ResourceBuilder> 124template<typename DomainType, typename ResourceBuffer, typename ResourceBuilder>
125class SINKCOMMON_EXPORT DomainTypeAdaptorFactory : public DomainTypeAdaptorFactoryInterface 125class 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 @@
8namespace Sink { 8namespace Sink {
9struct Entity; 9struct Entity;
10 10
11class SINKCOMMON_EXPORT EntityBuffer { 11class SINK_EXPORT EntityBuffer {
12public: 12public:
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 */
46template <typename DomainType> 46template <typename DomainType>
47class SINKCOMMON_EXPORT GenericFacade: public Sink::StoreFacade<DomainType> 47class SINK_EXPORT GenericFacade: public Sink::StoreFacade<DomainType>
48{ 48{
49public: 49public:
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 */
41class SINKCOMMON_EXPORT FacadeFactory { 41class SINK_EXPORT FacadeFactory {
42public: 42public:
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 */
40class SINKCOMMON_EXPORT GenericResource : public Resource 40class SINK_EXPORT GenericResource : public Resource
41{ 41{
42public: 42public:
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 */
12class SINKCOMMON_EXPORT Index 12class SINK_EXPORT Index
13{ 13{
14public: 14public:
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
60class SINKCOMMON_EXPORT Listener : public QObject 60class 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
6namespace Sink { 6namespace Sink {
@@ -13,16 +13,16 @@ enum DebugLevel {
13 Error 13 Error
14}; 14};
15 15
16QByteArray SINKCOMMON_EXPORT debugLevelName(DebugLevel debugLevel); 16QByteArray SINK_EXPORT debugLevelName(DebugLevel debugLevel);
17DebugLevel SINKCOMMON_EXPORT debugLevelFromName(const QByteArray &name); 17DebugLevel 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 */
24void SINKCOMMON_EXPORT setDebugOutputLevel(DebugLevel); 24void SINK_EXPORT setDebugOutputLevel(DebugLevel);
25DebugLevel SINKCOMMON_EXPORT debugOutputLevel(); 25DebugLevel SINK_EXPORT debugOutputLevel();
26 26
27enum FilterType { 27enum 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 */
40void SINKCOMMON_EXPORT setDebugOutputFilter(FilterType, const QByteArrayList &filter); 40void SINK_EXPORT setDebugOutputFilter(FilterType, const QByteArrayList &filter);
41QByteArrayList SINKCOMMON_EXPORT debugOutputFilter(FilterType type); 41QByteArrayList 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 */
53void SINKCOMMON_EXPORT setDebugOutputFields(const QByteArrayList &filter); 53void SINK_EXPORT setDebugOutputFields(const QByteArrayList &filter);
54QByteArrayList SINKCOMMON_EXPORT debugOutputFields(); 54QByteArrayList SINK_EXPORT debugOutputFields();
55 55
56QDebug SINKCOMMON_EXPORT debugStream(DebugLevel debugLevel, int line, const char* file, const char* function, const char* debugArea = 0); 56QDebug SINK_EXPORT debugStream(DebugLevel debugLevel, int line, const char* file, const char* function, const char* debugArea = 0);
57 57
58struct SINKCOMMON_EXPORT TraceTime 58struct 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
64inline QDebug SINKCOMMON_EXPORT operator<<(QDebug d, const TraceTime &time) 64inline 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 */
15class SINKCOMMON_EXPORT MessageQueue : public QObject 15class SINK_EXPORT MessageQueue : public QObject
16{ 16{
17 Q_OBJECT 17 Q_OBJECT
18public: 18public:
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
25namespace Sink 25namespace Sink
@@ -28,7 +28,7 @@ namespace Sink
28/** 28/**
29 * A notification 29 * A notification
30 */ 30 */
31class SINKCOMMON_EXPORT Notification 31class SINK_EXPORT Notification
32{ 32{
33public: 33public:
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
38class Preprocessor; 38class Preprocessor;
39 39
40class SINKCOMMON_EXPORT Pipeline : public QObject 40class 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
80class SINKCOMMON_EXPORT Preprocessor 80class SINK_EXPORT Preprocessor
81{ 81{
82public: 82public:
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 */
31template <class T> 31template <class T>
32flatbuffers::uoffset_t SINKCOMMON_EXPORT variantToProperty(const QVariant &, flatbuffers::FlatBufferBuilder &fbb); 32flatbuffers::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 */
37template <typename T> 37template <typename T>
38QVariant SINKCOMMON_EXPORT propertyToVariant(const flatbuffers::String *); 38QVariant SINK_EXPORT propertyToVariant(const flatbuffers::String *);
39template <typename T> 39template <typename T>
40QVariant SINKCOMMON_EXPORT propertyToVariant(uint8_t); 40QVariant SINK_EXPORT propertyToVariant(uint8_t);
41template <typename T> 41template <typename T>
42QVariant SINKCOMMON_EXPORT propertyToVariant(const flatbuffers::Vector<uint8_t> *); 42QVariant 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 */
34class SINKCOMMON_EXPORT Resource : public QObject 34class SINK_EXPORT Resource : public QObject
35{ 35{
36 Q_OBJECT 36 Q_OBJECT
37public: 37public:
@@ -72,7 +72,7 @@ private:
72/** 72/**
73 * Factory interface for resource to implement. 73 * Factory interface for resource to implement.
74 */ 74 */
75class SINKCOMMON_EXPORT ResourceFactory : public QObject 75class SINK_EXPORT ResourceFactory : public QObject
76{ 76{
77public: 77public:
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
36struct QueuedCommand; 36struct QueuedCommand;
37 37
38class SINKCOMMON_EXPORT ResourceAccessInterface : public QObject 38class SINK_EXPORT ResourceAccessInterface : public QObject
39{ 39{
40 Q_OBJECT 40 Q_OBJECT
41public: 41public:
@@ -63,7 +63,7 @@ public Q_SLOTS:
63 virtual void close() = 0; 63 virtual void close() = 0;
64}; 64};
65 65
66class SINKCOMMON_EXPORT ResourceAccess : public ResourceAccessInterface 66class SINK_EXPORT ResourceAccess : public ResourceAccessInterface
67{ 67{
68 Q_OBJECT 68 Q_OBJECT
69public: 69public:
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
28class SINKCOMMON_EXPORT ResourceConfig 28class SINK_EXPORT ResourceConfig
29{ 29{
30public: 30public:
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 @@
29namespace Sink 29namespace Sink
30{ 30{
31 31
32class SINKCOMMON_EXPORT Storage { 32class SINK_EXPORT Storage {
33public: 33public:
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*/
34class SINKCOMMON_EXPORT ThreadBoundary : public QObject { 34class SINK_EXPORT ThreadBoundary : public QObject {
35 Q_OBJECT 35 Q_OBJECT
36public: 36public:
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)
3include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) 3include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
4 4
5add_executable(${PROJECT_NAME} main.cpp console.cpp) 5add_executable(${PROJECT_NAME} main.cpp console.cpp)
6target_link_libraries(${PROJECT_NAME} sinkcommon) 6target_link_libraries(${PROJECT_NAME} sink)
7qt5_use_modules(${PROJECT_NAME} Widgets Network) 7qt5_use_modules(${PROJECT_NAME} Widgets Network)
8install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 8install(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})
7add_library(${PROJECT_NAME} SHARED facade.cpp resourcefactory.cpp domainadaptor.cpp dummystore.cpp) 7add_library(${PROJECT_NAME} SHARED facade.cpp resourcefactory.cpp domainadaptor.cpp dummystore.cpp)
8generate_flatbuffers(${PROJECT_NAME} dummycalendar) 8generate_flatbuffers(${PROJECT_NAME} dummycalendar)
9qt5_use_modules(${PROJECT_NAME} Core Network) 9qt5_use_modules(${PROJECT_NAME} Core Network)
10target_link_libraries(${PROJECT_NAME} sinkcommon) 10target_link_libraries(${PROJECT_NAME} sink)
11 11
12install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) 12install(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)
8add_library(${PROJECT_NAME} SHARED facade.cpp maildirresource.cpp domainadaptor.cpp) 8add_library(${PROJECT_NAME} SHARED facade.cpp maildirresource.cpp domainadaptor.cpp)
9# generate_flatbuffers(${PROJECT_NAME} dummycalendar) 9# generate_flatbuffers(${PROJECT_NAME} dummycalendar)
10qt5_use_modules(${PROJECT_NAME} Core Network) 10qt5_use_modules(${PROJECT_NAME} Core Network)
11target_link_libraries(${PROJECT_NAME} sinkcommon maildir KF5::Mime) 11target_link_libraries(${PROJECT_NAME} sink maildir KF5::Mime)
12 12
13install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) 13install(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
23include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) 23include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
24 24
25add_executable(${PROJECT_NAME} ${sink_cli_SRCS}) 25add_executable(${PROJECT_NAME} ${sink_cli_SRCS})
26target_link_libraries(${PROJECT_NAME} Qt5::Core ${Readline_LIBRARY} sinkcommon) 26target_link_libraries(${PROJECT_NAME} Qt5::Core ${Readline_LIBRARY} sink)
27install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 27install(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
9add_executable(${PROJECT_NAME} ${sinksynchronizer_SRCS}) 9add_executable(${PROJECT_NAME} ${sinksynchronizer_SRCS})
10target_link_libraries(${PROJECT_NAME} sinkcommon KF5::Async) 10target_link_libraries(${PROJECT_NAME} sink KF5::Async)
11qt5_use_modules(${PROJECT_NAME} Widgets Network) 11qt5_use_modules(${PROJECT_NAME} Widgets Network)
12install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 12install(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)
20endmacro(manual_tests) 20endmacro(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)
30endmacro(auto_tests) 30endmacro(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
26add_library(lib${PROJECT_NAME} SHARED ${lib_SRCS}) 26add_library(lib${PROJECT_NAME} SHARED ${lib_SRCS})
27generate_export_header(lib${PROJECT_NAME} BASE_NAME HAWD EXPORT_FILE_NAME hawd_export.h) 27generate_export_header(lib${PROJECT_NAME} BASE_NAME HAWD EXPORT_FILE_NAME hawd_export.h)
28qt5_use_modules(lib${PROJECT_NAME} Core) 28qt5_use_modules(lib${PROJECT_NAME} Core)
29target_link_libraries(lib${PROJECT_NAME} sinkcommon) 29target_link_libraries(lib${PROJECT_NAME} sink)
30if (LIBGIT2_FOUND) 30if (LIBGIT2_FOUND)
31 target_link_libraries(lib${PROJECT_NAME} ${LIBGIT2_LIBRARIES}) 31 target_link_libraries(lib${PROJECT_NAME} ${LIBGIT2_LIBRARIES})
32endif(LIBGIT2_FOUND) 32endif(LIBGIT2_FOUND)