diff options
author | Aaron Seigo <aseigo@kde.org> | 2016-01-10 12:09:20 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2016-01-10 12:09:20 +0100 |
commit | cfc740798191673c9badb1a4543c5b5421054f27 (patch) | |
tree | f76f817fc24ff483e8f9bb8d0f1795a15d73d69d | |
parent | 430672a394c563d23c6ef4fec47accf8de1bccab (diff) | |
download | sink-cfc740798191673c9badb1a4543c5b5421054f27.tar.gz sink-cfc740798191673c9badb1a4543c5b5421054f27.zip |
getter for event loop status
-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; |