summaryrefslogtreecommitdiffstats
path: root/common/modelresult.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/modelresult.h')
-rw-r--r--common/modelresult.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/modelresult.h b/common/modelresult.h
index b7fc0ec..daa48bd 100644
--- a/common/modelresult.h
+++ b/common/modelresult.h
@@ -26,6 +26,7 @@
26#include <QSharedPointer> 26#include <QSharedPointer>
27#include <functional> 27#include <functional>
28#include "query.h" 28#include "query.h"
29#include "log.h"
29#include "resultprovider.h" 30#include "resultprovider.h"
30#include "threadboundary.h" 31#include "threadboundary.h"
31 32
@@ -40,7 +41,7 @@ public:
40 DomainObjectBaseRole 41 DomainObjectBaseRole
41 }; 42 };
42 43
43 ModelResult(const Sink::Query &query, const QList<QByteArray> &propertyColumns); 44 ModelResult(const Sink::Query &query, const QList<QByteArray> &propertyColumns, const Sink::Log::Context &);
44 45
45 void setEmitter(const typename Sink::ResultEmitter<Ptr>::Ptr &); 46 void setEmitter(const typename Sink::ResultEmitter<Ptr>::Ptr &);
46 47
@@ -67,6 +68,7 @@ private:
67 QModelIndex createIndexFromId(const qint64 &id) const; 68 QModelIndex createIndexFromId(const qint64 &id) const;
68 void fetchEntities(const QModelIndex &parent); 69 void fetchEntities(const QModelIndex &parent);
69 70
71 Sink::Log::Context mLogCtx;
70 // TODO we should be able to directly use T as index, with an appropriate hash function, and thus have a QMap<T, T> and QList<T> 72 // TODO we should be able to directly use T as index, with an appropriate hash function, and thus have a QMap<T, T> and QList<T>
71 QMap<qint64 /* entity id */, Ptr> mEntities; 73 QMap<qint64 /* entity id */, Ptr> mEntities;
72 QMap<qint64 /* parent entity id */, QList<qint64> /* child entity id*/> mTree; 74 QMap<qint64 /* parent entity id */, QList<qint64> /* child entity id*/> mTree;