diff options
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; |