RemoteLinux: Add support for auto-detected devices.

We assume them to be transient, which means they do not get saved.

Change-Id: Ia9016172737d6e2547e3db5faf35d81c5c8cb91a
Reviewed-on: http://codereview.qt.nokia.com/2943
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Christian Kandeler
2011-08-15 10:36:53 +02:00
parent 6e93b47c33
commit d0ba9a8613
3 changed files with 27 additions and 8 deletions

View File

@@ -66,6 +66,7 @@ public:
typedef quint64 Id;
enum DeviceType { Hardware, Emulator };
enum Origin { ManuallyAdded, AutoDetected };
~LinuxDeviceConfiguration();
@@ -76,6 +77,7 @@ public:
DeviceType deviceType() const;
Id internalId() const;
bool isDefault() const;
bool isAutoDetected() const;
static QString defaultPrivateKeyFilePath();
static QString defaultPublicKeyFilePath();
@@ -83,11 +85,12 @@ public:
static const Id InvalidId;
static Ptr create(const QString &name, const QString &osType, DeviceType deviceType,
const PortList &freePorts, const Utils::SshConnectionParameters &sshParams);
const PortList &freePorts, const Utils::SshConnectionParameters &sshParams,
Origin origin = ManuallyAdded);
private:
LinuxDeviceConfiguration(const QString &name, const QString &osType, DeviceType deviceType,
const PortList &freePorts, const Utils::SshConnectionParameters &sshParams);
const PortList &freePorts, const Utils::SshConnectionParameters &sshParams,
Origin origin);
LinuxDeviceConfiguration(const QSettings &settings, Id &nextId);
LinuxDeviceConfiguration(const ConstPtr &other);