diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-05-25 17:00:51 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-05-25 17:00:51 +0200 |
commit | 2c0315f31e322c3a951e5aad8816723440ae860d (patch) | |
tree | 37fab916e4dcd9e5260968ee6682e0d78ad3cd4c /examples/dummyresource/facade.h | |
parent | eddacfc5aff36eb3b16f12cba12ba1a88f5ee6e2 (diff) | |
download | sink-2c0315f31e322c3a951e5aad8816723440ae860d.tar.gz sink-2c0315f31e322c3a951e5aad8816723440ae860d.zip |
Refactored query in facade
First prepare the result set, then retrieve it.
Diffstat (limited to 'examples/dummyresource/facade.h')
-rw-r--r-- | examples/dummyresource/facade.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dummyresource/facade.h b/examples/dummyresource/facade.h index 41fb3f3..7c894f1 100644 --- a/examples/dummyresource/facade.h +++ b/examples/dummyresource/facade.h | |||
@@ -37,5 +37,5 @@ public: | |||
37 | KAsync::Job<qint64> load(const Akonadi2::Query &query, const QSharedPointer<Akonadi2::ResultProvider<Akonadi2::ApplicationDomain::Event::Ptr> > &resultProvider, qint64 oldRevision, qint64 newRevision) Q_DECL_OVERRIDE; | 37 | KAsync::Job<qint64> load(const Akonadi2::Query &query, const QSharedPointer<Akonadi2::ResultProvider<Akonadi2::ApplicationDomain::Event::Ptr> > &resultProvider, qint64 oldRevision, qint64 newRevision) Q_DECL_OVERRIDE; |
38 | 38 | ||
39 | private: | 39 | private: |
40 | void readValue(QSharedPointer<Akonadi2::Storage> storage, const QByteArray &key, const std::function<void(const Akonadi2::ApplicationDomain::Event::Ptr &)> &resultCallback, std::function<bool(const std::string &key, DummyCalendar::DummyEvent const *buffer, Akonadi2::ApplicationDomain::Buffer::Event const *local)>); | 40 | void readValue(const QSharedPointer<Akonadi2::Storage> &storage, const QByteArray &key, const std::function<void(const Akonadi2::ApplicationDomain::Event::Ptr &)> &resultCallback); |
41 | }; | 41 | }; |