Commit 9d7021d4 authored by ck's avatar ck
Browse files

Maemo: Progress report also for debugging.

parent 745d16b4
......@@ -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();
......
......@@ -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();
......
......@@ -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()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment