From f52da78a2da39974f27faf34915adc6dcb80b4c8 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 25 Dec 2015 10:30:55 +0100 Subject: command timing setting --- akonadish/state.cpp | 12 ++++++++++++ akonadish/state.h | 3 +++ 2 files changed, 15 insertions(+) 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: int debugLevel = 0; QEventLoop *event = 0; + bool timing = false; QTextStream outStream; }; @@ -111,3 +112,14 @@ void State::setHasEventLoop(bool evented) s_hasEventLoop = evented; } +void State::setCommandTiming(bool time) +{ + d->timing = time; +} + +bool State::commandTiming() const +{ + return d->timing; +} + + diff --git a/akonadish/state.h b/akonadish/state.h index 1ba86dd..9c1ab6f 100644 --- a/akonadish/state.h +++ b/akonadish/state.h @@ -33,6 +33,9 @@ public: void setDebugLevel(unsigned int level); unsigned int debugLevel() const; + void setCommandTiming(bool); + bool commandTiming() const; + int commandStarted() const; void commandFinished(int returnCode = 0) const; -- cgit v1.2.3