diff options
author | Sandro Knauß <sknauss@kde.org> | 2017-01-11 13:06:55 +0100 |
---|---|---|
committer | Sandro Knauß <sknauss@kde.org> | 2017-01-30 10:58:20 +0100 |
commit | bb624c5ec2ab2e13dedcba67fd60e3d2f03216d7 (patch) | |
tree | ee27923e8bf1fa51a75599beaff7e005368180e0 /common/domain/applicationdomaintype.cpp | |
parent | 17d8b00ae32e2b1522c5dce6719566e4fbe3357e (diff) | |
download | sink-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.cpp | 12 |
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 | ||
209 | Contact::~Contact() | ||
210 | { | ||
211 | |||
212 | } | ||
213 | |||
209 | Event::~Event() | 214 | Event::~Event() |
210 | { | 215 | { |
211 | 216 | ||
@@ -325,6 +330,12 @@ SinkResource ImapResource::create(const QByteArray &account) | |||
325 | } | 330 | } |
326 | 331 | ||
327 | template<> | 332 | template<> |
333 | QByteArray getTypeName<Contact>() | ||
334 | { | ||
335 | return "contact"; | ||
336 | } | ||
337 | |||
338 | template<> | ||
328 | QByteArray getTypeName<Event>() | 339 | QByteArray 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 | } |