summaryrefslogtreecommitdiffstats
path: root/common/domain/applicationdomaintype.cpp
diff options
context:
space:
mode:
authorSandro Knauß <sknauss@kde.org>2017-01-11 13:06:55 +0100
committerSandro Knauß <sknauss@kde.org>2017-01-30 10:58:20 +0100
commitbb624c5ec2ab2e13dedcba67fd60e3d2f03216d7 (patch)
treeee27923e8bf1fa51a75599beaff7e005368180e0 /common/domain/applicationdomaintype.cpp
parent17d8b00ae32e2b1522c5dce6719566e4fbe3357e (diff)
downloadsink-bb624c5ec2ab2e13dedcba67fd60e3d2f03216d7.tar.gz
sink-bb624c5ec2ab2e13dedcba67fd60e3d2f03216d7.zip
Add Contact as new domain type
Diffstat (limited to 'common/domain/applicationdomaintype.cpp')
-rw-r--r--common/domain/applicationdomaintype.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp
index 1647951..6d16a3c 100644
--- a/common/domain/applicationdomaintype.cpp
+++ b/common/domain/applicationdomaintype.cpp
@@ -206,6 +206,11 @@ Entity::~Entity()
206 206
207} 207}
208 208
209Contact::~Contact()
210{
211
212}
213
209Event::~Event() 214Event::~Event()
210{ 215{
211 216
@@ -325,6 +330,12 @@ SinkResource ImapResource::create(const QByteArray &account)
325} 330}
326 331
327template<> 332template<>
333QByteArray getTypeName<Contact>()
334{
335 return "contact";
336}
337
338template<>
328QByteArray getTypeName<Event>() 339QByteArray getTypeName<Event>()
329{ 340{
330 return "event"; 341 return "event";
@@ -377,6 +388,7 @@ QByteArrayList getTypeNames()
377 types << ApplicationDomain::getTypeName<Folder>(); 388 types << ApplicationDomain::getTypeName<Folder>();
378 types << ApplicationDomain::getTypeName<Event>(); 389 types << ApplicationDomain::getTypeName<Event>();
379 types << ApplicationDomain::getTypeName<Todo>(); 390 types << ApplicationDomain::getTypeName<Todo>();
391 types << ApplicationDomain::getTypeName<Contact>();
380 } 392 }
381 return types; 393 return types;
382} 394}