summaryrefslogtreecommitdiffstats
path: root/common/clientapi.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-28 16:07:15 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-28 16:07:15 +0100
commit4926e7f613ea3e03a2865eec66c6a8c1ec0b6516 (patch)
treeda2c7bc3f0243bf065f21b6c272f17b1ea899bce /common/clientapi.h
parent088d8a40c195ce6dcb91556a17f69d26e5586a3e (diff)
downloadsink-4926e7f613ea3e03a2865eec66c6a8c1ec0b6516.tar.gz
sink-4926e7f613ea3e03a2865eec66c6a8c1ec0b6516.zip
Cleanup
Diffstat (limited to 'common/clientapi.h')
-rw-r--r--common/clientapi.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/common/clientapi.h b/common/clientapi.h
index c48c6e9..7fee6ae 100644
--- a/common/clientapi.h
+++ b/common/clientapi.h
@@ -33,12 +33,6 @@ Q_DECLARE_METATYPE(std::shared_ptr<void>);
33 33
34class QAbstractItemModel; 34class QAbstractItemModel;
35 35
36namespace async {
37 //This should abstract if we execute from eventloop or in thread.
38 //It supposed to allow the caller to finish the current method before executing the runner.
39 void run(const std::function<void()> &runner);
40}
41
42namespace Akonadi2 { 36namespace Akonadi2 {
43 37
44using namespace async; 38using namespace async;
@@ -54,12 +48,6 @@ public:
54 static QString storageLocation(); 48 static QString storageLocation();
55 static QByteArray resourceName(const QByteArray &instanceIdentifier); 49 static QByteArray resourceName(const QByteArray &instanceIdentifier);
56 50
57 /**
58 * Asynchronusly load a dataset
59 */
60 template <class DomainType>
61 static QSharedPointer<ResultEmitter<typename DomainType::Ptr> > load(Query query);
62
63 enum Roles { 51 enum Roles {
64 DomainObjectRole = Qt::UserRole + 1 //Must be the same as in ModelResult 52 DomainObjectRole = Qt::UserRole + 1 //Must be the same as in ModelResult
65 }; 53 };