forked from qt-creator/qt-creator
Introduce the concept of an abstract device.
The idea is that all kinds of devices inherit from one abstract base class and that they are all managed by one device manager, who does not know about their specifics. For now, the only concrete subclass is the LinuxDeviceConguration. Change-Id: I31ff5586a0fdd6bcf8dcc0554bb2b91fe65b2f3f Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -32,9 +32,10 @@
|
||||
#ifndef REMOTELINUX_GENERICLINUXDEVICECONFIGURATIONWIDGET_H
|
||||
#define REMOTELINUX_GENERICLINUXDEVICECONFIGURATIONWIDGET_H
|
||||
|
||||
#include "remotelinux_export.h"
|
||||
#include <projectexplorer/devicesupport/idevicewidget.h>
|
||||
|
||||
#include "linuxdeviceconfiguration.h"
|
||||
#include "remotelinux_export.h"
|
||||
|
||||
namespace RemoteLinux {
|
||||
|
||||
@@ -42,14 +43,14 @@ namespace Ui {
|
||||
class GenericLinuxDeviceConfigurationWidget;
|
||||
}
|
||||
|
||||
class REMOTELINUX_EXPORT GenericLinuxDeviceConfigurationWidget : public ILinuxDeviceConfigurationWidget
|
||||
class REMOTELINUX_EXPORT GenericLinuxDeviceConfigurationWidget
|
||||
: public ProjectExplorer::IDeviceWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit GenericLinuxDeviceConfigurationWidget(
|
||||
const LinuxDeviceConfiguration::Ptr &deviceConfig,
|
||||
QWidget *parent = 0);
|
||||
const LinuxDeviceConfiguration::Ptr &deviceConfig, QWidget *parent = 0);
|
||||
~GenericLinuxDeviceConfigurationWidget();
|
||||
|
||||
private slots:
|
||||
@@ -62,12 +63,13 @@ private slots:
|
||||
void keyFileEditingFinished();
|
||||
void showPassword(bool showClearText);
|
||||
void handleFreePortsChanged();
|
||||
void setDefaultKeyFilePath();
|
||||
void setPrivateKey(const QString &path);
|
||||
void createNewKey();
|
||||
|
||||
private:
|
||||
void updatePortsWarningLabel();
|
||||
void initGui();
|
||||
LinuxDeviceConfiguration::Ptr deviceConfiguration() const;
|
||||
|
||||
Ui::GenericLinuxDeviceConfigurationWidget *m_ui;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user