Commit a48139b8 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

SSH: Fix SshConnection::error signal connections.

I recently changed the signal argument, but forgot to update
some of the points of use.

Reviewed-by: kh1
parent 22130aae
......@@ -79,7 +79,7 @@ void MaemoConfigTestDialog::startConfigTest()
m_connection = SshConnection::create();
connect(m_connection.data(), SIGNAL(connected()), this,
SLOT(handleConnected()));
connect(m_connection.data(), SIGNAL(error(SshError)), this,
connect(m_connection.data(), SIGNAL(error(Core::SshError)), this,
SLOT(handleConnectionError()));
m_connection->connectToHost(m_config.server);
}
......
......@@ -72,7 +72,7 @@ void MaemoDeviceEnvReader::start()
connect(m_connection.data(), SIGNAL(connected()), this,
SLOT(executeRemoteCall()));
connect(m_connection.data(), SIGNAL(error(SshError)), this,
connect(m_connection.data(), SIGNAL(error(Core::SshError)), this,
SLOT(handleConnectionFailure()));
if (reuse)
......
......@@ -361,7 +361,7 @@ void MaemoSettingsWidget::deployKey()
m_connection = SshConnection::create();
connect(m_connection.data(), SIGNAL(connected()), this,
SLOT(handleConnected()));
connect(m_connection.data(), SIGNAL(error(SshError)), this,
connect(m_connection.data(), SIGNAL(error(Core::SshError)), this,
SLOT(handleConnectionFailure()));
m_connection->connectToHost(currentConfig().server);
}
......
......@@ -96,7 +96,7 @@ private slots:
qApp->quit();
}
void handleError(SshError error)
void handleError(Core::SshError error)
{
if (m_testSet.isEmpty()) {
qDebug("Error: Received error %d, but no test was running.", error);
......@@ -140,8 +140,8 @@ private:
SLOT(handleDisconnected()));
connect(m_connection.data(), SIGNAL(dataAvailable(QString)), this,
SLOT(handleDataAvailable(QString)));
connect(m_connection.data(), SIGNAL(error(SshError)), this,
SLOT(handleError(SshError)));
connect(m_connection.data(), SIGNAL(error(Core::SshError)), this,
SLOT(handleError(Core::SshError)));
const TestItem &nextItem = m_testSet.first();
m_timeoutTimer.stop();
m_timeoutTimer.setInterval(qMax(10000, nextItem.params.timeout * 1000));
......
Supports Markdown
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