diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-08 15:24:37 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-08 15:24:37 +0100 |
commit | 5255876dde678aa7d5af8020d5836b1fc6c58fc7 (patch) | |
tree | f11a954b784418e76d73b29c3e8b44ececa511bb /common/domain | |
parent | ae4b64b198a143240aa5dd1e202e5016abfdae71 (diff) | |
download | sink-5255876dde678aa7d5af8020d5836b1fc6c58fc7.tar.gz sink-5255876dde678aa7d5af8020d5836b1fc6c58fc7.zip |
Let the preprocessor repeat the types.
Diffstat (limited to 'common/domain')
-rw-r--r-- | common/domain/applicationdomaintype.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 1c0f208..be14513 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -482,6 +482,18 @@ class SINK_EXPORT TypeImplementation; | |||
482 | #undef SINK_REFERENCE_PROPERTY | 482 | #undef SINK_REFERENCE_PROPERTY |
483 | #undef SINK_INDEX_PROPERTY | 483 | #undef SINK_INDEX_PROPERTY |
484 | 484 | ||
485 | /** | ||
486 | * This macro can be used to instantiate templates for all domain types. | ||
487 | */ | ||
488 | #define SINK_REGISTER_TYPES() \ | ||
489 | REGISTER_TYPE(Sink::ApplicationDomain::Event); \ | ||
490 | REGISTER_TYPE(Sink::ApplicationDomain::Mail); \ | ||
491 | REGISTER_TYPE(Sink::ApplicationDomain::Folder); \ | ||
492 | REGISTER_TYPE(Sink::ApplicationDomain::SinkResource); \ | ||
493 | REGISTER_TYPE(Sink::ApplicationDomain::SinkAccount); \ | ||
494 | REGISTER_TYPE(Sink::ApplicationDomain::Identity); \ | ||
495 | |||
496 | |||
485 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::ApplicationDomainType) | 497 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::ApplicationDomainType) |
486 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::ApplicationDomainType::Ptr) | 498 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::ApplicationDomainType::Ptr) |
487 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Entity) | 499 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Entity) |