diff options
Diffstat (limited to 'common/modelresult.h')
-rw-r--r-- | common/modelresult.h | 6 |
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 | ||
70 | private: | 70 | private: |
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; |