diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-09 16:14:02 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-09 16:14:02 +0100 |
commit | 57a88e6c1514b85d25b066059defcd62d2ccd8d6 (patch) | |
tree | ad41c8e9e4e6b59329e84c2151f24ba5a22eca64 /common/domain/applicationdomaintype.cpp | |
parent | 45aaa4a4b2a0718d6e23dd5ac8a5c594d774e949 (diff) | |
download | sink-57a88e6c1514b85d25b066059defcd62d2ccd8d6.tar.gz sink-57a88e6c1514b85d25b066059defcd62d2ccd8d6.zip |
Addressbook support
Diffstat (limited to 'common/domain/applicationdomaintype.cpp')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 15 |
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); | |||
96 | SINK_REGISTER_PROPERTY(Folder, Enabled); | 96 | SINK_REGISTER_PROPERTY(Folder, Enabled); |
97 | SINK_REGISTER_PROPERTY(Folder, Parent); | 97 | SINK_REGISTER_PROPERTY(Folder, Parent); |
98 | 98 | ||
99 | SINK_REGISTER_PROPERTY(Contact, Uid); | ||
100 | SINK_REGISTER_PROPERTY(Contact, Fn); | ||
101 | SINK_REGISTER_PROPERTY(Contact, Emails); | ||
102 | SINK_REGISTER_PROPERTY(Contact, Vcard); | ||
103 | SINK_REGISTER_PROPERTY(Contact, Addressbook); | ||
104 | |||
105 | SINK_REGISTER_PROPERTY(Addressbook, Name); | ||
106 | SINK_REGISTER_PROPERTY(Addressbook, Parent); | ||
107 | |||
99 | static const int foo = [] { | 108 | static 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 | ||
371 | template<> | 380 | template<> |
381 | QByteArray getTypeName<Addressbook>() | ||
382 | { | ||
383 | return "addressbook"; | ||
384 | } | ||
385 | |||
386 | template<> | ||
372 | QByteArray getTypeName<Event>() | 387 | QByteArray getTypeName<Event>() |
373 | { | 388 | { |
374 | return "event"; | 389 | return "event"; |