summaryrefslogtreecommitdiffstats
path: root/common/domain
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain')
-rw-r--r--common/domain/applicationdomaintype.cpp1
-rw-r--r--common/domain/applicationdomaintype.h1
-rw-r--r--common/domain/calendar.fbs1
-rw-r--r--common/domain/typeimplementations.cpp1
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
164SINK_REGISTER_ENTITY(Calendar); 164SINK_REGISTER_ENTITY(Calendar);
165SINK_REGISTER_PROPERTY(Calendar, Name); 165SINK_REGISTER_PROPERTY(Calendar, Name);
166SINK_REGISTER_PROPERTY(Calendar, Color);
166 167
167static const int foo = [] { 168static 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 &);
394struct SINK_EXPORT Calendar : public Entity { 394struct 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
399struct SINK_EXPORT Event : public Entity { 400struct 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
3table Calendar { 3table Calendar {
4 name:string; 4 name:string;
5 color:string;
5} 6}
6 7
7root_type Calendar; 8root_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()
269void TypeImplementation<Calendar>::configure(PropertyMapper &propertyMapper) 269void 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
274void TypeImplementation<Calendar>::configure(IndexPropertyMapper &) {} 275void TypeImplementation<Calendar>::configure(IndexPropertyMapper &) {}