From 52ad48c8bd755a2fde249296d6017853538f478f Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 23 Sep 2016 01:35:13 +0200 Subject: A new query system --- common/domain/event.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/domain/event.h') diff --git a/common/domain/event.h b/common/domain/event.h index e1ca061..684b58e 100644 --- a/common/domain/event.h +++ b/common/domain/event.h @@ -21,7 +21,6 @@ #include "applicationdomaintype.h" #include "storage.h" -#include "datastorequery.h" class ResultSet; class QByteArray; @@ -31,6 +30,8 @@ class ReadPropertyMapper; template class WritePropertyMapper; +class DataStoreQuery; + namespace Sink { class Query; @@ -51,7 +52,7 @@ public: typedef Sink::ApplicationDomain::Buffer::Event Buffer; typedef Sink::ApplicationDomain::Buffer::EventBuilder BufferBuilder; static QSet indexedProperties(); - static DataStoreQuery::Ptr prepareQuery(const Sink::Query &query, Sink::Storage::Transaction &transaction); + static QSharedPointer prepareQuery(const Sink::Query &query, Sink::Storage::Transaction &transaction); static void index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); static void removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); static QSharedPointer > initializeReadPropertyMapper(); -- cgit v1.2.3