2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 BlackBerry Limited. All rights reserved.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2012-06-29 07:23:13 +02:00
|
|
|
|
2016-05-19 08:56:05 +02:00
|
|
|
#include "qnxdevicewizard.h"
|
2012-06-29 07:23:13 +02:00
|
|
|
|
|
|
|
|
#include "qnxconstants.h"
|
2022-07-11 14:22:42 +02:00
|
|
|
#include "qnxtr.h"
|
2012-06-29 07:23:13 +02:00
|
|
|
|
2022-05-13 01:08:44 +02:00
|
|
|
#include <projectexplorer/devicesupport/sshparameters.h>
|
2012-06-29 07:23:13 +02:00
|
|
|
#include <remotelinux/genericlinuxdeviceconfigurationwizardpages.h>
|
|
|
|
|
#include <utils/portlist.h>
|
|
|
|
|
|
2012-07-25 17:41:01 +02:00
|
|
|
using namespace ProjectExplorer;
|
2012-06-29 07:23:13 +02:00
|
|
|
|
2022-07-21 09:19:41 +02:00
|
|
|
namespace Qnx::Internal {
|
2016-05-19 08:56:05 +02:00
|
|
|
|
|
|
|
|
QnxDeviceWizard::QnxDeviceWizard(QWidget *parent) :
|
2013-10-09 11:20:26 +02:00
|
|
|
Utils::Wizard(parent)
|
2012-06-29 07:23:13 +02:00
|
|
|
{
|
2022-07-11 14:22:42 +02:00
|
|
|
setWindowTitle(Tr::tr("New QNX Device Configuration Setup"));
|
2012-06-29 07:23:13 +02:00
|
|
|
|
2018-12-21 14:01:17 +01:00
|
|
|
m_setupPage = new RemoteLinux::GenericLinuxDeviceConfigurationWizardSetupPage(this);
|
|
|
|
|
m_keyDeploymentPage
|
|
|
|
|
= new RemoteLinux::GenericLinuxDeviceConfigurationWizardKeyDeploymentPage(this);
|
2012-06-29 07:23:13 +02:00
|
|
|
m_finalPage = new RemoteLinux::GenericLinuxDeviceConfigurationWizardFinalPage(this);
|
|
|
|
|
|
|
|
|
|
setPage(SetupPageId, m_setupPage);
|
2018-12-21 14:01:17 +01:00
|
|
|
setPage(KeyDeploymenPageId, m_keyDeploymentPage);
|
2012-06-29 07:23:13 +02:00
|
|
|
setPage(FinalPageId, m_finalPage);
|
|
|
|
|
m_finalPage->setCommitPage(true);
|
2022-05-12 18:43:44 +02:00
|
|
|
SshParameters sshParams;
|
2018-12-21 14:01:17 +01:00
|
|
|
sshParams.timeout = 10;
|
2019-01-14 17:29:15 +01:00
|
|
|
m_device = QnxDevice::create();
|
|
|
|
|
m_device->setupId(IDevice::ManuallyAdded);
|
2019-01-14 16:11:27 +01:00
|
|
|
m_device->setType(Constants::QNX_QNX_OS_TYPE);
|
2019-01-14 15:27:52 +01:00
|
|
|
m_device->setMachineType(IDevice::Hardware);
|
2018-12-21 14:01:17 +01:00
|
|
|
m_device->setSshParameters(sshParams);
|
|
|
|
|
m_device->setFreePorts(Utils::PortList::fromString(QLatin1String("10000-10100")));
|
|
|
|
|
m_setupPage->setDevice(m_device);
|
|
|
|
|
m_keyDeploymentPage->setDevice(m_device);
|
2012-06-29 07:23:13 +02:00
|
|
|
}
|
|
|
|
|
|
2016-05-19 08:56:05 +02:00
|
|
|
IDevice::Ptr QnxDeviceWizard::device()
|
2012-06-29 07:23:13 +02:00
|
|
|
{
|
2018-12-21 14:01:17 +01:00
|
|
|
return m_device;
|
2012-06-29 07:23:13 +02:00
|
|
|
}
|
2016-05-19 08:56:05 +02:00
|
|
|
|
2022-07-21 09:19:41 +02:00
|
|
|
} // Qnx::Internal
|