summaryrefslogtreecommitdiffstats
path: root/common/modelresult.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 22:05:40 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 22:05:40 +0100
commit6b1cf550608c2f17cbed9e375f15a4c14bfe8ace (patch)
tree2e693a731bb2e9ce1a793b14cef98cdc13e382cd /common/modelresult.h
parentb2ad8f785e801a35cadf254d827f56d648be510c (diff)
downloadsink-6b1cf550608c2f17cbed9e375f15a4c14bfe8ace.tar.gz
sink-6b1cf550608c2f17cbed9e375f15a4c14bfe8ace.zip
More Log::Context
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;