summaryrefslogtreecommitdiffstats
path: root/common/domain
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain')
-rw-r--r--common/domain/applicationdomaintype.cpp30
-rw-r--r--common/domain/applicationdomaintype.h7
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
103Entity::~Entity()
104{
105
106}
107
108Event::~Event()
109{
110
111}
112
113Todo::~Todo()
114{
115
116}
117
118Mail::~Mail()
119{
120
121}
122
123Folder::~Folder()
124{
125
126}
127
128SinkResource::~SinkResource()
129{
130
131}
132
103template<> 133template<>
104QByteArray getTypeName<Event>() 134QByteArray 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
85struct Entity : public ApplicationDomainType { 85struct 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
90struct Event : public Entity { 91struct 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
95struct Todo : public Entity { 97struct 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
100struct Calendar : public Entity { 103struct 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
105struct Mail : public Entity { 109struct 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
110struct Folder : public Entity { 115struct 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 {
121struct SinkResource : public ApplicationDomainType { 127struct 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/**