summaryrefslogtreecommitdiffstats
path: root/common/domain/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain/event.h')
-rw-r--r--common/domain/event.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/domain/event.h b/common/domain/event.h
index d40e55d..68c684a 100644
--- a/common/domain/event.h
+++ b/common/domain/event.h
@@ -39,18 +39,21 @@ namespace ApplicationDomain {
39 39
40/** 40/**
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 *
43 * These are type specifiy default implementations. Theoretically a resource could implement it's own implementation.
42 */ 44 */
43template<> 45template<>
44class TypeImplementation<Akonadi2::ApplicationDomain::Event> { 46class TypeImplementation<Akonadi2::ApplicationDomain::Event> {
45public: 47public:
46 typedef Akonadi2::ApplicationDomain::Buffer::Event Buffer; 48 typedef Akonadi2::ApplicationDomain::Buffer::Event Buffer;
47 typedef Akonadi2::ApplicationDomain::Buffer::EventBuilder BufferBuilder; 49 typedef Akonadi2::ApplicationDomain::Buffer::EventBuilder BufferBuilder;
50 static QSet<QByteArray> indexedProperties();
48 /** 51 /**
49 * Returns the potential result set based on the indexes. 52 * Returns the potential result set based on the indexes.
50 * 53 *
51 * An empty result set indicates that a full scan is required. 54 * An empty result set indicates that a full scan is required.
52 */ 55 */
53 static ResultSet queryIndexes(const Akonadi2::Query &query, const QByteArray &resourceInstanceIdentifier); 56 static ResultSet queryIndexes(const Akonadi2::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters);
54 static void index(const Event &type); 57 static void index(const Event &type);
55 static QSharedPointer<ReadPropertyMapper<Buffer> > initializeReadPropertyMapper(); 58 static QSharedPointer<ReadPropertyMapper<Buffer> > initializeReadPropertyMapper();
56 static QSharedPointer<WritePropertyMapper<BufferBuilder> > initializeWritePropertyMapper(); 59 static QSharedPointer<WritePropertyMapper<BufferBuilder> > initializeWritePropertyMapper();