diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-03 11:36:00 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-03 12:35:54 +0100 |
commit | 46bf82eaec0a30281d0b8deaf1ffbd06030eb997 (patch) | |
tree | cf081690acfd5a0911b1ce0475bc17ef75a45dea /common/modelresult.h | |
parent | f63f772eb59e246948fcdf178abee72dc3efc8f0 (diff) | |
download | sink-46bf82eaec0a30281d0b8deaf1ffbd06030eb997.tar.gz sink-46bf82eaec0a30281d0b8deaf1ffbd06030eb997.zip |
Since we only support incremental fetching for flat lists a boolean is
enough.
Diffstat (limited to 'common/modelresult.h')
-rw-r--r-- | common/modelresult.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/common/modelresult.h b/common/modelresult.h index a4def81..55a95b9 100644 --- a/common/modelresult.h +++ b/common/modelresult.h | |||
@@ -75,17 +75,16 @@ private: | |||
75 | 75 | ||
76 | qint64 parentId(const Ptr &value); | 76 | qint64 parentId(const Ptr &value); |
77 | QModelIndex createIndexFromId(const qint64 &id) const; | 77 | QModelIndex createIndexFromId(const qint64 &id) const; |
78 | void fetchEntities(); | ||
79 | 78 | ||
80 | Sink::Log::Context mLogCtx; | 79 | Sink::Log::Context mLogCtx; |
81 | // 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> | 80 | // 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> |
82 | QMap<qint64 /* entity id */, Ptr> mEntities; | 81 | QMap<qint64 /* entity id */, Ptr> mEntities; |
83 | QMap<qint64 /* parent entity id */, QList<qint64> /* child entity id*/> mTree; | 82 | QMap<qint64 /* parent entity id */, QList<qint64> /* child entity id*/> mTree; |
84 | QMap<qint64 /* child entity id */, qint64 /* parent entity id*/> mParents; | 83 | QMap<qint64 /* child entity id */, qint64 /* parent entity id*/> mParents; |
85 | QSet<qint64 /* entity id */> mEntityChildrenFetched; | ||
86 | QSet<qint64 /* entity id */> mEntityChildrenFetchComplete; | ||
87 | QSet<qint64 /* entity id */> mEntityAllChildrenFetched; | ||
88 | QMap<qint64 /* entity id */, int /* Status */> mEntityStatus; | 84 | QMap<qint64 /* entity id */, int /* Status */> mEntityStatus; |
85 | bool mFetchInProgress{false}; | ||
86 | bool mFetchedAll{false}; | ||
87 | bool mFetchComplete{false}; | ||
89 | QList<QByteArray> mPropertyColumns; | 88 | QList<QByteArray> mPropertyColumns; |
90 | Sink::Query mQuery; | 89 | Sink::Query mQuery; |
91 | std::function<void()> loadEntities; | 90 | std::function<void()> loadEntities; |