diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp index c3685e56bc62f48aca8f1202f31d867c22f79fd9..fb438ac57f8f0a4e9625c359b28daafdf198bdf8 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp @@ -110,6 +110,8 @@ void MaemoDeployStep::ctor() SLOT(handleMountError(QString))); connect(m_mounter, SIGNAL(reportProgress(QString)), this, SLOT(handleProgressReport(QString))); + connect(m_mounter, SIGNAL(debugOutput(QString)), this, + SLOT(handleMountDebugOutput(QString))); } bool MaemoDeployStep::init() @@ -429,6 +431,12 @@ void MaemoDeployStep::handleMountError(const QString &errorMsg) raiseError(errorMsg); } +void MaemoDeployStep::handleMountDebugOutput(const QString &output) +{ + if (!m_stopped) + writeOutput(output, ErrorOutput); +} + void MaemoDeployStep::setupMount() { Q_ASSERT(m_needsInstall || !m_filesToCopy.isEmpty()); diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.h b/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.h index 45fdefc216c1c9d5861e111af58b8c69ead01f35..d5b52fa94f68c5d7a420e673f2ba210d4cc8acb3 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.h +++ b/src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.h @@ -94,6 +94,7 @@ private slots: void handleMounted(); void handleUnmounted(); void handleMountError(const QString &errorMsg); + void handleMountDebugOutput(const QString &output); void handleProgressReport(const QString &progressMsg); void handleCopyProcessFinished(int exitStatus); void handleCleanupTimeout(); diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemoremotemounter.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemoremotemounter.cpp index ddced58f13700b84d07f84b03a5d4d5c9a15414c..ae27488e9f537f15dc7fd9a163b5c4ad8c29d24d 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemoremotemounter.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemoremotemounter.cpp @@ -300,11 +300,22 @@ void MaemoRemoteMounter::startUtfsServers() SLOT(handleUtfsServerFinished(int,QProcess::ExitStatus))); connect(utfsServerProc.data(), SIGNAL(error(QProcess::ProcessError)), this, SLOT(handleUtfsServerError(QProcess::ProcessError))); + connect(utfsServerProc.data(), SIGNAL(readyReadStandardError()), this, + SLOT(handleUtfsServerStderr())); m_utfsServers << utfsServerProc; utfsServerProc->start(utfsServer(), utfsServerArgs); } } +void MaemoRemoteMounter::handleUtfsServerStderr() +{ + if (!m_stop) { + QProcess * const proc = static_cast<QProcess *>(sender()); + const QByteArray &output = proc->readAllStandardError(); + emit debugOutput(QString::fromLocal8Bit(output)); + } +} + void MaemoRemoteMounter::handleUtfsServerError(QProcess::ProcessError) { if (m_stop || m_utfsServers.isEmpty()) diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemoremotemounter.h b/src/plugins/qt4projectmanager/qt-maemo/maemoremotemounter.h index 4e57892365c8be96a45c23ca2302ea70612a48ab..2991632542a766809cfd44d3456515915834cdad 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemoremotemounter.h +++ b/src/plugins/qt4projectmanager/qt-maemo/maemoremotemounter.h @@ -76,6 +76,7 @@ signals: void unmounted(); void error(const QString &reason); void reportProgress(const QString &progressOutput); + void debugOutput(const QString &output); private slots: void handleUploaderInitialized(); @@ -90,6 +91,7 @@ private slots: void handleUtfsServerFinished(int exitCode, QProcess::ExitStatus exitStatus); void handleUtfsServerTimeout(); + void handleUtfsServerStderr(); private: void deployUtfsClient(); diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp index 270e4cce723d71ea776fc8591d3ca046cb970f9e..597fb387a19a4b7b8b3c602cb45d3abb0de30ad6 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp @@ -89,6 +89,8 @@ void MaemoRunControl::start() SLOT(handleRemoteProcessFinished(int))); connect(m_runner, SIGNAL(reportProgress(QString)), this, SLOT(handleProgressReport(QString))); + connect(m_runner, SIGNAL(mountDebugOutput(QString)), this, + SLOT(handleMountDebugOutput(QString))); m_runner->start(); } } @@ -139,6 +141,11 @@ void MaemoRunControl::handleProgressReport(const QString &progressString) emit appendMessage(this, progressString, false); } +void MaemoRunControl::handleMountDebugOutput(const QString &output) +{ + emit addToOutputWindowInline(this, output, true); +} + bool MaemoRunControl::isRunning() const { return m_running; diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.h b/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.h index 204fb1e34294173e1af24ca4ed7d08767b40f8e0..ffde0f7018996fac9476b009523ba28030eaf48c 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.h +++ b/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.h @@ -65,6 +65,7 @@ private slots: void handleRemoteOutput(const QByteArray &output); void handleRemoteErrorOutput(const QByteArray &output); void handleProgressReport(const QString &progressString); + void handleMountDebugOutput(const QString &output); private: void setFinished(); diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemosshrunner.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemosshrunner.cpp index a53c41f3c14104b26477ca422ac80c8c1b7dffba..9cfb8c2eb73b1c10c1dda7147ae3c310507b572a 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemosshrunner.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemosshrunner.cpp @@ -69,6 +69,8 @@ MaemoSshRunner::MaemoSshRunner(QObject *parent, SLOT(handleMounterError(QString))); connect(m_mounter, SIGNAL(reportProgress(QString)), this, SIGNAL(reportProgress(QString))); + connect(m_mounter, SIGNAL(debugOutput(QString)), this, + SIGNAL(mountDebugOutput(QString))); } MaemoSshRunner::~MaemoSshRunner() {} diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemosshrunner.h b/src/plugins/qt4projectmanager/qt-maemo/maemosshrunner.h index de079d8c27315b136b2706a1e99e303a81cd4a52..6d7ea730ec6fa6ed4a77e4a77a68e3e623a1649e 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemosshrunner.h +++ b/src/plugins/qt4projectmanager/qt-maemo/maemosshrunner.h @@ -71,6 +71,7 @@ public: signals: void error(const QString &error); + void mountDebugOutput(const QString &output); void readyForExecution(); void remoteOutput(const QByteArray &output); void remoteErrorOutput(const QByteArray &output);