Maemo: Progress report also for debugging.

This commit is contained in:
ck
2010-08-10 16:26:41 +02:00
parent 745d16b47d
commit 9d7021d42c
3 changed files with 10 additions and 1 deletions

View File

@@ -134,6 +134,8 @@ void MaemoDebugSupport::handleAdapterSetupRequested()
SLOT(handleSshError(QString)));
connect(m_runner, SIGNAL(readyForExecution()), this,
SLOT(startExecution()));
connect(m_runner, SIGNAL(reportProgress(QString)), this,
SLOT(handleProgressReport(QString)));
m_runner->start();
}
@@ -256,9 +258,14 @@ void MaemoDebugSupport::handleRemoteErrorOutput(const QByteArray &output)
m_runControl->showMessage(QString::fromUtf8(output), AppOutput);
}
void MaemoDebugSupport::handleProgressReport(const QString &progressOutput)
{
m_runControl->showMessage(progressOutput, AppStuff);
}
void MaemoDebugSupport::stopSsh()
{
disconnect(m_runner, 0, this, 0);
//disconnect(m_runner, 0, this, 0);
if (m_uploader) {
disconnect(m_uploader.data(), 0, this, 0);
m_uploader->closeChannel();

View File

@@ -84,6 +84,7 @@ private slots:
void handleDebuggingFinished();
void handleRemoteOutput(const QByteArray &output);
void handleRemoteErrorOutput(const QByteArray &output);
void handleProgressReport(const QString &progressOutput);
private:
void stopSsh();

View File

@@ -129,6 +129,7 @@ void MaemoRemoteMounter::handleUnmountProcessFinished(int exitStatus)
m_mountSpecs.clear();
if (errorMsg.isEmpty()) {
emit reportProgress(tr("Finished unmounting."));
emit unmounted();
} else {
if (!m_umountStderr.isEmpty()) {