summaryrefslogtreecommitdiffstats
path: root/common/clientapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/clientapi.h')
-rw-r--r--common/clientapi.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/common/clientapi.h b/common/clientapi.h
index 7f01587..2188123 100644
--- a/common/clientapi.h
+++ b/common/clientapi.h
@@ -34,16 +34,7 @@
34namespace async { 34namespace async {
35 //This should abstract if we execute from eventloop or in thread. 35 //This should abstract if we execute from eventloop or in thread.
36 //It supposed to allow the caller to finish the current method before executing the runner. 36 //It supposed to allow the caller to finish the current method before executing the runner.
37 void run(const std::function<void()> &runner) { 37 void run(const std::function<void()> &runner);
38 QtConcurrent::run(runner);
39
40 // //FIXME we should be using a Job instead of a timer
41 // auto timer = new QTimer;
42 // timer->setSingleShot(true);
43 // QObject::connect(timer, &QTimer::timeout, runner);
44 // QObject::connect(timer, &QTimer::timeout, timer, &QObject::deleteLater);
45 // timer->start(0);
46 };
47 38
48 /** 39 /**
49 * Query result set 40 * Query result set
@@ -232,16 +223,10 @@ template<class DomainType>
232QString getTypeName(); 223QString getTypeName();
233 224
234template<> 225template<>
235QString getTypeName<Event>() 226QString getTypeName<Event>();
236{
237 return "event";
238}
239 227
240template<> 228template<>
241QString getTypeName<Todo>() 229QString getTypeName<Todo>();
242{
243 return "todo";
244}
245 230
246} 231}
247 232