SSH: Prepare infrastructure for more timeout handling.

This commit is contained in:
Christian Kandeler
2010-08-16 22:10:34 +02:00
parent b8d4356c6f
commit 3c10fc18a1
5 changed files with 25 additions and 14 deletions

View File

@@ -41,13 +41,12 @@
namespace Core {
namespace Internal {
SshChannelManager::SshChannelManager(SshSendFacility &sendFacility)
: m_sendFacility(sendFacility), m_nextLocalChannelId(0)
SshChannelManager::SshChannelManager(SshSendFacility &sendFacility,
QObject *parent)
: QObject(parent), m_sendFacility(sendFacility), m_nextLocalChannelId(0)
{
}
SshChannelManager::~SshChannelManager() {}
void SshChannelManager::handleChannelRequest(const SshIncomingPacket &packet)
{
lookupChannel(packet.extractRecipientChannel())
@@ -164,6 +163,7 @@ Core::SftpChannel::Ptr SshChannelManager::createSftpChannel()
void SshChannelManager::insertChannel(AbstractSshChannel *priv,
const QSharedPointer<QObject> &pub)
{
connect(priv, SIGNAL(timeout()), this, SIGNAL(timeout()));
m_channels.insert(priv->localChannelId(), priv);
m_sessions.insert(priv, pub);
}