diff options
Diffstat (limited to 'common/domain')
-rw-r--r-- | common/domain/applicationdomaintype.h | 32 |
1 files changed, 16 insertions, 16 deletions
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 | } |