diff options
Diffstat (limited to 'common/domain/applicationdomaintype.cpp')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index 49bfb5f..530056d 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -384,14 +384,10 @@ QByteArrayList getTypeNames() | |||
384 | { | 384 | { |
385 | static QByteArrayList types; | 385 | static QByteArrayList types; |
386 | if (types.isEmpty()) { | 386 | if (types.isEmpty()) { |
387 | types << ApplicationDomain::getTypeName<SinkResource>(); | 387 | #define REGISTER_TYPE(TYPE) \ |
388 | types << ApplicationDomain::getTypeName<SinkAccount>(); | 388 | types << ApplicationDomain::getTypeName<TYPE>(); |
389 | types << ApplicationDomain::getTypeName<Identity>(); | 389 | SINK_REGISTER_TYPES() |
390 | types << ApplicationDomain::getTypeName<Mail>(); | 390 | #undef REGISTER_TYPE |
391 | types << ApplicationDomain::getTypeName<Folder>(); | ||
392 | types << ApplicationDomain::getTypeName<Event>(); | ||
393 | types << ApplicationDomain::getTypeName<Todo>(); | ||
394 | types << ApplicationDomain::getTypeName<Contact>(); | ||
395 | } | 391 | } |
396 | return types; | 392 | return types; |
397 | } | 393 | } |