summaryrefslogtreecommitdiffstats
path: root/common/domain
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain')
-rw-r--r--common/domain/applicationdomaintype.h32
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 */
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}