diff options
-rw-r--r-- | akonadish/state.cpp | 5 | ||||
-rw-r--r-- | akonadish/state.h | 1 |
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 | ||
115 | bool State::hasEventLoop() | ||
116 | { | ||
117 | return s_hasEventLoop; | ||
118 | } | ||
119 | |||
115 | void State::setCommandTiming(bool time) | 120 | void 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 | ||
44 | private: | 45 | private: |
45 | class Private; | 46 | class Private; |