[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [akonadi-next/feature/new_cli] akonadish: command timing setting
From: Aaron Seigo <aseigo () kde ! org>
Date: 2015-12-25 9:36:38
Message-ID: E1aCOne-0006wv-9r () scm ! kde ! org
[Download RAW message or body]
Git commit f52da78a2da39974f27faf34915adc6dcb80b4c8 by Aaron Seigo.
Committed on 25/12/2015 at 09:30.
Pushed by aseigo into branch 'feature/new_cli'.
command timing setting
M +12 -0 akonadish/state.cpp
M +3 -0 akonadish/state.h
http://commits.kde.org/akonadi-next/f52da78a2da39974f27faf34915adc6dcb80b4c8
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic