summaryrefslogtreecommitdiffstats
path: root/logic/MinecraftProcess.h
diff options
context:
space:
mode:
authorOrochimarufan <orochimarufan.x3@gmail.com>2014-01-17 22:55:10 +0100
committerOrochimarufan <orochimarufan.x3@gmail.com>2014-01-17 22:55:10 +0100
commit188d0d58865f5e134b5803bda2cd631a61cf2915 (patch)
treebe2aca8f9205db5f1bfa6e37e183c596f1fe832f /logic/MinecraftProcess.h
parent7b96d74d3b197c23324c5a364809a91ea6800e4e (diff)
downloadMultiMC-188d0d58865f5e134b5803bda2cd631a61cf2915.tar
MultiMC-188d0d58865f5e134b5803bda2cd631a61cf2915.tar.gz
MultiMC-188d0d58865f5e134b5803bda2cd631a61cf2915.tar.lz
MultiMC-188d0d58865f5e134b5803bda2cd631a61cf2915.tar.xz
MultiMC-188d0d58865f5e134b5803bda2cd631a61cf2915.zip
Improve Console window output.
-> Log Pre- and Post-Launch command happenings -> Enable the java part to specify the level TODO: fix logging with mc 1.7's log4j logging infrastructure Signed-off-by: Orochimarufan <orochimarufan.x3@gmail.com>
Diffstat (limited to 'logic/MinecraftProcess.h')
-rw-r--r--logic/MinecraftProcess.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/logic/MinecraftProcess.h b/logic/MinecraftProcess.h
index 5d1a2b71..70e5df52 100644
--- a/logic/MinecraftProcess.h
+++ b/logic/MinecraftProcess.h
@@ -31,11 +31,12 @@ enum Enum
{
MultiMC, /**< MultiMC Messages */
Debug, /**< Debug Messages */
- Info, /**< Info Messages */
+ Info, /**< Info Messages */
Message, /**< Standard Messages */
Warning, /**< Warnings */
Error, /**< Errors */
- Fatal /**< Fatal Errors */
+ Fatal, /**< Fatal Errors */
+ PrePost, /**< Pre/Post Launch command output */
};
}
@@ -125,9 +126,17 @@ slots:
void finish(int, QProcess::ExitStatus status);
void on_stdErr();
void on_stdOut();
+ void on_prepost_stdOut();
+ void on_prepost_stdErr();
+ void logOutput(const QStringList &lines,
+ MessageLevel::Enum defaultLevel = MessageLevel::Message,
+ bool guessLevel = true, bool censor = true);
+ void logOutput(QString line,
+ MessageLevel::Enum defaultLevel = MessageLevel::Message,
+ bool guessLevel = true, bool censor = true);
private:
QString censorPrivateInfo(QString in);
- MessageLevel::Enum getLevel(const QString &message, MessageLevel::Enum defaultLevel);
-
+ MessageLevel::Enum guessLevel(const QString &message, MessageLevel::Enum defaultLevel);
+ MessageLevel::Enum getLevel(const QString &levelName);
};