diff options
author | Aaron Seigo <aseigo@kde.org> | 2015-12-23 20:22:15 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2015-12-23 20:22:15 +0100 |
commit | 109fa78cd929b134e8fa826ec5c64b09dc88c3b7 (patch) | |
tree | 141a5aa76e4339807f68b6ec73295cd9b8ee0d3d /akonadi2_cli/state.h | |
parent | 25a17e16901590a9400deef9e2feb5423df84b59 (diff) | |
download | sink-109fa78cd929b134e8fa826ec5c64b09dc88c3b7.tar.gz sink-109fa78cd929b134e8fa826ec5c64b09dc88c3b7.zip |
get around const'ness with a dptr and introduce an event loop
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 | ||