diff options
Diffstat (limited to 'akonadish/state.cpp')
-rw-r--r-- | akonadish/state.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/akonadish/state.cpp b/akonadish/state.cpp index c9f9ee3..f3f5975 100644 --- a/akonadish/state.cpp +++ b/akonadish/state.cpp | |||
@@ -45,6 +45,7 @@ public: | |||
45 | 45 | ||
46 | int debugLevel = 0; | 46 | int debugLevel = 0; |
47 | QEventLoop *event = 0; | 47 | QEventLoop *event = 0; |
48 | bool timing = false; | ||
48 | QTextStream outStream; | 49 | QTextStream outStream; |
49 | }; | 50 | }; |
50 | 51 | ||
@@ -111,3 +112,14 @@ void State::setHasEventLoop(bool evented) | |||
111 | s_hasEventLoop = evented; | 112 | s_hasEventLoop = evented; |
112 | } | 113 | } |
113 | 114 | ||
115 | void State::setCommandTiming(bool time) | ||
116 | { | ||
117 | d->timing = time; | ||
118 | } | ||
119 | |||
120 | bool State::commandTiming() const | ||
121 | { | ||
122 | return d->timing; | ||
123 | } | ||
124 | |||
125 | |||