summaryrefslogtreecommitdiffstats
path: root/common/domain/event.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-05-31 20:51:09 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-05-31 20:51:09 +0200
commit9a9557b6431e8d27420603f4895e480d766f6ae2 (patch)
tree7a076e30c52c0a0d753b061ccf471d11cf5b3c79 /common/domain/event.h
parent69a3900feb4a0277d4e70e44256c9b37be78a2d5 (diff)
downloadsink-9a9557b6431e8d27420603f4895e480d766f6ae2.tar.gz
sink-9a9557b6431e8d27420603f4895e480d766f6ae2.zip
Use type implementation to define default buffer and buffer-builder
Diffstat (limited to 'common/domain/event.h')
-rw-r--r--common/domain/event.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/common/domain/event.h b/common/domain/event.h
index d4ce20e..d40e55d 100644
--- a/common/domain/event.h
+++ b/common/domain/event.h
@@ -41,7 +41,10 @@ namespace ApplicationDomain {
41 * Implements all type-specific code such as updating and querying indexes. 41 * Implements all type-specific code such as updating and querying indexes.
42 */ 42 */
43template<> 43template<>
44struct TypeImplementation<Akonadi2::ApplicationDomain::Event> { 44class TypeImplementation<Akonadi2::ApplicationDomain::Event> {
45public:
46 typedef Akonadi2::ApplicationDomain::Buffer::Event Buffer;
47 typedef Akonadi2::ApplicationDomain::Buffer::EventBuilder BufferBuilder;
45 /** 48 /**
46 * Returns the potential result set based on the indexes. 49 * Returns the potential result set based on the indexes.
47 * 50 *
@@ -49,8 +52,8 @@ struct TypeImplementation<Akonadi2::ApplicationDomain::Event> {
49 */ 52 */
50 static ResultSet queryIndexes(const Akonadi2::Query &query, const QByteArray &resourceInstanceIdentifier); 53 static ResultSet queryIndexes(const Akonadi2::Query &query, const QByteArray &resourceInstanceIdentifier);
51 static void index(const Event &type); 54 static void index(const Event &type);
52 static QSharedPointer<ReadPropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event> > initializeReadPropertyMapper(); 55 static QSharedPointer<ReadPropertyMapper<Buffer> > initializeReadPropertyMapper();
53 static QSharedPointer<WritePropertyMapper<Akonadi2::ApplicationDomain::Buffer::EventBuilder> > initializeWritePropertyMapper(); 56 static QSharedPointer<WritePropertyMapper<BufferBuilder> > initializeWritePropertyMapper();
54}; 57};
55 58
56} 59}