From cfc740798191673c9badb1a4543c5b5421054f27 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Sun, 10 Jan 2016 12:09:20 +0100 Subject: getter for event loop status --- akonadish/state.cpp | 5 +++++ akonadish/state.h | 1 + 2 files changed, 6 insertions(+) (limited to 'akonadish') 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) s_hasEventLoop = evented; } +bool State::hasEventLoop() +{ + return s_hasEventLoop; +} + void State::setCommandTiming(bool time) { 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: void commandFinished(int returnCode = 0) const; static void setHasEventLoop(bool evented); + static bool hasEventLoop(); private: class Private; -- cgit v1.2.3