summaryrefslogtreecommitdiffstats
path: root/common/clientapi.h
diff options
context:
space:
mode:
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 };