diff options
Diffstat (limited to 'common/domain')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 30 | ||||
-rw-r--r-- | common/domain/applicationdomaintype.h | 7 |
2 files changed, 37 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index b0433be..fccf082 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -100,6 +100,36 @@ QByteArray ApplicationDomainType::identifier() const | |||
100 | return mIdentifier; | 100 | return mIdentifier; |
101 | } | 101 | } |
102 | 102 | ||
103 | Entity::~Entity() | ||
104 | { | ||
105 | |||
106 | } | ||
107 | |||
108 | Event::~Event() | ||
109 | { | ||
110 | |||
111 | } | ||
112 | |||
113 | Todo::~Todo() | ||
114 | { | ||
115 | |||
116 | } | ||
117 | |||
118 | Mail::~Mail() | ||
119 | { | ||
120 | |||
121 | } | ||
122 | |||
123 | Folder::~Folder() | ||
124 | { | ||
125 | |||
126 | } | ||
127 | |||
128 | SinkResource::~SinkResource() | ||
129 | { | ||
130 | |||
131 | } | ||
132 | |||
103 | template<> | 133 | template<> |
104 | QByteArray getTypeName<Event>() | 134 | QByteArray getTypeName<Event>() |
105 | { | 135 | { |
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 63f030c..88f094a 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -85,31 +85,37 @@ inline bool operator==(const ApplicationDomainType& lhs, const ApplicationDomain | |||
85 | struct Entity : public ApplicationDomainType { | 85 | struct Entity : public ApplicationDomainType { |
86 | typedef QSharedPointer<Entity> Ptr; | 86 | typedef QSharedPointer<Entity> Ptr; |
87 | using ApplicationDomainType::ApplicationDomainType; | 87 | using ApplicationDomainType::ApplicationDomainType; |
88 | virtual ~Entity(); | ||
88 | }; | 89 | }; |
89 | 90 | ||
90 | struct Event : public Entity { | 91 | struct Event : public Entity { |
91 | typedef QSharedPointer<Event> Ptr; | 92 | typedef QSharedPointer<Event> Ptr; |
92 | using Entity::Entity; | 93 | using Entity::Entity; |
94 | virtual ~Event(); | ||
93 | }; | 95 | }; |
94 | 96 | ||
95 | struct Todo : public Entity { | 97 | struct Todo : public Entity { |
96 | typedef QSharedPointer<Todo> Ptr; | 98 | typedef QSharedPointer<Todo> Ptr; |
97 | using Entity::Entity; | 99 | using Entity::Entity; |
100 | virtual ~Todo(); | ||
98 | }; | 101 | }; |
99 | 102 | ||
100 | struct Calendar : public Entity { | 103 | struct Calendar : public Entity { |
101 | typedef QSharedPointer<Calendar> Ptr; | 104 | typedef QSharedPointer<Calendar> Ptr; |
102 | using Entity::Entity; | 105 | using Entity::Entity; |
106 | virtual ~Calendar(); | ||
103 | }; | 107 | }; |
104 | 108 | ||
105 | struct Mail : public Entity { | 109 | struct Mail : public Entity { |
106 | typedef QSharedPointer<Mail> Ptr; | 110 | typedef QSharedPointer<Mail> Ptr; |
107 | using Entity::Entity; | 111 | using Entity::Entity; |
112 | virtual ~Mail(); | ||
108 | }; | 113 | }; |
109 | 114 | ||
110 | struct Folder : public Entity { | 115 | struct Folder : public Entity { |
111 | typedef QSharedPointer<Folder> Ptr; | 116 | typedef QSharedPointer<Folder> Ptr; |
112 | using Entity::Entity; | 117 | using Entity::Entity; |
118 | virtual ~Folder(); | ||
113 | }; | 119 | }; |
114 | 120 | ||
115 | /** | 121 | /** |
@@ -121,6 +127,7 @@ struct Folder : public Entity { | |||
121 | struct SinkResource : public ApplicationDomainType { | 127 | struct SinkResource : public ApplicationDomainType { |
122 | typedef QSharedPointer<SinkResource> Ptr; | 128 | typedef QSharedPointer<SinkResource> Ptr; |
123 | using ApplicationDomainType::ApplicationDomainType; | 129 | using ApplicationDomainType::ApplicationDomainType; |
130 | virtual ~SinkResource(); | ||
124 | }; | 131 | }; |
125 | 132 | ||
126 | /** | 133 | /** |