summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--akonadish/state.cpp5
-rw-r--r--akonadish/state.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/akonadish/state.cpp b/akonadish/state.cpp
index f3f5975..85cbe10 100644
--- a/akonadish/state.cpp
+++ b/akonadish/state.cpp
@@ -112,6 +112,11 @@ void State::setHasEventLoop(bool evented)
112 s_hasEventLoop = evented; 112 s_hasEventLoop = evented;
113} 113}
114 114
115bool State::hasEventLoop()
116{
117 return s_hasEventLoop;
118}
119
115void State::setCommandTiming(bool time) 120void State::setCommandTiming(bool time)
116{ 121{
117 d->timing = time; 122 d->timing = time;
diff --git a/akonadish/state.h b/akonadish/state.h
index 9c1ab6f..b1ca358 100644
--- a/akonadish/state.h
+++ b/akonadish/state.h
@@ -40,6 +40,7 @@ public:
40 void commandFinished(int returnCode = 0) const; 40 void commandFinished(int returnCode = 0) const;
41 41
42 static void setHasEventLoop(bool evented); 42 static void setHasEventLoop(bool evented);
43 static bool hasEventLoop();
43 44
44private: 45private:
45 class Private; 46 class Private;