diff options
author | hjk <hjk@qt.io> | 2017-12-19 12:45:46 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2017-12-19 14:19:31 +0000 |
commit | 21c66ce5fdaf9fcf91b4ba72adba691fc64be4a3 (patch) | |
tree | 06c49f98300874a2b40bfa7800373679804a217b /src/plugins/qnx/qnxdevicewizard.cpp | |
parent | b64c1a96b8b9218a903c7993d58c64f8ca387243 (diff) | |
download | qt-creator-21c66ce5fdaf9fcf91b4ba72adba691fc64be4a3.tar.gz |
Combine some SshConnectionParameter members
Combine host, port, username and password into a 'url' member and
add some convenience accessors.
Change-Id: Iddc26ff00dad1285c96aa56f196dbc4febe8e974
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qnx/qnxdevicewizard.cpp')
-rw-r--r-- | src/plugins/qnx/qnxdevicewizard.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/qnx/qnxdevicewizard.cpp b/src/plugins/qnx/qnxdevicewizard.cpp index cbfc872049..9137cc13a0 100644 --- a/src/plugins/qnx/qnxdevicewizard.cpp +++ b/src/plugins/qnx/qnxdevicewizard.cpp @@ -64,15 +64,11 @@ IDevice::Ptr QnxDeviceWizard::device() { QSsh::SshConnectionParameters sshParams; sshParams.options = QSsh::SshIgnoreDefaultProxy; - sshParams.host = m_setupPage->hostName(); - sshParams.userName = m_setupPage->userName(); - sshParams.port = 22; + sshParams.url = m_setupPage->url(); sshParams.timeout = 10; sshParams.authenticationType = m_setupPage->authenticationType(); - if (sshParams.authenticationType == QSsh::SshConnectionParameters::AuthenticationTypeTryAllPasswordBasedMethods - || sshParams.authenticationType == QSsh::SshConnectionParameters::AuthenticationTypePassword) - sshParams.password = m_setupPage->password(); - else + if (sshParams.authenticationType != QSsh::SshConnectionParameters::AuthenticationTypeTryAllPasswordBasedMethods + && sshParams.authenticationType != QSsh::SshConnectionParameters::AuthenticationTypePassword) sshParams.privateKeyFile = m_setupPage->privateKeyFilePath(); QnxDevice::Ptr device = QnxDevice::create(m_setupPage->configurationName(), |