forked from qt-creator/qt-creator
RemoteLinux: Rename a bunch of classes.
They still had "Maemo" in their names, even though they are not Maemo-specific (and will not move to the respective plugin). Change-Id: I5eec0de27db8340f2a987a6ed685b3ae46ec17b0 Reviewed-on: http://codereview.qt.nokia.com/2036 Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -32,8 +32,8 @@
|
|||||||
#include "abstractremotelinuxdeploystep.h"
|
#include "abstractremotelinuxdeploystep.h"
|
||||||
|
|
||||||
#include "abstractremotelinuxdeployservice.h"
|
#include "abstractremotelinuxdeployservice.h"
|
||||||
#include "maemodeploystepwidget.h"
|
|
||||||
#include "remotelinuxdeployconfiguration.h"
|
#include "remotelinuxdeployconfiguration.h"
|
||||||
|
#include "remotelinuxdeploystepwidget.h"
|
||||||
|
|
||||||
#include <projectexplorer/projectexplorerconstants.h>
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
#include <qt4projectmanager/qt4buildconfiguration.h>
|
#include <qt4projectmanager/qt4buildconfiguration.h>
|
||||||
@@ -113,7 +113,7 @@ void AbstractRemoteLinuxDeployStep::cancel()
|
|||||||
|
|
||||||
BuildStepConfigWidget *AbstractRemoteLinuxDeployStep::createConfigWidget()
|
BuildStepConfigWidget *AbstractRemoteLinuxDeployStep::createConfigWidget()
|
||||||
{
|
{
|
||||||
return new Internal::MaemoDeployStepBaseWidget(this);
|
return new RemoteLinuxDeployStepWidget(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoteLinuxDeployConfiguration *AbstractRemoteLinuxDeployStep::deployConfiguration() const
|
RemoteLinuxDeployConfiguration *AbstractRemoteLinuxDeployStep::deployConfiguration() const
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace Internal {
|
|||||||
class LinuxDeviceConfigurations : public QAbstractListModel
|
class LinuxDeviceConfigurations : public QAbstractListModel
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
friend class MaemoDeviceConfigurationsSettingsWidget;
|
friend class LinuxDeviceConfigurationsSettingsWidget;
|
||||||
public:
|
public:
|
||||||
static LinuxDeviceConfigurations *instance(QObject *parent = 0);
|
static LinuxDeviceConfigurations *instance(QObject *parent = 0);
|
||||||
|
|
||||||
|
|||||||
@@ -28,15 +28,14 @@
|
|||||||
** Nokia at info@qt.nokia.com.
|
** Nokia at info@qt.nokia.com.
|
||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
#include "linuxdeviceconfigurationssettingswidget.h"
|
||||||
|
|
||||||
#include "maemodeviceconfigurationssettingswidget.h"
|
#include "ui_linuxdeviceconfigurationssettingswidget.h"
|
||||||
|
|
||||||
#include "ui_maemodeviceconfigurationssettingswidget.h"
|
|
||||||
|
|
||||||
#include "linuxdeviceconfigurations.h"
|
#include "linuxdeviceconfigurations.h"
|
||||||
#include "linuxdevicefactoryselectiondialog.h"
|
#include "linuxdevicefactoryselectiondialog.h"
|
||||||
#include "maemoglobal.h"
|
#include "maemoglobal.h"
|
||||||
#include "maemosshconfigdialog.h"
|
#include "sshkeycreationdialog.h"
|
||||||
|
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
@@ -96,9 +95,9 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
MaemoDeviceConfigurationsSettingsWidget::MaemoDeviceConfigurationsSettingsWidget(QWidget *parent)
|
LinuxDeviceConfigurationsSettingsWidget::LinuxDeviceConfigurationsSettingsWidget(QWidget *parent)
|
||||||
: QWidget(parent),
|
: QWidget(parent),
|
||||||
m_ui(new Ui_MaemoDeviceConfigurationsSettingsWidget),
|
m_ui(new Ui_LinuxDeviceConfigurationsSettingsWidget),
|
||||||
m_devConfigs(LinuxDeviceConfigurations::cloneInstance()),
|
m_devConfigs(LinuxDeviceConfigurations::cloneInstance()),
|
||||||
m_nameValidator(new NameValidator(m_devConfigs.data(), this)),
|
m_nameValidator(new NameValidator(m_devConfigs.data(), this)),
|
||||||
m_saveSettingsRequested(false),
|
m_saveSettingsRequested(false),
|
||||||
@@ -109,7 +108,7 @@ MaemoDeviceConfigurationsSettingsWidget::MaemoDeviceConfigurationsSettingsWidget
|
|||||||
SLOT(handleAdditionalActionRequest(QString)));
|
SLOT(handleAdditionalActionRequest(QString)));
|
||||||
}
|
}
|
||||||
|
|
||||||
MaemoDeviceConfigurationsSettingsWidget::~MaemoDeviceConfigurationsSettingsWidget()
|
LinuxDeviceConfigurationsSettingsWidget::~LinuxDeviceConfigurationsSettingsWidget()
|
||||||
{
|
{
|
||||||
if (m_saveSettingsRequested) {
|
if (m_saveSettingsRequested) {
|
||||||
Core::ICore::instance()->settings()->setValue(LastDeviceConfigIndexKey,
|
Core::ICore::instance()->settings()->setValue(LastDeviceConfigIndexKey,
|
||||||
@@ -119,7 +118,7 @@ MaemoDeviceConfigurationsSettingsWidget::~MaemoDeviceConfigurationsSettingsWidge
|
|||||||
delete m_ui;
|
delete m_ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString MaemoDeviceConfigurationsSettingsWidget::searchKeywords() const
|
QString LinuxDeviceConfigurationsSettingsWidget::searchKeywords() const
|
||||||
{
|
{
|
||||||
QString rc;
|
QString rc;
|
||||||
QTextStream(&rc) << m_ui->configurationLabel->text()
|
QTextStream(&rc) << m_ui->configurationLabel->text()
|
||||||
@@ -145,7 +144,7 @@ QString MaemoDeviceConfigurationsSettingsWidget::searchKeywords() const
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::initGui()
|
void LinuxDeviceConfigurationsSettingsWidget::initGui()
|
||||||
{
|
{
|
||||||
m_ui->setupUi(this);
|
m_ui->setupUi(this);
|
||||||
m_ui->configurationComboBox->setModel(m_devConfigs.data());
|
m_ui->configurationComboBox->setModel(m_devConfigs.data());
|
||||||
@@ -169,7 +168,7 @@ void MaemoDeviceConfigurationsSettingsWidget::initGui()
|
|||||||
SLOT(setDefaultDevice()));
|
SLOT(setDefaultDevice()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::addConfig()
|
void LinuxDeviceConfigurationsSettingsWidget::addConfig()
|
||||||
{
|
{
|
||||||
const QList<ILinuxDeviceConfigurationFactory *> &factories
|
const QList<ILinuxDeviceConfigurationFactory *> &factories
|
||||||
= ExtensionSystem::PluginManager::instance()->getObjects<ILinuxDeviceConfigurationFactory>();
|
= ExtensionSystem::PluginManager::instance()->getObjects<ILinuxDeviceConfigurationFactory>();
|
||||||
@@ -190,14 +189,14 @@ void MaemoDeviceConfigurationsSettingsWidget::addConfig()
|
|||||||
m_ui->configurationComboBox->setCurrentIndex(m_ui->configurationComboBox->count()-1);
|
m_ui->configurationComboBox->setCurrentIndex(m_ui->configurationComboBox->count()-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::deleteConfig()
|
void LinuxDeviceConfigurationsSettingsWidget::deleteConfig()
|
||||||
{
|
{
|
||||||
m_devConfigs->removeConfiguration(currentIndex());
|
m_devConfigs->removeConfiguration(currentIndex());
|
||||||
if (m_devConfigs->rowCount() == 0)
|
if (m_devConfigs->rowCount() == 0)
|
||||||
currentConfigChanged(-1);
|
currentConfigChanged(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::displayCurrent()
|
void LinuxDeviceConfigurationsSettingsWidget::displayCurrent()
|
||||||
{
|
{
|
||||||
const LinuxDeviceConfiguration::ConstPtr ¤t = currentConfig();
|
const LinuxDeviceConfiguration::ConstPtr ¤t = currentConfig();
|
||||||
m_ui->defaultDeviceButton->setEnabled(!current->isDefault());
|
m_ui->defaultDeviceButton->setEnabled(!current->isDefault());
|
||||||
@@ -220,7 +219,7 @@ void MaemoDeviceConfigurationsSettingsWidget::displayCurrent()
|
|||||||
fillInValues();
|
fillInValues();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::fillInValues()
|
void LinuxDeviceConfigurationsSettingsWidget::fillInValues()
|
||||||
{
|
{
|
||||||
const LinuxDeviceConfiguration::ConstPtr ¤t = currentConfig();
|
const LinuxDeviceConfiguration::ConstPtr ¤t = currentConfig();
|
||||||
m_ui->nameLineEdit->setText(current->name());
|
m_ui->nameLineEdit->setText(current->name());
|
||||||
@@ -239,24 +238,24 @@ void MaemoDeviceConfigurationsSettingsWidget::fillInValues()
|
|||||||
m_ui->sshPortSpinBox->setReadOnly(isSimulator);
|
m_ui->sshPortSpinBox->setReadOnly(isSimulator);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::saveSettings()
|
void LinuxDeviceConfigurationsSettingsWidget::saveSettings()
|
||||||
{
|
{
|
||||||
// We must defer this step because of a stupid bug on MacOS. See QTCREATORBUG-1675.
|
// We must defer this step because of a stupid bug on MacOS. See QTCREATORBUG-1675.
|
||||||
m_saveSettingsRequested = true;
|
m_saveSettingsRequested = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int MaemoDeviceConfigurationsSettingsWidget::currentIndex() const
|
int LinuxDeviceConfigurationsSettingsWidget::currentIndex() const
|
||||||
{
|
{
|
||||||
return m_ui->configurationComboBox->currentIndex();
|
return m_ui->configurationComboBox->currentIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
LinuxDeviceConfiguration::ConstPtr MaemoDeviceConfigurationsSettingsWidget::currentConfig() const
|
LinuxDeviceConfiguration::ConstPtr LinuxDeviceConfigurationsSettingsWidget::currentConfig() const
|
||||||
{
|
{
|
||||||
Q_ASSERT(currentIndex() != -1);
|
Q_ASSERT(currentIndex() != -1);
|
||||||
return m_devConfigs->deviceAt(currentIndex());
|
return m_devConfigs->deviceAt(currentIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::configNameEditingFinished()
|
void LinuxDeviceConfigurationsSettingsWidget::configNameEditingFinished()
|
||||||
{
|
{
|
||||||
if (m_ui->configurationComboBox->count() == 0)
|
if (m_ui->configurationComboBox->count() == 0)
|
||||||
return;
|
return;
|
||||||
@@ -266,7 +265,7 @@ void MaemoDeviceConfigurationsSettingsWidget::configNameEditingFinished()
|
|||||||
m_nameValidator->setDisplayName(newName);
|
m_nameValidator->setDisplayName(newName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::authenticationTypeChanged()
|
void LinuxDeviceConfigurationsSettingsWidget::authenticationTypeChanged()
|
||||||
{
|
{
|
||||||
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
||||||
const bool usePassword = m_ui->passwordButton->isChecked();
|
const bool usePassword = m_ui->passwordButton->isChecked();
|
||||||
@@ -281,84 +280,84 @@ void MaemoDeviceConfigurationsSettingsWidget::authenticationTypeChanged()
|
|||||||
m_ui->makeKeyFileDefaultButton->setEnabled(!usePassword);
|
m_ui->makeKeyFileDefaultButton->setEnabled(!usePassword);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::hostNameEditingFinished()
|
void LinuxDeviceConfigurationsSettingsWidget::hostNameEditingFinished()
|
||||||
{
|
{
|
||||||
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
||||||
sshParams.host = m_ui->hostLineEdit->text();
|
sshParams.host = m_ui->hostLineEdit->text();
|
||||||
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::sshPortEditingFinished()
|
void LinuxDeviceConfigurationsSettingsWidget::sshPortEditingFinished()
|
||||||
{
|
{
|
||||||
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
||||||
sshParams.port = m_ui->sshPortSpinBox->value();
|
sshParams.port = m_ui->sshPortSpinBox->value();
|
||||||
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::timeoutEditingFinished()
|
void LinuxDeviceConfigurationsSettingsWidget::timeoutEditingFinished()
|
||||||
{
|
{
|
||||||
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
||||||
sshParams.timeout = m_ui->timeoutSpinBox->value();
|
sshParams.timeout = m_ui->timeoutSpinBox->value();
|
||||||
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::userNameEditingFinished()
|
void LinuxDeviceConfigurationsSettingsWidget::userNameEditingFinished()
|
||||||
{
|
{
|
||||||
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
||||||
sshParams.userName = m_ui->userLineEdit->text();
|
sshParams.userName = m_ui->userLineEdit->text();
|
||||||
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::passwordEditingFinished()
|
void LinuxDeviceConfigurationsSettingsWidget::passwordEditingFinished()
|
||||||
{
|
{
|
||||||
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
||||||
sshParams.password = m_ui->pwdLineEdit->text();
|
sshParams.password = m_ui->pwdLineEdit->text();
|
||||||
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::keyFileEditingFinished()
|
void LinuxDeviceConfigurationsSettingsWidget::keyFileEditingFinished()
|
||||||
{
|
{
|
||||||
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
SshConnectionParameters sshParams = currentConfig()->sshParameters();
|
||||||
sshParams.privateKeyFile = m_ui->keyFileLineEdit->path();
|
sshParams.privateKeyFile = m_ui->keyFileLineEdit->path();
|
||||||
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
m_devConfigs->setSshParameters(currentIndex(), sshParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::handleFreePortsChanged()
|
void LinuxDeviceConfigurationsSettingsWidget::handleFreePortsChanged()
|
||||||
{
|
{
|
||||||
m_devConfigs->setFreePorts(currentIndex(), PortList::fromString(m_ui->portsLineEdit->text()));
|
m_devConfigs->setFreePorts(currentIndex(), PortList::fromString(m_ui->portsLineEdit->text()));
|
||||||
updatePortsWarningLabel();
|
updatePortsWarningLabel();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::showPassword(bool showClearText)
|
void LinuxDeviceConfigurationsSettingsWidget::showPassword(bool showClearText)
|
||||||
{
|
{
|
||||||
m_ui->pwdLineEdit->setEchoMode(showClearText
|
m_ui->pwdLineEdit->setEchoMode(showClearText
|
||||||
? QLineEdit::Normal : QLineEdit::Password);
|
? QLineEdit::Normal : QLineEdit::Password);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::showGenerateSshKeyDialog()
|
void LinuxDeviceConfigurationsSettingsWidget::showGenerateSshKeyDialog()
|
||||||
{
|
{
|
||||||
MaemoSshConfigDialog dialog(this);
|
SshKeyCreationDialog dialog(this);
|
||||||
dialog.exec();
|
dialog.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::setDefaultKeyFilePath()
|
void LinuxDeviceConfigurationsSettingsWidget::setDefaultKeyFilePath()
|
||||||
{
|
{
|
||||||
m_devConfigs->setDefaultSshKeyFilePath(m_ui->keyFileLineEdit->path());
|
m_devConfigs->setDefaultSshKeyFilePath(m_ui->keyFileLineEdit->path());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::setDefaultDevice()
|
void LinuxDeviceConfigurationsSettingsWidget::setDefaultDevice()
|
||||||
{
|
{
|
||||||
m_devConfigs->setDefaultDevice(currentIndex());
|
m_devConfigs->setDefaultDevice(currentIndex());
|
||||||
m_ui->defaultDeviceButton->setEnabled(false);
|
m_ui->defaultDeviceButton->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::setPrivateKey(const QString &path)
|
void LinuxDeviceConfigurationsSettingsWidget::setPrivateKey(const QString &path)
|
||||||
{
|
{
|
||||||
m_ui->keyFileLineEdit->setPath(path);
|
m_ui->keyFileLineEdit->setPath(path);
|
||||||
keyFileEditingFinished();
|
keyFileEditingFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::currentConfigChanged(int index)
|
void LinuxDeviceConfigurationsSettingsWidget::currentConfigChanged(int index)
|
||||||
{
|
{
|
||||||
qDeleteAll(m_additionalActionButtons);
|
qDeleteAll(m_additionalActionButtons);
|
||||||
m_additionalActionButtons.clear();
|
m_additionalActionButtons.clear();
|
||||||
@@ -387,7 +386,7 @@ void MaemoDeviceConfigurationsSettingsWidget::currentConfigChanged(int index)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::clearDetails()
|
void LinuxDeviceConfigurationsSettingsWidget::clearDetails()
|
||||||
{
|
{
|
||||||
m_ui->nameLineEdit->clear();
|
m_ui->nameLineEdit->clear();
|
||||||
m_ui->osTypeValueLabel->clear();
|
m_ui->osTypeValueLabel->clear();
|
||||||
@@ -402,7 +401,7 @@ void MaemoDeviceConfigurationsSettingsWidget::clearDetails()
|
|||||||
m_ui->keyFileLineEdit->lineEdit()->clear();
|
m_ui->keyFileLineEdit->lineEdit()->clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::updatePortsWarningLabel()
|
void LinuxDeviceConfigurationsSettingsWidget::updatePortsWarningLabel()
|
||||||
{
|
{
|
||||||
if (currentConfig()->freePorts().hasMore()) {
|
if (currentConfig()->freePorts().hasMore()) {
|
||||||
m_ui->portsWarningLabel->clear();
|
m_ui->portsWarningLabel->clear();
|
||||||
@@ -412,7 +411,7 @@ void MaemoDeviceConfigurationsSettingsWidget::updatePortsWarningLabel()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const ILinuxDeviceConfigurationFactory *MaemoDeviceConfigurationsSettingsWidget::factoryForCurrentConfig() const
|
const ILinuxDeviceConfigurationFactory *LinuxDeviceConfigurationsSettingsWidget::factoryForCurrentConfig() const
|
||||||
{
|
{
|
||||||
Q_ASSERT(currentConfig());
|
Q_ASSERT(currentConfig());
|
||||||
const QList<ILinuxDeviceConfigurationFactory *> &factories
|
const QList<ILinuxDeviceConfigurationFactory *> &factories
|
||||||
@@ -424,7 +423,7 @@ const ILinuxDeviceConfigurationFactory *MaemoDeviceConfigurationsSettingsWidget:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceConfigurationsSettingsWidget::handleAdditionalActionRequest(const QString &actionId)
|
void LinuxDeviceConfigurationsSettingsWidget::handleAdditionalActionRequest(const QString &actionId)
|
||||||
{
|
{
|
||||||
const ILinuxDeviceConfigurationFactory * const factory = factoryForCurrentConfig();
|
const ILinuxDeviceConfigurationFactory * const factory = factoryForCurrentConfig();
|
||||||
Q_ASSERT(factory);
|
Q_ASSERT(factory);
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#ifndef MAEMODEVICECONFIGURATIONSSETTINGSWIDGET_H
|
#ifndef LINUXDEVICECONFIGURATIONSSETTINGSWIDGET_H
|
||||||
#define MAEMODEVICECONFIGURATIONSSETTINGSWIDGET_H
|
#define LINUXDEVICECONFIGURATIONSSETTINGSWIDGET_H
|
||||||
|
|
||||||
#include <QtCore/QList>
|
#include <QtCore/QList>
|
||||||
#include <QtCore/QScopedPointer>
|
#include <QtCore/QScopedPointer>
|
||||||
@@ -42,7 +42,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
class QLineEdit;
|
class QLineEdit;
|
||||||
class QSignalMapper;
|
class QSignalMapper;
|
||||||
|
|
||||||
class Ui_MaemoDeviceConfigurationsSettingsWidget;
|
class Ui_LinuxDeviceConfigurationsSettingsWidget;
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
@@ -54,12 +54,12 @@ namespace Internal {
|
|||||||
class NameValidator;
|
class NameValidator;
|
||||||
class LinuxDeviceConfigurations;
|
class LinuxDeviceConfigurations;
|
||||||
|
|
||||||
class MaemoDeviceConfigurationsSettingsWidget : public QWidget
|
class LinuxDeviceConfigurationsSettingsWidget : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
MaemoDeviceConfigurationsSettingsWidget(QWidget *parent);
|
LinuxDeviceConfigurationsSettingsWidget(QWidget *parent);
|
||||||
~MaemoDeviceConfigurationsSettingsWidget();
|
~LinuxDeviceConfigurationsSettingsWidget();
|
||||||
|
|
||||||
void saveSettings();
|
void saveSettings();
|
||||||
QString searchKeywords() const;
|
QString searchKeywords() const;
|
||||||
@@ -97,7 +97,7 @@ private:
|
|||||||
void updatePortsWarningLabel();
|
void updatePortsWarningLabel();
|
||||||
const ILinuxDeviceConfigurationFactory *factoryForCurrentConfig() const;
|
const ILinuxDeviceConfigurationFactory *factoryForCurrentConfig() const;
|
||||||
|
|
||||||
Ui_MaemoDeviceConfigurationsSettingsWidget *m_ui;
|
Ui_LinuxDeviceConfigurationsSettingsWidget *m_ui;
|
||||||
const QScopedPointer<LinuxDeviceConfigurations> m_devConfigs;
|
const QScopedPointer<LinuxDeviceConfigurations> m_devConfigs;
|
||||||
NameValidator * const m_nameValidator;
|
NameValidator * const m_nameValidator;
|
||||||
bool m_saveSettingsRequested;
|
bool m_saveSettingsRequested;
|
||||||
@@ -108,4 +108,4 @@ private:
|
|||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace RemoteLinux
|
} // namespace RemoteLinux
|
||||||
|
|
||||||
#endif // MAEMODEVICECONFIGURATIONSSETTINGSWIDGET_H
|
#endif // LINUXDEVICECONFIGURATIONSSETTINGSWIDGET_H
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>MaemoDeviceConfigurationsSettingsWidget</class>
|
<class>LinuxDeviceConfigurationsSettingsWidget</class>
|
||||||
<widget class="QWidget" name="MaemoDeviceConfigurationsSettingsWidget">
|
<widget class="QWidget" name="LinuxDeviceConfigurationsSettingsWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>708</width>
|
<width>726</width>
|
||||||
<height>421</height>
|
<height>421</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -457,7 +457,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>hostLineEdit</sender>
|
<sender>hostLineEdit</sender>
|
||||||
<signal>editingFinished()</signal>
|
<signal>editingFinished()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>hostNameEditingFinished()</slot>
|
<slot>hostNameEditingFinished()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -473,7 +473,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>userLineEdit</sender>
|
<sender>userLineEdit</sender>
|
||||||
<signal>editingFinished()</signal>
|
<signal>editingFinished()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>userNameEditingFinished()</slot>
|
<slot>userNameEditingFinished()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -489,7 +489,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>pwdLineEdit</sender>
|
<sender>pwdLineEdit</sender>
|
||||||
<signal>editingFinished()</signal>
|
<signal>editingFinished()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>passwordEditingFinished()</slot>
|
<slot>passwordEditingFinished()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -505,7 +505,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>addConfigButton</sender>
|
<sender>addConfigButton</sender>
|
||||||
<signal>clicked()</signal>
|
<signal>clicked()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>addConfig()</slot>
|
<slot>addConfig()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -521,7 +521,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>passwordButton</sender>
|
<sender>passwordButton</sender>
|
||||||
<signal>toggled(bool)</signal>
|
<signal>toggled(bool)</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>authenticationTypeChanged()</slot>
|
<slot>authenticationTypeChanged()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -537,7 +537,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>keyFileLineEdit</sender>
|
<sender>keyFileLineEdit</sender>
|
||||||
<signal>editingFinished()</signal>
|
<signal>editingFinished()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>keyFileEditingFinished()</slot>
|
<slot>keyFileEditingFinished()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -553,7 +553,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>keyFileLineEdit</sender>
|
<sender>keyFileLineEdit</sender>
|
||||||
<signal>browsingFinished()</signal>
|
<signal>browsingFinished()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>keyFileEditingFinished()</slot>
|
<slot>keyFileEditingFinished()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -569,7 +569,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>keyButton</sender>
|
<sender>keyButton</sender>
|
||||||
<signal>toggled(bool)</signal>
|
<signal>toggled(bool)</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>authenticationTypeChanged()</slot>
|
<slot>authenticationTypeChanged()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -585,7 +585,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>nameLineEdit</sender>
|
<sender>nameLineEdit</sender>
|
||||||
<signal>editingFinished()</signal>
|
<signal>editingFinished()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>configNameEditingFinished()</slot>
|
<slot>configNameEditingFinished()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -601,7 +601,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>generateKeyButton</sender>
|
<sender>generateKeyButton</sender>
|
||||||
<signal>clicked()</signal>
|
<signal>clicked()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>showGenerateSshKeyDialog()</slot>
|
<slot>showGenerateSshKeyDialog()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -617,7 +617,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>timeoutSpinBox</sender>
|
<sender>timeoutSpinBox</sender>
|
||||||
<signal>editingFinished()</signal>
|
<signal>editingFinished()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>timeoutEditingFinished()</slot>
|
<slot>timeoutEditingFinished()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -633,7 +633,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>timeoutSpinBox</sender>
|
<sender>timeoutSpinBox</sender>
|
||||||
<signal>valueChanged(int)</signal>
|
<signal>valueChanged(int)</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>timeoutEditingFinished()</slot>
|
<slot>timeoutEditingFinished()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -649,7 +649,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>sshPortSpinBox</sender>
|
<sender>sshPortSpinBox</sender>
|
||||||
<signal>editingFinished()</signal>
|
<signal>editingFinished()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>sshPortEditingFinished()</slot>
|
<slot>sshPortEditingFinished()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -665,7 +665,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>sshPortSpinBox</sender>
|
<sender>sshPortSpinBox</sender>
|
||||||
<signal>valueChanged(int)</signal>
|
<signal>valueChanged(int)</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>sshPortEditingFinished()</slot>
|
<slot>sshPortEditingFinished()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -681,7 +681,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>showPasswordCheckBox</sender>
|
<sender>showPasswordCheckBox</sender>
|
||||||
<signal>toggled(bool)</signal>
|
<signal>toggled(bool)</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>showPassword(bool)</slot>
|
<slot>showPassword(bool)</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -697,7 +697,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>portsLineEdit</sender>
|
<sender>portsLineEdit</sender>
|
||||||
<signal>editingFinished()</signal>
|
<signal>editingFinished()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>handleFreePortsChanged()</slot>
|
<slot>handleFreePortsChanged()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -713,7 +713,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>removeConfigButton</sender>
|
<sender>removeConfigButton</sender>
|
||||||
<signal>clicked()</signal>
|
<signal>clicked()</signal>
|
||||||
<receiver>MaemoDeviceConfigurationsSettingsWidget</receiver>
|
<receiver>LinuxDeviceConfigurationsSettingsWidget</receiver>
|
||||||
<slot>deleteConfig()</slot>
|
<slot>deleteConfig()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -37,9 +37,9 @@
|
|||||||
#include "deploymentinfo.h"
|
#include "deploymentinfo.h"
|
||||||
#include "linuxdeviceconfigurations.h"
|
#include "linuxdeviceconfigurations.h"
|
||||||
#include "maemoglobal.h"
|
#include "maemoglobal.h"
|
||||||
#include "maemopertargetdeviceconfigurationlistmodel.h"
|
|
||||||
#include "maemosettingspages.h"
|
#include "maemosettingspages.h"
|
||||||
#include "remotelinuxdeployconfiguration.h"
|
#include "remotelinuxdeployconfiguration.h"
|
||||||
|
#include "typespecificdeviceconfigurationlistmodel.h"
|
||||||
|
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
|||||||
@@ -38,10 +38,10 @@
|
|||||||
|
|
||||||
#include "maddedevicetester.h"
|
#include "maddedevicetester.h"
|
||||||
#include "maemoglobal.h"
|
#include "maemoglobal.h"
|
||||||
#include "maemokeydeployer.h"
|
|
||||||
|
|
||||||
#include <remotelinux/genericlinuxdeviceconfigurationwizardpages.h>
|
#include <remotelinux/genericlinuxdeviceconfigurationwizardpages.h>
|
||||||
#include <remotelinux/linuxdevicetestdialog.h>
|
#include <remotelinux/linuxdevicetestdialog.h>
|
||||||
|
#include <remotelinux/sshkeydeployer.h>
|
||||||
#include <utils/fileutils.h>
|
#include <utils/fileutils.h>
|
||||||
#include <utils/ssh/sshkeygenerator.h>
|
#include <utils/ssh/sshkeygenerator.h>
|
||||||
|
|
||||||
@@ -395,7 +395,7 @@ public:
|
|||||||
: QWizardPage(parent),
|
: QWizardPage(parent),
|
||||||
m_ui(new Ui::MaemoDeviceConfigWizardKeyDeploymentPage),
|
m_ui(new Ui::MaemoDeviceConfigWizardKeyDeploymentPage),
|
||||||
m_wizardData(wizardData),
|
m_wizardData(wizardData),
|
||||||
m_keyDeployer(new MaemoKeyDeployer(this))
|
m_keyDeployer(new SshKeyDeployer(this))
|
||||||
{
|
{
|
||||||
m_ui->setupUi(this);
|
m_ui->setupUi(this);
|
||||||
m_instructionTextTemplate = m_ui->instructionLabel->text();
|
m_instructionTextTemplate = m_ui->instructionLabel->text();
|
||||||
@@ -486,7 +486,7 @@ private:
|
|||||||
const QScopedPointer<Ui::MaemoDeviceConfigWizardKeyDeploymentPage> m_ui;
|
const QScopedPointer<Ui::MaemoDeviceConfigWizardKeyDeploymentPage> m_ui;
|
||||||
bool m_isComplete;
|
bool m_isComplete;
|
||||||
const WizardData &m_wizardData;
|
const WizardData &m_wizardData;
|
||||||
MaemoKeyDeployer * const m_keyDeployer;
|
SshKeyDeployer * const m_keyDeployer;
|
||||||
QString m_instructionTextTemplate;
|
QString m_instructionTextTemplate;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -31,8 +31,8 @@
|
|||||||
|
|
||||||
#include "maemosettingspages.h"
|
#include "maemosettingspages.h"
|
||||||
|
|
||||||
|
#include "linuxdeviceconfigurationssettingswidget.h"
|
||||||
#include "maemoconstants.h"
|
#include "maemoconstants.h"
|
||||||
#include "maemodeviceconfigurationssettingswidget.h"
|
|
||||||
#include "maemoqemusettings.h"
|
#include "maemoqemusettings.h"
|
||||||
#include "maemoqemusettingswidget.h"
|
#include "maemoqemusettingswidget.h"
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ bool MaemoDeviceConfigurationsSettingsPage::matches(const QString &searchKeyWord
|
|||||||
|
|
||||||
QWidget *MaemoDeviceConfigurationsSettingsPage::createPage(QWidget *parent)
|
QWidget *MaemoDeviceConfigurationsSettingsPage::createPage(QWidget *parent)
|
||||||
{
|
{
|
||||||
m_widget = new MaemoDeviceConfigurationsSettingsWidget(parent);
|
m_widget = new LinuxDeviceConfigurationsSettingsWidget(parent);
|
||||||
if (m_keywords.isEmpty())
|
if (m_keywords.isEmpty())
|
||||||
m_keywords = m_widget->searchKeywords();
|
m_keywords = m_widget->searchKeywords();
|
||||||
return m_widget;
|
return m_widget;
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
namespace RemoteLinux{
|
namespace RemoteLinux{
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class MaemoDeviceConfigurationsSettingsWidget;
|
class LinuxDeviceConfigurationsSettingsWidget;
|
||||||
class MaemoQemuSettingsWidget;
|
class MaemoQemuSettingsWidget;
|
||||||
|
|
||||||
class MaemoDeviceConfigurationsSettingsPage : public Core::IOptionsPage
|
class MaemoDeviceConfigurationsSettingsPage : public Core::IOptionsPage
|
||||||
@@ -62,7 +62,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_keywords;
|
QString m_keywords;
|
||||||
MaemoDeviceConfigurationsSettingsWidget *m_widget;
|
LinuxDeviceConfigurationsSettingsWidget *m_widget;
|
||||||
};
|
};
|
||||||
|
|
||||||
class MaemoQemuSettingsPage : public Core::IOptionsPage
|
class MaemoQemuSettingsPage : public Core::IOptionsPage
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
#include "publickeydeploymentdialog.h"
|
#include "publickeydeploymentdialog.h"
|
||||||
|
|
||||||
#include "linuxdeviceconfiguration.h"
|
#include "linuxdeviceconfiguration.h"
|
||||||
#include "maemokeydeployer.h"
|
#include "sshkeydeployer.h"
|
||||||
|
|
||||||
#include <QtGui/QFileDialog>
|
#include <QtGui/QFileDialog>
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ namespace Internal {
|
|||||||
class PublicKeyDeploymentDialogPrivate
|
class PublicKeyDeploymentDialogPrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MaemoKeyDeployer *keyDeployer;
|
SshKeyDeployer *keyDeployer;
|
||||||
bool done;
|
bool done;
|
||||||
};
|
};
|
||||||
} // namespace Internal;
|
} // namespace Internal;
|
||||||
@@ -56,7 +56,7 @@ PublicKeyDeploymentDialog::PublicKeyDeploymentDialog(const LinuxDeviceConfigurat
|
|||||||
setMinimumDuration(0);
|
setMinimumDuration(0);
|
||||||
setMaximum(1);
|
setMaximum(1);
|
||||||
|
|
||||||
m_d->keyDeployer = new MaemoKeyDeployer(this);
|
m_d->keyDeployer = new SshKeyDeployer(this);
|
||||||
m_d->done = false;
|
m_d->done = false;
|
||||||
|
|
||||||
setLabelText(tr("Waiting for file name..."));
|
setLabelText(tr("Waiting for file name..."));
|
||||||
|
|||||||
@@ -12,20 +12,16 @@ HEADERS += \
|
|||||||
maemoruncontrol.h \
|
maemoruncontrol.h \
|
||||||
maemorunfactories.h \
|
maemorunfactories.h \
|
||||||
maemosettingspages.h \
|
maemosettingspages.h \
|
||||||
maemodeviceconfigurationssettingswidget.h \
|
|
||||||
maemosshconfigdialog.h \
|
|
||||||
maemotoolchain.h \
|
maemotoolchain.h \
|
||||||
maemopackagecreationstep.h \
|
maemopackagecreationstep.h \
|
||||||
maemopackagecreationfactory.h \
|
maemopackagecreationfactory.h \
|
||||||
maemopackagecreationwidget.h \
|
maemopackagecreationwidget.h \
|
||||||
maemoqemumanager.h \
|
maemoqemumanager.h \
|
||||||
maemodeploystepwidget.h \
|
|
||||||
maemodeploystepfactory.h \
|
maemodeploystepfactory.h \
|
||||||
maemoglobal.h \
|
maemoglobal.h \
|
||||||
maemosshrunner.h \
|
maemosshrunner.h \
|
||||||
maemodebugsupport.h \
|
maemodebugsupport.h \
|
||||||
maemoremotemountsmodel.h \
|
maemoremotemountsmodel.h \
|
||||||
maemodeviceenvreader.h \
|
|
||||||
maemomountspecification.h \
|
maemomountspecification.h \
|
||||||
maemoremotemounter.h \
|
maemoremotemounter.h \
|
||||||
maemoprofilesupdatedialog.h \
|
maemoprofilesupdatedialog.h \
|
||||||
@@ -46,8 +42,6 @@ HEADERS += \
|
|||||||
qt4maemotarget.h \
|
qt4maemotarget.h \
|
||||||
qt4maemodeployconfiguration.h \
|
qt4maemodeployconfiguration.h \
|
||||||
maemodeviceconfigwizard.h \
|
maemodeviceconfigwizard.h \
|
||||||
maemokeydeployer.h \
|
|
||||||
maemopertargetdeviceconfigurationlistmodel.h \
|
|
||||||
maemodeployconfigurationwidget.h \
|
maemodeployconfigurationwidget.h \
|
||||||
maemoinstalltosysrootstep.h \
|
maemoinstalltosysrootstep.h \
|
||||||
maemodeploymentmounter.h \
|
maemodeploymentmounter.h \
|
||||||
@@ -96,7 +90,13 @@ HEADERS += \
|
|||||||
linuxdevicetestdialog.h \
|
linuxdevicetestdialog.h \
|
||||||
remotelinuxprocesslist.h \
|
remotelinuxprocesslist.h \
|
||||||
madderemoteprocesslist.h \
|
madderemoteprocesslist.h \
|
||||||
remotelinuxprocessesdialog.h
|
remotelinuxprocessesdialog.h \
|
||||||
|
remotelinuxdeploystepwidget.h \
|
||||||
|
linuxdeviceconfigurationssettingswidget.h \
|
||||||
|
remotelinuxenvironmentreader.h \
|
||||||
|
sshkeydeployer.h \
|
||||||
|
typespecificdeviceconfigurationlistmodel.h \
|
||||||
|
sshkeycreationdialog.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
remotelinuxplugin.cpp \
|
remotelinuxplugin.cpp \
|
||||||
@@ -104,20 +104,16 @@ SOURCES += \
|
|||||||
maemoruncontrol.cpp \
|
maemoruncontrol.cpp \
|
||||||
maemorunfactories.cpp \
|
maemorunfactories.cpp \
|
||||||
maemosettingspages.cpp \
|
maemosettingspages.cpp \
|
||||||
maemodeviceconfigurationssettingswidget.cpp \
|
|
||||||
maemosshconfigdialog.cpp \
|
|
||||||
maemotoolchain.cpp \
|
maemotoolchain.cpp \
|
||||||
maemopackagecreationstep.cpp \
|
maemopackagecreationstep.cpp \
|
||||||
maemopackagecreationfactory.cpp \
|
maemopackagecreationfactory.cpp \
|
||||||
maemopackagecreationwidget.cpp \
|
maemopackagecreationwidget.cpp \
|
||||||
maemoqemumanager.cpp \
|
maemoqemumanager.cpp \
|
||||||
maemodeploystepwidget.cpp \
|
|
||||||
maemodeploystepfactory.cpp \
|
maemodeploystepfactory.cpp \
|
||||||
maemoglobal.cpp \
|
maemoglobal.cpp \
|
||||||
maemosshrunner.cpp \
|
maemosshrunner.cpp \
|
||||||
maemodebugsupport.cpp \
|
maemodebugsupport.cpp \
|
||||||
maemoremotemountsmodel.cpp \
|
maemoremotemountsmodel.cpp \
|
||||||
maemodeviceenvreader.cpp \
|
|
||||||
maemomountspecification.cpp \
|
maemomountspecification.cpp \
|
||||||
maemoremotemounter.cpp \
|
maemoremotemounter.cpp \
|
||||||
maemoprofilesupdatedialog.cpp \
|
maemoprofilesupdatedialog.cpp \
|
||||||
@@ -137,8 +133,6 @@ SOURCES += \
|
|||||||
qt4maemotarget.cpp \
|
qt4maemotarget.cpp \
|
||||||
qt4maemodeployconfiguration.cpp \
|
qt4maemodeployconfiguration.cpp \
|
||||||
maemodeviceconfigwizard.cpp \
|
maemodeviceconfigwizard.cpp \
|
||||||
maemokeydeployer.cpp \
|
|
||||||
maemopertargetdeviceconfigurationlistmodel.cpp \
|
|
||||||
maemodeployconfigurationwidget.cpp \
|
maemodeployconfigurationwidget.cpp \
|
||||||
maemoinstalltosysrootstep.cpp \
|
maemoinstalltosysrootstep.cpp \
|
||||||
maemodeploymentmounter.cpp \
|
maemodeploymentmounter.cpp \
|
||||||
@@ -185,11 +179,15 @@ SOURCES += \
|
|||||||
linuxdevicetestdialog.cpp \
|
linuxdevicetestdialog.cpp \
|
||||||
remotelinuxprocesslist.cpp \
|
remotelinuxprocesslist.cpp \
|
||||||
madderemoteprocesslist.cpp \
|
madderemoteprocesslist.cpp \
|
||||||
remotelinuxprocessesdialog.cpp
|
remotelinuxprocessesdialog.cpp \
|
||||||
|
remotelinuxdeploystepwidget.cpp \
|
||||||
|
linuxdeviceconfigurationssettingswidget.cpp \
|
||||||
|
remotelinuxenvironmentreader.cpp \
|
||||||
|
sshkeydeployer.cpp \
|
||||||
|
typespecificdeviceconfigurationlistmodel.cpp \
|
||||||
|
sshkeycreationdialog.cpp
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
maemodeviceconfigurationssettingswidget.ui \
|
|
||||||
maemosshconfigdialog.ui \
|
|
||||||
maemopackagecreationwidget.ui \
|
maemopackagecreationwidget.ui \
|
||||||
maemoprofilesupdatedialog.ui \
|
maemoprofilesupdatedialog.ui \
|
||||||
maemopublishingbuildsettingspagefremantlefree.ui \
|
maemopublishingbuildsettingspagefremantlefree.ui \
|
||||||
@@ -206,7 +204,9 @@ FORMS += \
|
|||||||
linuxdevicefactoryselectiondialog.ui \
|
linuxdevicefactoryselectiondialog.ui \
|
||||||
genericlinuxdeviceconfigurationwizardsetuppage.ui \
|
genericlinuxdeviceconfigurationwizardsetuppage.ui \
|
||||||
linuxdevicetestdialog.ui \
|
linuxdevicetestdialog.ui \
|
||||||
remotelinuxprocessesdialog.ui
|
remotelinuxprocessesdialog.ui \
|
||||||
|
linuxdeviceconfigurationssettingswidget.ui \
|
||||||
|
sshkeycreationdialog.ui
|
||||||
|
|
||||||
RESOURCES += qt-maemo.qrc
|
RESOURCES += qt-maemo.qrc
|
||||||
DEFINES += QT_NO_CAST_TO_ASCII
|
DEFINES += QT_NO_CAST_TO_ASCII
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include "deploymentinfo.h"
|
#include "deploymentinfo.h"
|
||||||
#include "linuxdeviceconfigurations.h"
|
#include "linuxdeviceconfigurations.h"
|
||||||
#include "maemodeployconfigurationwidget.h"
|
#include "maemodeployconfigurationwidget.h"
|
||||||
#include "maemopertargetdeviceconfigurationlistmodel.h"
|
#include "typespecificdeviceconfigurationlistmodel.h"
|
||||||
|
|
||||||
#include <qt4projectmanager/qt4target.h>
|
#include <qt4projectmanager/qt4target.h>
|
||||||
|
|
||||||
@@ -73,8 +73,8 @@ RemoteLinuxDeployConfiguration::RemoteLinuxDeployConfiguration(ProjectExplorer::
|
|||||||
}
|
}
|
||||||
if (!m_deploymentInfo) {
|
if (!m_deploymentInfo) {
|
||||||
m_deploymentInfo = QSharedPointer<DeploymentInfo>(new DeploymentInfo(qobject_cast<Qt4BaseTarget *>(target)));
|
m_deploymentInfo = QSharedPointer<DeploymentInfo>(new DeploymentInfo(qobject_cast<Qt4BaseTarget *>(target)));
|
||||||
m_devConfModel = QSharedPointer<MaemoPerTargetDeviceConfigurationListModel>
|
m_devConfModel = QSharedPointer<TypeSpecificDeviceConfigurationListModel>
|
||||||
(new MaemoPerTargetDeviceConfigurationListModel(0, supportedOsType));
|
(new TypeSpecificDeviceConfigurationListModel(0, supportedOsType));
|
||||||
}
|
}
|
||||||
|
|
||||||
initialize();
|
initialize();
|
||||||
@@ -145,7 +145,7 @@ QSharedPointer<DeploymentInfo> RemoteLinuxDeployConfiguration::deploymentInfo()
|
|||||||
return m_deploymentInfo;
|
return m_deploymentInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
QSharedPointer<MaemoPerTargetDeviceConfigurationListModel> RemoteLinuxDeployConfiguration::deviceConfigModel() const
|
QSharedPointer<TypeSpecificDeviceConfigurationListModel> RemoteLinuxDeployConfiguration::deviceConfigModel() const
|
||||||
{
|
{
|
||||||
return m_devConfModel;
|
return m_devConfModel;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace RemoteLinux {
|
|||||||
class DeploymentInfo;
|
class DeploymentInfo;
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
class MaemoPerTargetDeviceConfigurationListModel;
|
class TypeSpecificDeviceConfigurationListModel;
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|
||||||
class REMOTELINUX_EXPORT RemoteLinuxDeployConfiguration
|
class REMOTELINUX_EXPORT RemoteLinuxDeployConfiguration
|
||||||
@@ -63,7 +63,7 @@ public:
|
|||||||
|
|
||||||
void setDeviceConfiguration(int index);
|
void setDeviceConfiguration(int index);
|
||||||
QSharedPointer<DeploymentInfo> deploymentInfo() const;
|
QSharedPointer<DeploymentInfo> deploymentInfo() const;
|
||||||
QSharedPointer<Internal::MaemoPerTargetDeviceConfigurationListModel> deviceConfigModel() const;
|
QSharedPointer<Internal::TypeSpecificDeviceConfigurationListModel> deviceConfigModel() const;
|
||||||
QSharedPointer<const LinuxDeviceConfiguration> deviceConfiguration() const;
|
QSharedPointer<const LinuxDeviceConfiguration> deviceConfiguration() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
@@ -78,7 +78,7 @@ private:
|
|||||||
Q_SLOT void handleDeviceConfigurationListUpdated();
|
Q_SLOT void handleDeviceConfigurationListUpdated();
|
||||||
|
|
||||||
QSharedPointer<DeploymentInfo> m_deploymentInfo;
|
QSharedPointer<DeploymentInfo> m_deploymentInfo;
|
||||||
QSharedPointer<Internal::MaemoPerTargetDeviceConfigurationListModel> m_devConfModel;
|
QSharedPointer<Internal::TypeSpecificDeviceConfigurationListModel> m_devConfModel;
|
||||||
QSharedPointer<const LinuxDeviceConfiguration> m_deviceConfiguration;
|
QSharedPointer<const LinuxDeviceConfiguration> m_deviceConfiguration;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -29,23 +29,18 @@
|
|||||||
** Nokia at info@qt.nokia.com.
|
** Nokia at info@qt.nokia.com.
|
||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
#include "maemodeploystepwidget.h"
|
#include "remotelinuxdeploystepwidget.h"
|
||||||
|
|
||||||
#include "abstractremotelinuxdeploystep.h"
|
#include "abstractremotelinuxdeploystep.h"
|
||||||
#include "maemoglobal.h"
|
#include "maemoglobal.h"
|
||||||
#include "qt4maemodeployconfiguration.h"
|
#include "remotelinuxdeployconfiguration.h"
|
||||||
|
|
||||||
#include <projectexplorer/buildconfiguration.h>
|
|
||||||
#include <utils/qtcassert.h>
|
|
||||||
|
|
||||||
#include <QtGui/QVBoxLayout>
|
|
||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
namespace Internal {
|
using namespace Internal;
|
||||||
|
|
||||||
MaemoDeployStepBaseWidget::MaemoDeployStepBaseWidget(AbstractRemoteLinuxDeployStep *step)
|
RemoteLinuxDeployStepWidget::RemoteLinuxDeployStepWidget(AbstractRemoteLinuxDeployStep *step)
|
||||||
: m_step(step)
|
: m_step(step)
|
||||||
{
|
{
|
||||||
BuildStepList * const list = step->deployConfiguration()->stepList();
|
BuildStepList * const list = step->deployConfiguration()->stepList();
|
||||||
@@ -60,11 +55,11 @@ MaemoDeployStepBaseWidget::MaemoDeployStepBaseWidget(AbstractRemoteLinuxDeploySt
|
|||||||
SIGNAL(updateSummary()));
|
SIGNAL(updateSummary()));
|
||||||
}
|
}
|
||||||
|
|
||||||
MaemoDeployStepBaseWidget::~MaemoDeployStepBaseWidget()
|
RemoteLinuxDeployStepWidget::~RemoteLinuxDeployStepWidget()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeployStepBaseWidget::handleStepToBeRemoved(int step)
|
void RemoteLinuxDeployStepWidget::handleStepToBeRemoved(int step)
|
||||||
{
|
{
|
||||||
BuildStepList * const list = m_step->deployConfiguration()->stepList();
|
BuildStepList * const list = m_step->deployConfiguration()->stepList();
|
||||||
const AbstractRemoteLinuxDeployStep * const alds
|
const AbstractRemoteLinuxDeployStep * const alds
|
||||||
@@ -73,7 +68,7 @@ void MaemoDeployStepBaseWidget::handleStepToBeRemoved(int step)
|
|||||||
disconnect(list, 0, this, 0);
|
disconnect(list, 0, this, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString MaemoDeployStepBaseWidget::summaryText() const
|
QString RemoteLinuxDeployStepWidget::summaryText() const
|
||||||
{
|
{
|
||||||
QString error;
|
QString error;
|
||||||
if (!m_step->isDeploymentPossible(&error)) {
|
if (!m_step->isDeploymentPossible(&error)) {
|
||||||
@@ -85,5 +80,4 @@ QString MaemoDeployStepBaseWidget::summaryText() const
|
|||||||
MaemoGlobal::deviceConfigurationName(m_step->deployConfiguration()->deviceConfiguration()));
|
MaemoGlobal::deviceConfigurationName(m_step->deployConfiguration()->deviceConfiguration()));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace RemoteLinux
|
} // namespace RemoteLinux
|
||||||
@@ -30,22 +30,23 @@
|
|||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#ifndef MAEMODEPLOYSTEPWIDGET_H
|
#ifndef REMOTELINUXDEPLOYSTEPWIDGET_H
|
||||||
#define MAEMODEPLOYSTEPWIDGET_H
|
#define REMOTELINUXDEPLOYSTEPWIDGET_H
|
||||||
|
|
||||||
|
#include "remotelinux_export.h"
|
||||||
|
|
||||||
#include <projectexplorer/buildstep.h>
|
#include <projectexplorer/buildstep.h>
|
||||||
|
|
||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
class AbstractRemoteLinuxDeployStep;
|
class AbstractRemoteLinuxDeployStep;
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class MaemoDeployStepBaseWidget : public ProjectExplorer::BuildStepConfigWidget
|
class REMOTELINUX_EXPORT RemoteLinuxDeployStepWidget : public ProjectExplorer::BuildStepConfigWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MaemoDeployStepBaseWidget(AbstractRemoteLinuxDeployStep *step);
|
RemoteLinuxDeployStepWidget(AbstractRemoteLinuxDeployStep *step);
|
||||||
~MaemoDeployStepBaseWidget();
|
~RemoteLinuxDeployStepWidget();
|
||||||
|
|
||||||
QString summaryText() const;
|
QString summaryText() const;
|
||||||
QString displayName() const { return QString(); }
|
QString displayName() const { return QString(); }
|
||||||
@@ -56,7 +57,6 @@ private:
|
|||||||
AbstractRemoteLinuxDeployStep * const m_step;
|
AbstractRemoteLinuxDeployStep * const m_step;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace RemoteLinux
|
} // namespace RemoteLinux
|
||||||
|
|
||||||
#endif // MAEMODEPLOYSTEPWIDGET_H
|
#endif // REMOTELINUXDEPLOYSTEPWIDGET_H
|
||||||
@@ -28,8 +28,7 @@
|
|||||||
** Nokia at info@qt.nokia.com.
|
** Nokia at info@qt.nokia.com.
|
||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
#include "remotelinuxenvironmentreader.h"
|
||||||
#include "maemodeviceenvreader.h"
|
|
||||||
|
|
||||||
#include "linuxdeviceconfiguration.h"
|
#include "linuxdeviceconfiguration.h"
|
||||||
#include "maemoglobal.h"
|
#include "maemoglobal.h"
|
||||||
@@ -40,7 +39,7 @@
|
|||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
MaemoDeviceEnvReader::MaemoDeviceEnvReader(QObject *parent, RemoteLinuxRunConfiguration *config)
|
RemoteLinuxEnvironmentReader::RemoteLinuxEnvironmentReader(QObject *parent, RemoteLinuxRunConfiguration *config)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
, m_stop(false)
|
, m_stop(false)
|
||||||
, m_devConfig(config->deviceConfig())
|
, m_devConfig(config->deviceConfig())
|
||||||
@@ -50,11 +49,11 @@ MaemoDeviceEnvReader::MaemoDeviceEnvReader(QObject *parent, RemoteLinuxRunConfig
|
|||||||
this, SLOT(handleCurrentDeviceConfigChanged()));
|
this, SLOT(handleCurrentDeviceConfigChanged()));
|
||||||
}
|
}
|
||||||
|
|
||||||
MaemoDeviceEnvReader::~MaemoDeviceEnvReader()
|
RemoteLinuxEnvironmentReader::~RemoteLinuxEnvironmentReader()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceEnvReader::start()
|
void RemoteLinuxEnvironmentReader::start()
|
||||||
{
|
{
|
||||||
if (!m_devConfig)
|
if (!m_devConfig)
|
||||||
return;
|
return;
|
||||||
@@ -82,14 +81,14 @@ void MaemoDeviceEnvReader::start()
|
|||||||
m_remoteProcessRunner->run(remoteCall);
|
m_remoteProcessRunner->run(remoteCall);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceEnvReader::stop()
|
void RemoteLinuxEnvironmentReader::stop()
|
||||||
{
|
{
|
||||||
m_stop = true;
|
m_stop = true;
|
||||||
if (m_remoteProcessRunner)
|
if (m_remoteProcessRunner)
|
||||||
disconnect(m_remoteProcessRunner.data(), 0, this, 0);
|
disconnect(m_remoteProcessRunner.data(), 0, this, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceEnvReader::handleConnectionFailure()
|
void RemoteLinuxEnvironmentReader::handleConnectionFailure()
|
||||||
{
|
{
|
||||||
if (m_stop)
|
if (m_stop)
|
||||||
return;
|
return;
|
||||||
@@ -100,7 +99,7 @@ void MaemoDeviceEnvReader::handleConnectionFailure()
|
|||||||
emit finished();
|
emit finished();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceEnvReader::handleCurrentDeviceConfigChanged()
|
void RemoteLinuxEnvironmentReader::handleCurrentDeviceConfigChanged()
|
||||||
{
|
{
|
||||||
m_devConfig = m_runConfig->deviceConfig();
|
m_devConfig = m_runConfig->deviceConfig();
|
||||||
|
|
||||||
@@ -110,7 +109,7 @@ void MaemoDeviceEnvReader::handleCurrentDeviceConfigChanged()
|
|||||||
setFinished();
|
setFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceEnvReader::remoteProcessFinished(int exitCode)
|
void RemoteLinuxEnvironmentReader::remoteProcessFinished(int exitCode)
|
||||||
{
|
{
|
||||||
Q_ASSERT(exitCode == Utils::SshRemoteProcess::FailedToStart
|
Q_ASSERT(exitCode == Utils::SshRemoteProcess::FailedToStart
|
||||||
|| exitCode == Utils::SshRemoteProcess::KilledBySignal
|
|| exitCode == Utils::SshRemoteProcess::KilledBySignal
|
||||||
@@ -138,21 +137,21 @@ void MaemoDeviceEnvReader::remoteProcessFinished(int exitCode)
|
|||||||
setFinished();
|
setFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceEnvReader::remoteOutput(const QByteArray &data)
|
void RemoteLinuxEnvironmentReader::remoteOutput(const QByteArray &data)
|
||||||
{
|
{
|
||||||
m_remoteOutput.append(QString::fromUtf8(data));
|
m_remoteOutput.append(QString::fromUtf8(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceEnvReader::remoteErrorOutput(const QByteArray &data)
|
void RemoteLinuxEnvironmentReader::remoteErrorOutput(const QByteArray &data)
|
||||||
{
|
{
|
||||||
m_remoteErrorOutput += data;
|
m_remoteErrorOutput += data;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoDeviceEnvReader::setFinished()
|
void RemoteLinuxEnvironmentReader::setFinished()
|
||||||
{
|
{
|
||||||
stop();
|
stop();
|
||||||
emit finished();
|
emit finished();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Internal
|
} // namespace Internal
|
||||||
} // Qt4ProjectManager
|
} // namespace RemoteLinux
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#ifndef DEVICEENVREADER_H
|
#ifndef REMOTELINUXENVIRONMENTREADER_H
|
||||||
#define DEVICEENVREADER_H
|
#define REMOTELINUXENVIRONMENTREADER_H
|
||||||
|
|
||||||
#include <utils/environment.h>
|
#include <utils/environment.h>
|
||||||
|
|
||||||
@@ -47,12 +47,12 @@ class RemoteLinuxRunConfiguration;
|
|||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class MaemoDeviceEnvReader : public QObject
|
class RemoteLinuxEnvironmentReader : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
MaemoDeviceEnvReader(QObject *parent, RemoteLinuxRunConfiguration *config);
|
RemoteLinuxEnvironmentReader(QObject *parent, RemoteLinuxRunConfiguration *config);
|
||||||
~MaemoDeviceEnvReader();
|
~RemoteLinuxEnvironmentReader();
|
||||||
|
|
||||||
void start();
|
void start();
|
||||||
void stop();
|
void stop();
|
||||||
@@ -83,7 +83,7 @@ private:
|
|||||||
QSharedPointer<Utils::SshRemoteProcessRunner> m_remoteProcessRunner;
|
QSharedPointer<Utils::SshRemoteProcessRunner> m_remoteProcessRunner;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Internal
|
} // namespace Internal
|
||||||
} // Qt4ProjectManager
|
} // namespace RemoteLinux
|
||||||
|
|
||||||
#endif // DEVICEENVREADER_H
|
#endif // REMOTELINUXENVIRONMENTREADER_H
|
||||||
@@ -31,11 +31,10 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
#include "remotelinuxrunconfigurationwidget.h"
|
#include "remotelinuxrunconfigurationwidget.h"
|
||||||
|
|
||||||
#include "maemodeviceenvreader.h"
|
|
||||||
#include "maemoglobal.h"
|
#include "maemoglobal.h"
|
||||||
#include "remotelinuxrunconfiguration.h"
|
#include "remotelinuxrunconfiguration.h"
|
||||||
#include "maemosettingspages.h"
|
#include "maemosettingspages.h"
|
||||||
#include "qt4maemodeployconfiguration.h"
|
#include "remotelinuxenvironmentreader.h"
|
||||||
|
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
@@ -73,7 +72,7 @@ RemoteLinuxRunConfigurationWidget::RemoteLinuxRunConfigurationWidget(RemoteLinux
|
|||||||
: QWidget(parent),
|
: QWidget(parent),
|
||||||
m_runConfiguration(runConfiguration),
|
m_runConfiguration(runConfiguration),
|
||||||
m_ignoreChange(false),
|
m_ignoreChange(false),
|
||||||
m_deviceEnvReader(new MaemoDeviceEnvReader(this, runConfiguration))
|
m_deviceEnvReader(new RemoteLinuxEnvironmentReader(this, runConfiguration))
|
||||||
{
|
{
|
||||||
QVBoxLayout *topLayout = new QVBoxLayout(this);
|
QVBoxLayout *topLayout = new QVBoxLayout(this);
|
||||||
topLayout->setMargin(0);
|
topLayout->setMargin(0);
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ namespace Utils { class EnvironmentItem; }
|
|||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
class RemoteLinuxRunConfiguration;
|
class RemoteLinuxRunConfiguration;
|
||||||
|
|
||||||
namespace Internal { class MaemoDeviceEnvReader; }
|
namespace Internal { class RemoteLinuxEnvironmentReader; }
|
||||||
|
|
||||||
class REMOTELINUX_EXPORT RemoteLinuxRunConfigurationWidget : public QWidget
|
class REMOTELINUX_EXPORT RemoteLinuxRunConfigurationWidget : public QWidget
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ private:
|
|||||||
bool m_ignoreChange;
|
bool m_ignoreChange;
|
||||||
QPushButton *m_fetchEnv;
|
QPushButton *m_fetchEnv;
|
||||||
QComboBox *m_baseEnvironmentComboBox;
|
QComboBox *m_baseEnvironmentComboBox;
|
||||||
Internal::MaemoDeviceEnvReader *m_deviceEnvReader;
|
Internal::RemoteLinuxEnvironmentReader *m_deviceEnvReader;
|
||||||
ProjectExplorer::EnvironmentWidget *m_environmentWidget;
|
ProjectExplorer::EnvironmentWidget *m_environmentWidget;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -28,8 +28,7 @@
|
|||||||
** Nokia at info@qt.nokia.com.
|
** Nokia at info@qt.nokia.com.
|
||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
#include "sshkeycreationdialog.h"
|
||||||
#include "maemosshconfigdialog.h"
|
|
||||||
|
|
||||||
#include "linuxdeviceconfiguration.h"
|
#include "linuxdeviceconfiguration.h"
|
||||||
|
|
||||||
@@ -46,7 +45,7 @@
|
|||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
using namespace RemoteLinux::Internal;
|
using namespace RemoteLinux::Internal;
|
||||||
|
|
||||||
MaemoSshConfigDialog::MaemoSshConfigDialog(QWidget *parent)
|
SshKeyCreationDialog::SshKeyCreationDialog(QWidget *parent)
|
||||||
: QDialog(parent)
|
: QDialog(parent)
|
||||||
, home(QDesktopServices::storageLocation(QDesktopServices::HomeLocation))
|
, home(QDesktopServices::storageLocation(QDesktopServices::HomeLocation))
|
||||||
, m_keyGenerator(new SshKeyGenerator)
|
, m_keyGenerator(new SshKeyGenerator)
|
||||||
@@ -61,17 +60,17 @@ MaemoSshConfigDialog::MaemoSshConfigDialog(QWidget *parent)
|
|||||||
connect(m_ui.savePrivateKey, SIGNAL(clicked()), this, SLOT(savePrivateKey()));
|
connect(m_ui.savePrivateKey, SIGNAL(clicked()), this, SLOT(savePrivateKey()));
|
||||||
}
|
}
|
||||||
|
|
||||||
MaemoSshConfigDialog::~MaemoSshConfigDialog()
|
SshKeyCreationDialog::~SshKeyCreationDialog()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoSshConfigDialog::slotToggled()
|
void SshKeyCreationDialog::slotToggled()
|
||||||
{
|
{
|
||||||
m_ui.comboBox->setCurrentIndex(0);
|
m_ui.comboBox->setCurrentIndex(0);
|
||||||
m_ui.comboBox->setEnabled(m_ui.rsa->isChecked());
|
m_ui.comboBox->setEnabled(m_ui.rsa->isChecked());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoSshConfigDialog::generateSshKey()
|
void SshKeyCreationDialog::generateSshKey()
|
||||||
{
|
{
|
||||||
const SshKeyGenerator::KeyType keyType = m_ui.rsa->isChecked()
|
const SshKeyGenerator::KeyType keyType = m_ui.rsa->isChecked()
|
||||||
? SshKeyGenerator::Rsa
|
? SshKeyGenerator::Rsa
|
||||||
@@ -91,24 +90,24 @@ void MaemoSshConfigDialog::generateSshKey()
|
|||||||
QApplication::restoreOverrideCursor();
|
QApplication::restoreOverrideCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoSshConfigDialog::savePublicKey()
|
void SshKeyCreationDialog::savePublicKey()
|
||||||
{
|
{
|
||||||
saveKey(true);
|
saveKey(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoSshConfigDialog::savePrivateKey()
|
void SshKeyCreationDialog::savePrivateKey()
|
||||||
{
|
{
|
||||||
saveKey(false);
|
saveKey(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoSshConfigDialog::checkSshDir()
|
void SshKeyCreationDialog::checkSshDir()
|
||||||
{
|
{
|
||||||
QDir dir(home + QString::fromLatin1("/.ssh"));
|
QDir dir(home + QString::fromLatin1("/.ssh"));
|
||||||
if (!dir.exists())
|
if (!dir.exists())
|
||||||
dir.mkpath(home + QString::fromLatin1("/.ssh"));
|
dir.mkpath(home + QString::fromLatin1("/.ssh"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoSshConfigDialog::saveKey(bool publicKey)
|
void SshKeyCreationDialog::saveKey(bool publicKey)
|
||||||
{
|
{
|
||||||
checkSshDir();
|
checkSshDir();
|
||||||
const QString suggestedTypeSuffix =
|
const QString suggestedTypeSuffix =
|
||||||
@@ -29,10 +29,10 @@
|
|||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#ifndef MAEMOSSHCONFIGDIALOG_H
|
#ifndef SSHKEYCREATIONDIALOG_H
|
||||||
#define MAEMOSSHCONFIGDIALOG_H
|
#define SSHKEYCREATIONDIALOG_H
|
||||||
|
|
||||||
#include "ui_maemosshconfigdialog.h"
|
#include "ui_sshkeycreationdialog.h"
|
||||||
|
|
||||||
#include <QtCore/QScopedPointer>
|
#include <QtCore/QScopedPointer>
|
||||||
#include <QtGui/QDialog>
|
#include <QtGui/QDialog>
|
||||||
@@ -44,12 +44,12 @@ namespace Utils {
|
|||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class MaemoSshConfigDialog : public QDialog
|
class SshKeyCreationDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
MaemoSshConfigDialog(QWidget *parent = 0);
|
SshKeyCreationDialog(QWidget *parent = 0);
|
||||||
~MaemoSshConfigDialog();
|
~SshKeyCreationDialog();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void privateKeyGenerated(const QString &path);
|
void privateKeyGenerated(const QString &path);
|
||||||
@@ -67,10 +67,10 @@ private:
|
|||||||
private:
|
private:
|
||||||
QString home;
|
QString home;
|
||||||
QScopedPointer<Utils::SshKeyGenerator> m_keyGenerator;
|
QScopedPointer<Utils::SshKeyGenerator> m_keyGenerator;
|
||||||
Ui::MaemoSshConfigDialog m_ui;
|
Ui::SshKeyCreationDialog m_ui;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Qt4ProjectManager
|
} // namespace Internal
|
||||||
} // Internal
|
} // namespace RemoteLinux
|
||||||
|
|
||||||
#endif // MAEMOSSHCONFIGDIALOG_H
|
#endif // SSHKEYCREATIONDIALOG_H
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>MaemoSshConfigDialog</class>
|
<class>SshKeyCreationDialog</class>
|
||||||
<widget class="QDialog" name="MaemoSshConfigDialog">
|
<widget class="QDialog" name="SshKeyCreationDialog">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@@ -254,7 +254,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>closeButton</sender>
|
<sender>closeButton</sender>
|
||||||
<signal>clicked()</signal>
|
<signal>clicked()</signal>
|
||||||
<receiver>MaemoSshConfigDialog</receiver>
|
<receiver>SshKeyCreationDialog</receiver>
|
||||||
<slot>close()</slot>
|
<slot>close()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@@ -28,8 +28,7 @@
|
|||||||
** Nokia at info@qt.nokia.com.
|
** Nokia at info@qt.nokia.com.
|
||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
#include "sshkeydeployer.h"
|
||||||
#include "maemokeydeployer.h"
|
|
||||||
|
|
||||||
#include <utils/ssh/sshremoteprocessrunner.h>
|
#include <utils/ssh/sshremoteprocessrunner.h>
|
||||||
#include <utils/fileutils.h>
|
#include <utils/fileutils.h>
|
||||||
@@ -39,19 +38,17 @@
|
|||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
MaemoKeyDeployer::MaemoKeyDeployer(QObject *parent)
|
SshKeyDeployer::SshKeyDeployer(QObject *parent) : QObject(parent)
|
||||||
: QObject(parent)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
MaemoKeyDeployer::~MaemoKeyDeployer()
|
SshKeyDeployer::~SshKeyDeployer()
|
||||||
{
|
{
|
||||||
cleanup();
|
cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoKeyDeployer::deployPublicKey(const SshConnectionParameters &sshParams,
|
void SshKeyDeployer::deployPublicKey(const SshConnectionParameters &sshParams,
|
||||||
const QString &keyFilePath)
|
const QString &keyFilePath)
|
||||||
{
|
{
|
||||||
cleanup();
|
cleanup();
|
||||||
@@ -73,7 +70,7 @@ void MaemoKeyDeployer::deployPublicKey(const SshConnectionParameters &sshParams,
|
|||||||
m_deployProcess->run(command);
|
m_deployProcess->run(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoKeyDeployer::handleConnectionFailure()
|
void SshKeyDeployer::handleConnectionFailure()
|
||||||
{
|
{
|
||||||
if (!m_deployProcess)
|
if (!m_deployProcess)
|
||||||
return;
|
return;
|
||||||
@@ -82,7 +79,7 @@ void MaemoKeyDeployer::handleConnectionFailure()
|
|||||||
emit error(tr("Connection failed: %1").arg(errorMsg));
|
emit error(tr("Connection failed: %1").arg(errorMsg));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoKeyDeployer::handleKeyUploadFinished(int exitStatus)
|
void SshKeyDeployer::handleKeyUploadFinished(int exitStatus)
|
||||||
{
|
{
|
||||||
Q_ASSERT(exitStatus == SshRemoteProcess::FailedToStart
|
Q_ASSERT(exitStatus == SshRemoteProcess::FailedToStart
|
||||||
|| exitStatus == SshRemoteProcess::KilledBySignal
|
|| exitStatus == SshRemoteProcess::KilledBySignal
|
||||||
@@ -100,12 +97,12 @@ void MaemoKeyDeployer::handleKeyUploadFinished(int exitStatus)
|
|||||||
emit error(tr("Key deployment failed: %1.").arg(errorMsg));
|
emit error(tr("Key deployment failed: %1.").arg(errorMsg));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoKeyDeployer::stopDeployment()
|
void SshKeyDeployer::stopDeployment()
|
||||||
{
|
{
|
||||||
cleanup();
|
cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MaemoKeyDeployer::cleanup()
|
void SshKeyDeployer::cleanup()
|
||||||
{
|
{
|
||||||
if (m_deployProcess) {
|
if (m_deployProcess) {
|
||||||
disconnect(m_deployProcess.data(), 0, this, 0);
|
disconnect(m_deployProcess.data(), 0, this, 0);
|
||||||
@@ -113,6 +110,4 @@ void MaemoKeyDeployer::cleanup()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace RemoteLinux
|
} // namespace RemoteLinux
|
||||||
@@ -28,9 +28,10 @@
|
|||||||
** Nokia at info@qt.nokia.com.
|
** Nokia at info@qt.nokia.com.
|
||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
#ifndef SSHKEYDEPLOYER_H
|
||||||
|
#define SSHKEYDEPLOYER_H
|
||||||
|
|
||||||
#ifndef MAEMOKEYDEPLOYER_H
|
#include "remotelinux_export.h"
|
||||||
#define MAEMOKEYDEPLOYER_H
|
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
#include <QtCore/QSharedPointer>
|
#include <QtCore/QSharedPointer>
|
||||||
@@ -41,14 +42,13 @@ class SshRemoteProcessRunner;
|
|||||||
}
|
}
|
||||||
|
|
||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class MaemoKeyDeployer : public QObject
|
class REMOTELINUX_EXPORT SshKeyDeployer : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit MaemoKeyDeployer(QObject *parent = 0);
|
explicit SshKeyDeployer(QObject *parent = 0);
|
||||||
~MaemoKeyDeployer();
|
~SshKeyDeployer();
|
||||||
|
|
||||||
void deployPublicKey(const Utils::SshConnectionParameters &sshParams,
|
void deployPublicKey(const Utils::SshConnectionParameters &sshParams,
|
||||||
const QString &keyFilePath);
|
const QString &keyFilePath);
|
||||||
@@ -68,7 +68,6 @@ private:
|
|||||||
QSharedPointer<Utils::SshRemoteProcessRunner> m_deployProcess;
|
QSharedPointer<Utils::SshRemoteProcessRunner> m_deployProcess;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace RemoteLinux
|
} // namespace RemoteLinux
|
||||||
|
|
||||||
#endif // MAEMOKEYDEPLOYER_H
|
#endif // SSHKEYDEPLOYER_H
|
||||||
@@ -29,14 +29,14 @@
|
|||||||
** Nokia at info@qt.nokia.com.
|
** Nokia at info@qt.nokia.com.
|
||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
#include "maemopertargetdeviceconfigurationlistmodel.h"
|
#include "typespecificdeviceconfigurationlistmodel.h"
|
||||||
|
|
||||||
#include "linuxdeviceconfigurations.h"
|
#include "linuxdeviceconfigurations.h"
|
||||||
|
|
||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
MaemoPerTargetDeviceConfigurationListModel::MaemoPerTargetDeviceConfigurationListModel(QObject *parent,
|
TypeSpecificDeviceConfigurationListModel::TypeSpecificDeviceConfigurationListModel(QObject *parent,
|
||||||
const QString &osType) : QAbstractListModel(parent), m_targetOsType(osType)
|
const QString &osType) : QAbstractListModel(parent), m_targetOsType(osType)
|
||||||
{
|
{
|
||||||
const LinuxDeviceConfigurations * const devConfs
|
const LinuxDeviceConfigurations * const devConfs
|
||||||
@@ -45,11 +45,11 @@ MaemoPerTargetDeviceConfigurationListModel::MaemoPerTargetDeviceConfigurationLis
|
|||||||
connect(devConfs, SIGNAL(updated()), this, SIGNAL(updated()));
|
connect(devConfs, SIGNAL(updated()), this, SIGNAL(updated()));
|
||||||
}
|
}
|
||||||
|
|
||||||
MaemoPerTargetDeviceConfigurationListModel::~MaemoPerTargetDeviceConfigurationListModel()
|
TypeSpecificDeviceConfigurationListModel::~TypeSpecificDeviceConfigurationListModel()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int MaemoPerTargetDeviceConfigurationListModel::rowCount(const QModelIndex &parent) const
|
int TypeSpecificDeviceConfigurationListModel::rowCount(const QModelIndex &parent) const
|
||||||
{
|
{
|
||||||
if (parent.isValid())
|
if (parent.isValid())
|
||||||
return 0;
|
return 0;
|
||||||
@@ -66,7 +66,7 @@ int MaemoPerTargetDeviceConfigurationListModel::rowCount(const QModelIndex &pare
|
|||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant MaemoPerTargetDeviceConfigurationListModel::data(const QModelIndex &index,
|
QVariant TypeSpecificDeviceConfigurationListModel::data(const QModelIndex &index,
|
||||||
int role) const
|
int role) const
|
||||||
{
|
{
|
||||||
if (!index.isValid() || index.row() >= rowCount() || role != Qt::DisplayRole)
|
if (!index.isValid() || index.row() >= rowCount() || role != Qt::DisplayRole)
|
||||||
@@ -79,7 +79,7 @@ QVariant MaemoPerTargetDeviceConfigurationListModel::data(const QModelIndex &ind
|
|||||||
return displayedName;
|
return displayedName;
|
||||||
}
|
}
|
||||||
|
|
||||||
LinuxDeviceConfiguration::ConstPtr MaemoPerTargetDeviceConfigurationListModel::deviceAt(int idx) const
|
LinuxDeviceConfiguration::ConstPtr TypeSpecificDeviceConfigurationListModel::deviceAt(int idx) const
|
||||||
{
|
{
|
||||||
int currentRow = -1;
|
int currentRow = -1;
|
||||||
const LinuxDeviceConfigurations * const devConfs
|
const LinuxDeviceConfigurations * const devConfs
|
||||||
@@ -97,12 +97,12 @@ LinuxDeviceConfiguration::ConstPtr MaemoPerTargetDeviceConfigurationListModel::d
|
|||||||
return LinuxDeviceConfiguration::ConstPtr();
|
return LinuxDeviceConfiguration::ConstPtr();
|
||||||
}
|
}
|
||||||
|
|
||||||
LinuxDeviceConfiguration::ConstPtr MaemoPerTargetDeviceConfigurationListModel::defaultDeviceConfig() const
|
LinuxDeviceConfiguration::ConstPtr TypeSpecificDeviceConfigurationListModel::defaultDeviceConfig() const
|
||||||
{
|
{
|
||||||
return LinuxDeviceConfigurations::instance()->defaultDeviceConfig(m_targetOsType);
|
return LinuxDeviceConfigurations::instance()->defaultDeviceConfig(m_targetOsType);
|
||||||
}
|
}
|
||||||
|
|
||||||
LinuxDeviceConfiguration::ConstPtr MaemoPerTargetDeviceConfigurationListModel::find(LinuxDeviceConfiguration::Id id) const
|
LinuxDeviceConfiguration::ConstPtr TypeSpecificDeviceConfigurationListModel::find(LinuxDeviceConfiguration::Id id) const
|
||||||
{
|
{
|
||||||
const LinuxDeviceConfiguration::ConstPtr &devConf
|
const LinuxDeviceConfiguration::ConstPtr &devConf
|
||||||
= LinuxDeviceConfigurations::instance()->find(id);
|
= LinuxDeviceConfigurations::instance()->find(id);
|
||||||
@@ -111,7 +111,7 @@ LinuxDeviceConfiguration::ConstPtr MaemoPerTargetDeviceConfigurationListModel::f
|
|||||||
? devConf : defaultDeviceConfig();
|
? devConf : defaultDeviceConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
int MaemoPerTargetDeviceConfigurationListModel::indexForInternalId(LinuxDeviceConfiguration::Id id) const
|
int TypeSpecificDeviceConfigurationListModel::indexForInternalId(LinuxDeviceConfiguration::Id id) const
|
||||||
{
|
{
|
||||||
const int count = rowCount();
|
const int count = rowCount();
|
||||||
for (int i = 0; i < count; ++i) {
|
for (int i = 0; i < count; ++i) {
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
** Nokia at info@qt.nokia.com.
|
** Nokia at info@qt.nokia.com.
|
||||||
**
|
**
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
#ifndef MAEMOPERTARGETDEVICECONFIGURATIONLISTMODEL_H
|
#ifndef TYPESPECIFICDEVICECONFIGURATIONLISTMODEL_H
|
||||||
#define MAEMOPERTARGETDEVICECONFIGURATIONLISTMODEL_H
|
#define TYPESPECIFICDEVICECONFIGURATIONLISTMODEL_H
|
||||||
|
|
||||||
#include "linuxdeviceconfiguration.h"
|
#include "linuxdeviceconfiguration.h"
|
||||||
|
|
||||||
@@ -40,12 +40,12 @@
|
|||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class MaemoPerTargetDeviceConfigurationListModel : public QAbstractListModel
|
class TypeSpecificDeviceConfigurationListModel : public QAbstractListModel
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit MaemoPerTargetDeviceConfigurationListModel(QObject *parent, const QString &osType);
|
explicit TypeSpecificDeviceConfigurationListModel(QObject *parent, const QString &osType);
|
||||||
~MaemoPerTargetDeviceConfigurationListModel();
|
~TypeSpecificDeviceConfigurationListModel();
|
||||||
|
|
||||||
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
virtual QVariant data(const QModelIndex &index,
|
virtual QVariant data(const QModelIndex &index,
|
||||||
@@ -66,4 +66,4 @@ private:
|
|||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace RemoteLinux
|
} // namespace RemoteLinux
|
||||||
|
|
||||||
#endif // MAEMOPERTARGETDEVICECONFIGURATIONLISTMODEL_H
|
#endif // TYPESPECIFICDEVICECONFIGURATIONLISTMODEL_H
|
||||||
Reference in New Issue
Block a user