forked from qt-creator/qt-creator
SSH: Allow querying of IP protocol version.
Change-Id: I97c8b89da8c8d46afb0bdc840627e142567d5d98 Reviewed-on: http://codereview.qt-project.org/5981 Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -165,6 +165,11 @@ SshConnectionParameters SshConnection::connectionParameters() const
|
|||||||
return d->m_connParams;
|
return d->m_connParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QAbstractSocket::NetworkLayerProtocol SshConnection::ipProtocolVersion() const
|
||||||
|
{
|
||||||
|
return d->m_socket->localAddress().protocol();
|
||||||
|
}
|
||||||
|
|
||||||
SshConnection::~SshConnection()
|
SshConnection::~SshConnection()
|
||||||
{
|
{
|
||||||
disconnect();
|
disconnect();
|
||||||
|
|||||||
@@ -41,6 +41,7 @@
|
|||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
#include <QtCore/QSharedPointer>
|
#include <QtCore/QSharedPointer>
|
||||||
#include <QtCore/QString>
|
#include <QtCore/QString>
|
||||||
|
#include <QtNetwork/QAbstractSocket>
|
||||||
|
|
||||||
namespace Utils {
|
namespace Utils {
|
||||||
class SftpChannel;
|
class SftpChannel;
|
||||||
@@ -86,6 +87,7 @@ public:
|
|||||||
SshError errorState() const;
|
SshError errorState() const;
|
||||||
QString errorString() const;
|
QString errorString() const;
|
||||||
SshConnectionParameters connectionParameters() const;
|
SshConnectionParameters connectionParameters() const;
|
||||||
|
QAbstractSocket::NetworkLayerProtocol ipProtocolVersion() const;
|
||||||
~SshConnection();
|
~SshConnection();
|
||||||
|
|
||||||
QSharedPointer<SshRemoteProcess> createRemoteProcess(const QByteArray &command);
|
QSharedPointer<SshRemoteProcess> createRemoteProcess(const QByteArray &command);
|
||||||
|
|||||||
Reference in New Issue
Block a user