diff options
Diffstat (limited to 'akonadi2_cli/state.h')
-rw-r--r-- | akonadi2_cli/state.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/akonadi2_cli/state.h b/akonadi2_cli/state.h index 2f13166..eb07f56 100644 --- a/akonadi2_cli/state.h +++ b/akonadi2_cli/state.h | |||
@@ -26,15 +26,18 @@ class State | |||
26 | public: | 26 | public: |
27 | State(); | 27 | State(); |
28 | 28 | ||
29 | void print(const QString &message, unsigned int indentationLevel = 0); | 29 | void print(const QString &message, unsigned int indentationLevel = 0) const; |
30 | void printLine(const QString &message = QString(), unsigned int indentationLevel = 0); | 30 | void printLine(const QString &message = QString(), unsigned int indentationLevel = 0) const; |
31 | void printError(const QString &errorMessage, const QString &errorCode = QString()); | 31 | void printError(const QString &errorMessage, const QString &errorCode = QString()) const; |
32 | 32 | ||
33 | void setDebugLevel(unsigned int level); | 33 | void setDebugLevel(unsigned int level); |
34 | unsigned int debugLevel() const; | 34 | unsigned int debugLevel() const; |
35 | 35 | ||
36 | int commandStarted() const; | ||
37 | void commandFinished(int returnCode = 0) const; | ||
38 | |||
36 | private: | 39 | private: |
37 | int m_debugLevel = 0; | 40 | class Private; |
38 | QTextStream m_outStream; | 41 | Private * const d; |
39 | }; | 42 | }; |
40 | 43 | ||