Changeset View
Changeset View
Standalone View
Standalone View
common/domain/typeimplementations.h
Show All 17 Lines | |||||
18 | */ | 18 | */ | ||
19 | #pragma once | 19 | #pragma once | ||
20 | 20 | | |||
21 | #include "applicationdomaintype.h" | 21 | #include "applicationdomaintype.h" | ||
22 | 22 | | |||
23 | #include "mail_generated.h" | 23 | #include "mail_generated.h" | ||
24 | #include "folder_generated.h" | 24 | #include "folder_generated.h" | ||
25 | #include "event_generated.h" | 25 | #include "event_generated.h" | ||
26 | #include "calendar_generated.h" | ||||
26 | #include "contact_generated.h" | 27 | #include "contact_generated.h" | ||
27 | #include "addressbook_generated.h" | 28 | #include "addressbook_generated.h" | ||
28 | 29 | | |||
29 | class PropertyMapper; | 30 | class PropertyMapper; | ||
30 | class IndexPropertyMapper; | 31 | class IndexPropertyMapper; | ||
31 | 32 | | |||
32 | class TypeIndex; | 33 | class TypeIndex; | ||
33 | 34 | | |||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 89 | public: | |||
89 | typedef Sink::ApplicationDomain::Buffer::Event Buffer; | 90 | typedef Sink::ApplicationDomain::Buffer::Event Buffer; | ||
90 | typedef Sink::ApplicationDomain::Buffer::EventBuilder BufferBuilder; | 91 | typedef Sink::ApplicationDomain::Buffer::EventBuilder BufferBuilder; | ||
91 | static void configure(TypeIndex &); | 92 | static void configure(TypeIndex &); | ||
92 | static void configure(PropertyMapper &); | 93 | static void configure(PropertyMapper &); | ||
93 | static void configure(IndexPropertyMapper &indexPropertyMapper); | 94 | static void configure(IndexPropertyMapper &indexPropertyMapper); | ||
94 | static QMap<QByteArray, int> typeDatabases(); | 95 | static QMap<QByteArray, int> typeDatabases(); | ||
95 | }; | 96 | }; | ||
96 | 97 | | |||
98 | template<> | ||||
99 | class TypeImplementation<Sink::ApplicationDomain::Calendar> { | ||||
100 | public: | ||||
101 | typedef Sink::ApplicationDomain::Buffer::Calendar Buffer; | ||||
102 | typedef Sink::ApplicationDomain::Buffer::CalendarBuilder BufferBuilder; | ||||
103 | static void configure(TypeIndex &); | ||||
104 | static void configure(PropertyMapper &); | ||||
105 | static void configure(IndexPropertyMapper &indexPropertyMapper); | ||||
106 | static QMap<QByteArray, int> typeDatabases(); | ||||
107 | }; | ||||
108 | | ||||
97 | } | 109 | } | ||
98 | } | 110 | } |