diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-14 18:22:36 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-14 18:22:36 +0100 |
commit | fd9703a6f990d965d1c7fba21fee36b2beef644e (patch) | |
tree | 1587bb9080ec6de0ead8d8cfc0f69b8ed3445cbd /common/clientapi.h | |
parent | c4ec8fbc9f95a67079bc011c6455c3de72fa8266 (diff) | |
download | sink-fd9703a6f990d965d1c7fba21fee36b2beef644e.tar.gz sink-fd9703a6f990d965d1c7fba21fee36b2beef644e.zip |
An imperative query API
Diffstat (limited to 'common/clientapi.h')
-rw-r--r-- | common/clientapi.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/clientapi.h b/common/clientapi.h index 4e55432..f1c3bc6 100644 --- a/common/clientapi.h +++ b/common/clientapi.h | |||
@@ -95,6 +95,15 @@ public: | |||
95 | * Removes a resource from disk. | 95 | * Removes a resource from disk. |
96 | */ | 96 | */ |
97 | static void removeFromDisk(const QByteArray &resourceIdentifier); | 97 | static void removeFromDisk(const QByteArray &resourceIdentifier); |
98 | |||
99 | template <class DomainType> | ||
100 | static KAsync::Job<DomainType> fetchOne(const Akonadi2::Query &query); | ||
101 | |||
102 | template <class DomainType> | ||
103 | static KAsync::Job<QList<typename DomainType::Ptr> > fetchAll(const Akonadi2::Query &query); | ||
104 | |||
105 | template <class DomainType> | ||
106 | static KAsync::Job<QList<typename DomainType::Ptr> > fetch(const Akonadi2::Query &query, int minimumAmount = 0); | ||
98 | }; | 107 | }; |
99 | 108 | ||
100 | 109 | ||