diff options
author | Christian Kandeler <christian.kandeler@nokia.com> | 2011-04-21 14:39:57 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@nokia.com> | 2011-04-21 14:42:17 +0200 |
commit | 0ee99ff2b357d01a3bb434a9c8e8002a963f75c3 (patch) | |
tree | de224a8bcb6d13f2bd1d88af4af3ea2a9dc83721 /src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizard.cpp | |
parent | 5294db3d16a8d30b604144de0a490774c7066b09 (diff) | |
download | qt-creator-0ee99ff2b357d01a3bb434a9c8e8002a963f75c3.tar.gz |
Maemo: Move OsVersion type from MaemoGlobal to MaemoDeviceConfig.
Also move freePorts() method from AbstractMaemoDeployStep
to MaemoGlobal.
Diffstat (limited to 'src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizard.cpp')
-rw-r--r-- | src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizard.cpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizard.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizard.cpp index 017d37bbd6..f2991f161c 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizard.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigwizard.cpp @@ -38,6 +38,7 @@ #include "ui_maemodeviceconfigwizardstartpage.h" #include "maemodeviceconfigurations.h" +#include "maemoglobal.h" #include "maemokeydeployer.h" #include <utils/fileutils.h> @@ -60,7 +61,7 @@ struct WizardData { QString configName; QString hostName; - MaemoGlobal::OsVersion osVersion; + MaemoDeviceConfig::OsVersion osVersion; SshConnectionParameters::AuthenticationType authType; MaemoDeviceConfig::DeviceType deviceType; QString privateKeyFilePath; @@ -84,10 +85,10 @@ public: m_ui->setupUi(this); setTitle(tr("General Information")); setSubTitle(QLatin1String(" ")); // For Qt bug (background color) - m_ui->fremantleButton->setText(MaemoGlobal::osVersionToString(MaemoGlobal::Maemo5)); - m_ui->harmattanButton->setText(MaemoGlobal::osVersionToString(MaemoGlobal::Maemo6)); - m_ui->meegoButton->setText(MaemoGlobal::osVersionToString(MaemoGlobal::Meego)); - m_ui->genericLinuxButton->setText(MaemoGlobal::osVersionToString(MaemoGlobal::GenericLinux)); + m_ui->fremantleButton->setText(MaemoGlobal::osVersionToString(MaemoDeviceConfig::Maemo5)); + m_ui->harmattanButton->setText(MaemoGlobal::osVersionToString(MaemoDeviceConfig::Maemo6)); + m_ui->meegoButton->setText(MaemoGlobal::osVersionToString(MaemoDeviceConfig::Meego)); + m_ui->genericLinuxButton->setText(MaemoGlobal::osVersionToString(MaemoDeviceConfig::GenericLinux)); QButtonGroup *buttonGroup = new QButtonGroup(this); buttonGroup->setExclusive(true); @@ -131,12 +132,12 @@ public: : m_ui->hostNameLineEdit->text().trimmed(); } - MaemoGlobal::OsVersion osVersion() const + MaemoDeviceConfig::OsVersion osVersion() const { - return m_ui->fremantleButton->isChecked() ? MaemoGlobal::Maemo5 - : m_ui->harmattanButton->isChecked() ? MaemoGlobal::Maemo6 - : m_ui->meegoButton->isChecked() ? MaemoGlobal::Meego - : MaemoGlobal::GenericLinux; + return m_ui->fremantleButton->isChecked() ? MaemoDeviceConfig::Maemo5 + : m_ui->harmattanButton->isChecked() ? MaemoDeviceConfig::Maemo6 + : m_ui->meegoButton->isChecked() ? MaemoDeviceConfig::Meego + : MaemoDeviceConfig::GenericLinux; } MaemoDeviceConfig::DeviceType deviceType() const @@ -155,7 +156,7 @@ private slots: void handleOsTypeChanged() { - if (osVersion() == MaemoGlobal::GenericLinux) { + if (osVersion() == MaemoDeviceConfig::GenericLinux) { m_ui->hwButton->setChecked(true); m_ui->hwButton->setEnabled(false); m_ui->qemuButton->setEnabled(false); @@ -640,7 +641,7 @@ void MaemoDeviceConfigWizard::createDeviceConfig() while (d->devConfigs->hasConfig(name)); } - if (d->wizardData.osVersion == MaemoGlobal::GenericLinux) { + if (d->wizardData.osVersion == MaemoDeviceConfig::GenericLinux) { if (d->wizardData.authType == SshConnectionParameters::AuthenticationByPassword) { d->devConfigs->addGenericLinuxConfigurationUsingPassword(name, d->wizardData.hostName, d->wizardData.userName, @@ -671,7 +672,7 @@ int MaemoDeviceConfigWizard::nextId() const if (d->wizardData.deviceType == MaemoDeviceConfig::Emulator) { return FinalPageId; - } else if (d->wizardData.osVersion == MaemoGlobal::GenericLinux) { + } else if (d->wizardData.osVersion == MaemoDeviceConfig::GenericLinux) { return LoginDataPageId; } else { return PreviousKeySetupCheckPageId; |