summaryrefslogtreecommitdiffstats
path: root/common/modelresult.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-12-28 12:05:34 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-02 13:31:14 +0100
commit625190d311adfcf3f0436cfece82249a92489348 (patch)
tree1010950e14b57560ae90abe20a5657750ad27137 /common/modelresult.h
parent11b790ba6f06141db802273628ce2d191982677e (diff)
downloadsink-625190d311adfcf3f0436cfece82249a92489348.tar.gz
sink-625190d311adfcf3f0436cfece82249a92489348.zip
No parent query
Diffstat (limited to 'common/modelresult.h')
-rw-r--r--common/modelresult.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/modelresult.h b/common/modelresult.h
index cc263cf..a4def81 100644
--- a/common/modelresult.h
+++ b/common/modelresult.h
@@ -65,7 +65,7 @@ public:
65 bool canFetchMore(const QModelIndex &parent) const; 65 bool canFetchMore(const QModelIndex &parent) const;
66 void fetchMore(const QModelIndex &parent); 66 void fetchMore(const QModelIndex &parent);
67 67
68 void setFetcher(const std::function<void(const Ptr &parent)> &fetcher); 68 void setFetcher(const std::function<void()> &fetcher);
69 69
70private: 70private:
71 void add(const Ptr &value); 71 void add(const Ptr &value);
@@ -75,7 +75,7 @@ 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(const QModelIndex &parent); 78 void fetchEntities();
79 79
80 Sink::Log::Context mLogCtx; 80 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> 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>
@@ -88,7 +88,7 @@ private:
88 QMap<qint64 /* entity id */, int /* Status */> mEntityStatus; 88 QMap<qint64 /* entity id */, int /* Status */> mEntityStatus;
89 QList<QByteArray> mPropertyColumns; 89 QList<QByteArray> mPropertyColumns;
90 Sink::Query mQuery; 90 Sink::Query mQuery;
91 std::function<void(const Ptr &)> loadEntities; 91 std::function<void()> loadEntities;
92 typename Sink::ResultEmitter<Ptr>::Ptr mEmitter; 92 typename Sink::ResultEmitter<Ptr>::Ptr mEmitter;
93 async::ThreadBoundary threadBoundary; 93 async::ThreadBoundary threadBoundary;
94 QScopedPointer<Sink::Notifier> mNotifier; 94 QScopedPointer<Sink::Notifier> mNotifier;