From 46bf82eaec0a30281d0b8deaf1ffbd06030eb997 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 3 Jan 2018 11:36:00 +0100 Subject: Since we only support incremental fetching for flat lists a boolean is enough. --- common/modelresult.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'common/modelresult.h') 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: qint64 parentId(const Ptr &value); QModelIndex createIndexFromId(const qint64 &id) const; - void fetchEntities(); Sink::Log::Context mLogCtx; // TODO we should be able to directly use T as index, with an appropriate hash function, and thus have a QMap and QList QMap mEntities; QMap /* child entity id*/> mTree; QMap mParents; - QSet mEntityChildrenFetched; - QSet mEntityChildrenFetchComplete; - QSet mEntityAllChildrenFetched; QMap mEntityStatus; + bool mFetchInProgress{false}; + bool mFetchedAll{false}; + bool mFetchComplete{false}; QList mPropertyColumns; Sink::Query mQuery; std::function loadEntities; -- cgit v1.2.3