diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2012-12-15 12:59:05 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-01-11 11:49:26 +0100 |
commit | 7db3e4c0e950fa7a3bd08b65719c36f0ca63e5d6 (patch) | |
tree | 0db575fc623f97058a15e1493407af22d0b799a7 /src/lib/buildgraph/abstractcommandexecutor.h | |
parent | 340f18159840c156be542efdc87a56c122d378f1 (diff) | |
download | qbs-7db3e4c0e950fa7a3bd08b65719c36f0ca63e5d6.tar.gz |
Do not write directly into logger
Pass information up to the client instead so that it can
decide how to handle it.
This allows e.g. creator to parse compile output for build
issues.
Change-Id: I76be4eaeb289b211b7d2527b555536b556655492
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/buildgraph/abstractcommandexecutor.h')
-rw-r--r-- | src/lib/buildgraph/abstractcommandexecutor.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/buildgraph/abstractcommandexecutor.h b/src/lib/buildgraph/abstractcommandexecutor.h index 5e453ed77..1ba08759b 100644 --- a/src/lib/buildgraph/abstractcommandexecutor.h +++ b/src/lib/buildgraph/abstractcommandexecutor.h @@ -37,6 +37,8 @@ class QScriptEngine; QT_END_NAMESPACE namespace qbs { +class Error; + namespace Internal { class AbstractCommand; class Transformer; @@ -56,7 +58,8 @@ public slots: void start(Transformer *transformer, const AbstractCommand *cmd); signals: - void error(QString errorString); + void reportCommandDescription(const QString &highlight, const QString &message); + void error(const qbs::Error &err); void finished(); protected: @@ -67,7 +70,6 @@ protected: private: virtual void doStart() = 0; - void printCommandInfo(); private: const AbstractCommand *m_command; |