diff options
-rw-r--r-- | common/domain/applicationdomaintype.h | 8 | ||||
-rw-r--r-- | common/domain/typeimplementations.h | 13 | ||||
-rw-r--r-- | common/domainadaptor.h | 3 | ||||
-rw-r--r-- | common/domaintypeadaptorfactoryinterface.h | 3 | ||||
-rw-r--r-- | common/query.h | 4 | ||||
-rw-r--r-- | common/storage.h | 4 |
6 files changed, 18 insertions, 17 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 1a34443..c931e91 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -82,7 +82,7 @@ | |||
82 | namespace Sink { | 82 | namespace Sink { |
83 | namespace ApplicationDomain { | 83 | namespace ApplicationDomain { |
84 | 84 | ||
85 | enum SINK_EXPORT ErrorCode { | 85 | enum ErrorCode { |
86 | NoError = 0, | 86 | NoError = 0, |
87 | UnknownError, | 87 | UnknownError, |
88 | NoServerError, | 88 | NoServerError, |
@@ -95,11 +95,11 @@ enum SINK_EXPORT ErrorCode { | |||
95 | ResourceCrashedError | 95 | ResourceCrashedError |
96 | }; | 96 | }; |
97 | 97 | ||
98 | enum SINK_EXPORT SuccessCode { | 98 | enum SuccessCode { |
99 | TransmissionSuccess | 99 | TransmissionSuccess |
100 | }; | 100 | }; |
101 | 101 | ||
102 | enum SINK_EXPORT SyncStatus { | 102 | enum SyncStatus { |
103 | NoSyncStatus, | 103 | NoSyncStatus, |
104 | SyncInProgress, | 104 | SyncInProgress, |
105 | SyncError, | 105 | SyncError, |
@@ -117,7 +117,7 @@ enum SINK_EXPORT SyncStatus { | |||
117 | * * If an error occurred that keeps the resource from operating (so non transient), the resource enters the error state. | 117 | * * If an error occurred that keeps the resource from operating (so non transient), the resource enters the error state. |
118 | * * If a long running operation is started the resource goes to the busy state (and return to the previous state after that). | 118 | * * If a long running operation is started the resource goes to the busy state (and return to the previous state after that). |
119 | */ | 119 | */ |
120 | enum SINK_EXPORT Status { | 120 | enum Status { |
121 | NoStatus, | 121 | NoStatus, |
122 | OfflineStatus, | 122 | OfflineStatus, |
123 | ConnectedStatus, | 123 | ConnectedStatus, |
diff --git a/common/domain/typeimplementations.h b/common/domain/typeimplementations.h index 7a8a602..672e83a 100644 --- a/common/domain/typeimplementations.h +++ b/common/domain/typeimplementations.h | |||
@@ -18,6 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | #pragma once | 19 | #pragma once |
20 | 20 | ||
21 | #include "sink_export.h" | ||
21 | #include "applicationdomaintype.h" | 22 | #include "applicationdomaintype.h" |
22 | 23 | ||
23 | #include "mail_generated.h" | 24 | #include "mail_generated.h" |
@@ -41,7 +42,7 @@ namespace Sink { | |||
41 | namespace ApplicationDomain { | 42 | namespace ApplicationDomain { |
42 | 43 | ||
43 | template<> | 44 | template<> |
44 | class TypeImplementation<Sink::ApplicationDomain::Mail> { | 45 | class SINK_EXPORT TypeImplementation<Sink::ApplicationDomain::Mail> { |
45 | public: | 46 | public: |
46 | typedef Sink::ApplicationDomain::Buffer::Mail Buffer; | 47 | typedef Sink::ApplicationDomain::Buffer::Mail Buffer; |
47 | typedef Sink::ApplicationDomain::Buffer::MailBuilder BufferBuilder; | 48 | typedef Sink::ApplicationDomain::Buffer::MailBuilder BufferBuilder; |
@@ -52,7 +53,7 @@ public: | |||
52 | }; | 53 | }; |
53 | 54 | ||
54 | template<> | 55 | template<> |
55 | class TypeImplementation<Sink::ApplicationDomain::Folder> { | 56 | class SINK_EXPORT TypeImplementation<Sink::ApplicationDomain::Folder> { |
56 | public: | 57 | public: |
57 | typedef Sink::ApplicationDomain::Buffer::Folder Buffer; | 58 | typedef Sink::ApplicationDomain::Buffer::Folder Buffer; |
58 | typedef Sink::ApplicationDomain::Buffer::FolderBuilder BufferBuilder; | 59 | typedef Sink::ApplicationDomain::Buffer::FolderBuilder BufferBuilder; |
@@ -63,7 +64,7 @@ public: | |||
63 | }; | 64 | }; |
64 | 65 | ||
65 | template<> | 66 | template<> |
66 | class TypeImplementation<Sink::ApplicationDomain::Contact> { | 67 | class SINK_EXPORT TypeImplementation<Sink::ApplicationDomain::Contact> { |
67 | public: | 68 | public: |
68 | typedef Sink::ApplicationDomain::Buffer::Contact Buffer; | 69 | typedef Sink::ApplicationDomain::Buffer::Contact Buffer; |
69 | typedef Sink::ApplicationDomain::Buffer::ContactBuilder BufferBuilder; | 70 | typedef Sink::ApplicationDomain::Buffer::ContactBuilder BufferBuilder; |
@@ -74,7 +75,7 @@ public: | |||
74 | }; | 75 | }; |
75 | 76 | ||
76 | template<> | 77 | template<> |
77 | class TypeImplementation<Sink::ApplicationDomain::Addressbook> { | 78 | class SINK_EXPORT TypeImplementation<Sink::ApplicationDomain::Addressbook> { |
78 | public: | 79 | public: |
79 | typedef Sink::ApplicationDomain::Buffer::Addressbook Buffer; | 80 | typedef Sink::ApplicationDomain::Buffer::Addressbook Buffer; |
80 | typedef Sink::ApplicationDomain::Buffer::AddressbookBuilder BufferBuilder; | 81 | typedef Sink::ApplicationDomain::Buffer::AddressbookBuilder BufferBuilder; |
@@ -85,7 +86,7 @@ public: | |||
85 | }; | 86 | }; |
86 | 87 | ||
87 | template<> | 88 | template<> |
88 | class TypeImplementation<Sink::ApplicationDomain::Event> { | 89 | class SINK_EXPORT TypeImplementation<Sink::ApplicationDomain::Event> { |
89 | public: | 90 | public: |
90 | typedef Sink::ApplicationDomain::Buffer::Event Buffer; | 91 | typedef Sink::ApplicationDomain::Buffer::Event Buffer; |
91 | typedef Sink::ApplicationDomain::Buffer::EventBuilder BufferBuilder; | 92 | typedef Sink::ApplicationDomain::Buffer::EventBuilder BufferBuilder; |
@@ -96,7 +97,7 @@ public: | |||
96 | }; | 97 | }; |
97 | 98 | ||
98 | template<> | 99 | template<> |
99 | class TypeImplementation<Sink::ApplicationDomain::Calendar> { | 100 | class SINK_EXPORT TypeImplementation<Sink::ApplicationDomain::Calendar> { |
100 | public: | 101 | public: |
101 | typedef Sink::ApplicationDomain::Buffer::Calendar Buffer; | 102 | typedef Sink::ApplicationDomain::Buffer::Calendar Buffer; |
102 | typedef Sink::ApplicationDomain::Buffer::CalendarBuilder BufferBuilder; | 103 | typedef Sink::ApplicationDomain::Buffer::CalendarBuilder BufferBuilder; |
diff --git a/common/domainadaptor.h b/common/domainadaptor.h index bcfc18d..a5a0ade 100644 --- a/common/domainadaptor.h +++ b/common/domainadaptor.h | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "sink_export.h" | ||
23 | #include <QVariant> | 22 | #include <QVariant> |
24 | #include <QByteArray> | 23 | #include <QByteArray> |
25 | #include <functional> | 24 | #include <functional> |
@@ -161,7 +160,7 @@ public: | |||
161 | * This is required by the facade the read the value, and by the pipeline preprocessors to access the domain values in a generic way. | 160 | * This is required by the facade the read the value, and by the pipeline preprocessors to access the domain values in a generic way. |
162 | */ | 161 | */ |
163 | template <typename DomainType> | 162 | template <typename DomainType> |
164 | class SINK_EXPORT DomainTypeAdaptorFactory : public DomainTypeAdaptorFactoryInterface | 163 | class DomainTypeAdaptorFactory : public DomainTypeAdaptorFactoryInterface |
165 | { | 164 | { |
166 | typedef typename Sink::ApplicationDomain::TypeImplementation<DomainType>::Buffer LocalBuffer; | 165 | typedef typename Sink::ApplicationDomain::TypeImplementation<DomainType>::Buffer LocalBuffer; |
167 | typedef typename Sink::ApplicationDomain::TypeImplementation<DomainType>::BufferBuilder LocalBuilder; | 166 | typedef typename Sink::ApplicationDomain::TypeImplementation<DomainType>::BufferBuilder LocalBuilder; |
diff --git a/common/domaintypeadaptorfactoryinterface.h b/common/domaintypeadaptorfactoryinterface.h index ef42628..ae293f0 100644 --- a/common/domaintypeadaptorfactoryinterface.h +++ b/common/domaintypeadaptorfactoryinterface.h | |||
@@ -18,6 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | #pragma once | 19 | #pragma once |
20 | 20 | ||
21 | #include "sink_export.h" | ||
21 | #include <QSharedPointer> | 22 | #include <QSharedPointer> |
22 | 23 | ||
23 | class TypeIndex; | 24 | class TypeIndex; |
@@ -33,7 +34,7 @@ namespace flatbuffers { | |||
33 | class FlatBufferBuilder; | 34 | class FlatBufferBuilder; |
34 | } | 35 | } |
35 | 36 | ||
36 | class DomainTypeAdaptorFactoryInterface | 37 | class SINK_EXPORT DomainTypeAdaptorFactoryInterface |
37 | { | 38 | { |
38 | public: | 39 | public: |
39 | typedef QSharedPointer<DomainTypeAdaptorFactoryInterface> Ptr; | 40 | typedef QSharedPointer<DomainTypeAdaptorFactoryInterface> Ptr; |
diff --git a/common/query.h b/common/query.h index 9030d7c..c33ba2c 100644 --- a/common/query.h +++ b/common/query.h | |||
@@ -30,7 +30,7 @@ namespace Sink { | |||
30 | class SINK_EXPORT QueryBase | 30 | class SINK_EXPORT QueryBase |
31 | { | 31 | { |
32 | public: | 32 | public: |
33 | struct Comparator { | 33 | struct SINK_EXPORT Comparator { |
34 | enum Comparators { | 34 | enum Comparators { |
35 | Invalid, | 35 | Invalid, |
36 | Equals, | 36 | Equals, |
@@ -49,7 +49,7 @@ public: | |||
49 | Comparators comparator; | 49 | Comparators comparator; |
50 | }; | 50 | }; |
51 | 51 | ||
52 | class Filter { | 52 | class SINK_EXPORT Filter { |
53 | public: | 53 | public: |
54 | QByteArrayList ids; | 54 | QByteArrayList ids; |
55 | QHash<QByteArray, Comparator> propertyFilter; | 55 | QHash<QByteArray, Comparator> propertyFilter; |
diff --git a/common/storage.h b/common/storage.h index 2451040..bb8c1fa 100644 --- a/common/storage.h +++ b/common/storage.h | |||
@@ -68,7 +68,7 @@ public: | |||
68 | }; | 68 | }; |
69 | 69 | ||
70 | class Transaction; | 70 | class Transaction; |
71 | class NamedDatabase | 71 | class SINK_EXPORT NamedDatabase |
72 | { | 72 | { |
73 | public: | 73 | public: |
74 | NamedDatabase(); | 74 | NamedDatabase(); |
@@ -142,7 +142,7 @@ public: | |||
142 | Private *d; | 142 | Private *d; |
143 | }; | 143 | }; |
144 | 144 | ||
145 | class Transaction | 145 | class SINK_EXPORT Transaction |
146 | { | 146 | { |
147 | public: | 147 | public: |
148 | Transaction(); | 148 | Transaction(); |