diff options
Diffstat (limited to 'common/domain')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 1 | ||||
-rw-r--r-- | common/domain/applicationdomaintype.h | 1 | ||||
-rw-r--r-- | common/domain/calendar.fbs | 1 | ||||
-rw-r--r-- | common/domain/typeimplementations.cpp | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index 9bc3d08..97bf9f2 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -163,6 +163,7 @@ SINK_REGISTER_PROPERTY(Todo, Calendar); | |||
163 | 163 | ||
164 | SINK_REGISTER_ENTITY(Calendar); | 164 | SINK_REGISTER_ENTITY(Calendar); |
165 | SINK_REGISTER_PROPERTY(Calendar, Name); | 165 | SINK_REGISTER_PROPERTY(Calendar, Name); |
166 | SINK_REGISTER_PROPERTY(Calendar, Color); | ||
166 | 167 | ||
167 | static const int foo = [] { | 168 | static const int foo = [] { |
168 | QMetaType::registerEqualsComparator<Reference>(); | 169 | QMetaType::registerEqualsComparator<Reference>(); |
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 802efd8..7f214ba 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -394,6 +394,7 @@ SINK_EXPORT QDebug operator<< (QDebug d, const Contact::Email &); | |||
394 | struct SINK_EXPORT Calendar : public Entity { | 394 | struct SINK_EXPORT Calendar : public Entity { |
395 | SINK_ENTITY(Calendar, calendar); | 395 | SINK_ENTITY(Calendar, calendar); |
396 | SINK_PROPERTY(QString, Name, name); | 396 | SINK_PROPERTY(QString, Name, name); |
397 | SINK_PROPERTY(QByteArray, Color, color); | ||
397 | }; | 398 | }; |
398 | 399 | ||
399 | struct SINK_EXPORT Event : public Entity { | 400 | struct SINK_EXPORT Event : public Entity { |
diff --git a/common/domain/calendar.fbs b/common/domain/calendar.fbs index 9788539..375b9fb 100644 --- a/common/domain/calendar.fbs +++ b/common/domain/calendar.fbs | |||
@@ -2,6 +2,7 @@ namespace Sink.ApplicationDomain.Buffer; | |||
2 | 2 | ||
3 | table Calendar { | 3 | table Calendar { |
4 | name:string; | 4 | name:string; |
5 | color:string; | ||
5 | } | 6 | } |
6 | 7 | ||
7 | root_type Calendar; | 8 | root_type Calendar; |
diff --git a/common/domain/typeimplementations.cpp b/common/domain/typeimplementations.cpp index 2b2d2ac..bb3f455 100644 --- a/common/domain/typeimplementations.cpp +++ b/common/domain/typeimplementations.cpp | |||
@@ -269,6 +269,7 @@ QMap<QByteArray, int> TypeImplementation<Calendar>::typeDatabases() | |||
269 | void TypeImplementation<Calendar>::configure(PropertyMapper &propertyMapper) | 269 | void TypeImplementation<Calendar>::configure(PropertyMapper &propertyMapper) |
270 | { | 270 | { |
271 | SINK_REGISTER_SERIALIZER(propertyMapper, Calendar, Name, name); | 271 | SINK_REGISTER_SERIALIZER(propertyMapper, Calendar, Name, name); |
272 | SINK_REGISTER_SERIALIZER(propertyMapper, Calendar, Color, color); | ||
272 | } | 273 | } |
273 | 274 | ||
274 | void TypeImplementation<Calendar>::configure(IndexPropertyMapper &) {} | 275 | void TypeImplementation<Calendar>::configure(IndexPropertyMapper &) {} |