summaryrefslogtreecommitdiffstats
path: root/common/domain/applicationdomaintype.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-09 16:14:02 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-09 16:14:02 +0100
commit57a88e6c1514b85d25b066059defcd62d2ccd8d6 (patch)
treead41c8e9e4e6b59329e84c2151f24ba5a22eca64 /common/domain/applicationdomaintype.cpp
parent45aaa4a4b2a0718d6e23dd5ac8a5c594d774e949 (diff)
downloadsink-57a88e6c1514b85d25b066059defcd62d2ccd8d6.tar.gz
sink-57a88e6c1514b85d25b066059defcd62d2ccd8d6.zip
Addressbook support
Diffstat (limited to 'common/domain/applicationdomaintype.cpp')
-rw-r--r--common/domain/applicationdomaintype.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp
index 99f14a1..1efe052 100644
--- a/common/domain/applicationdomaintype.cpp
+++ b/common/domain/applicationdomaintype.cpp
@@ -96,6 +96,15 @@ SINK_REGISTER_PROPERTY(Folder, SpecialPurpose);
96SINK_REGISTER_PROPERTY(Folder, Enabled); 96SINK_REGISTER_PROPERTY(Folder, Enabled);
97SINK_REGISTER_PROPERTY(Folder, Parent); 97SINK_REGISTER_PROPERTY(Folder, Parent);
98 98
99SINK_REGISTER_PROPERTY(Contact, Uid);
100SINK_REGISTER_PROPERTY(Contact, Fn);
101SINK_REGISTER_PROPERTY(Contact, Emails);
102SINK_REGISTER_PROPERTY(Contact, Vcard);
103SINK_REGISTER_PROPERTY(Contact, Addressbook);
104
105SINK_REGISTER_PROPERTY(Addressbook, Name);
106SINK_REGISTER_PROPERTY(Addressbook, Parent);
107
99static const int foo = [] { 108static const int foo = [] {
100 QMetaType::registerEqualsComparator<Reference>(); 109 QMetaType::registerEqualsComparator<Reference>();
101 QMetaType::registerDebugStreamOperator<Reference>(); 110 QMetaType::registerDebugStreamOperator<Reference>();
@@ -369,6 +378,12 @@ QByteArray getTypeName<Contact>()
369} 378}
370 379
371template<> 380template<>
381QByteArray getTypeName<Addressbook>()
382{
383 return "addressbook";
384}
385
386template<>
372QByteArray getTypeName<Event>() 387QByteArray getTypeName<Event>()
373{ 388{
374 return "event"; 389 return "event";