diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-02-08 17:56:14 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-12 20:57:17 +0200 |
commit | 4730f54df7edf4775dfddf45f77c60edd86c32d9 (patch) | |
tree | 22fe05326976cbdadf150c1cfe0710f375e34edf /logic/BaseProcess.h | |
parent | 7a71ecd8af0454e405b25080a4b266fc99306269 (diff) | |
download | MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar.gz MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar.lz MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar.xz MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.zip |
SCRATCH separate the generic updater logic from the application
Diffstat (limited to 'logic/BaseProcess.h')
-rw-r--r-- | logic/BaseProcess.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/logic/BaseProcess.h b/logic/BaseProcess.h index ff8b9ed3..75bf0217 100644 --- a/logic/BaseProcess.h +++ b/logic/BaseProcess.h @@ -54,6 +54,12 @@ public: /* methods */ return m_instance; } + /// Set the text printed on top of the log + void setHeader(QString header) + { + m_header = header; + } + void setWorkdir(QString path); void killProcess(); @@ -79,6 +85,8 @@ protected: /* methods */ bool waitForPrePost(); QString substituteVariables(const QString &cmd) const; + void printHeader(); + virtual QMap<QString, QString> getVariables() const = 0; virtual QString censorPrivateInfo(QString in) = 0; virtual MessageLevel::Enum guessLevel(const QString &message, MessageLevel::Enum defaultLevel) = 0; @@ -130,4 +138,5 @@ protected: QString m_out_leftover; QProcess m_prepostlaunchprocess; bool killed = false; + QString m_header; }; |