diff options
author | Aaron Seigo <aseigo@kde.org> | 2015-12-24 10:36:56 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2015-12-24 10:36:56 +0100 |
commit | b352f61f136f21854b3da5b76d49fe45cbb2d3fd (patch) | |
tree | 53accb06f16a6cf1c381176d59e3d2449212a4e8 /akonadish/state.h | |
parent | f5d4b7dc12dbb3b38b70bcbe94298972208d64f5 (diff) | |
download | sink-b352f61f136f21854b3da5b76d49fe45cbb2d3fd.tar.gz sink-b352f61f136f21854b3da5b76d49fe45cbb2d3fd.zip |
if not being run interactively, then use the main app loop
QEventLoop requires QCoreApplication is running; so when we don't
have one running the whole app, just start/stop the core app on
demand (from/for commands).
Diffstat (limited to 'akonadish/state.h')
-rw-r--r-- | akonadish/state.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/akonadish/state.h b/akonadish/state.h index eb07f56..1ba86dd 100644 --- a/akonadish/state.h +++ b/akonadish/state.h | |||
@@ -36,6 +36,8 @@ public: | |||
36 | int commandStarted() const; | 36 | int commandStarted() const; |
37 | void commandFinished(int returnCode = 0) const; | 37 | void commandFinished(int returnCode = 0) const; |
38 | 38 | ||
39 | static void setHasEventLoop(bool evented); | ||
40 | |||
39 | private: | 41 | private: |
40 | class Private; | 42 | class Private; |
41 | Private * const d; | 43 | Private * const d; |