Device Support: Move some functions from IDeviceFactory to IDevice.

Now that we have a polymorphic device class, we don't need to
attach all the virtual functions to the factory anymore.
In addition, the isUserEditable() function is gone, because it is
no longer needed in the presence of device-specific widgets.

Change-Id: Ie8f0be95653cb83e1618885b08cdd2aacf5dda59
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Christian Kandeler
2012-04-06 18:28:16 +02:00
parent 8bdbbab157
commit e2d8a9600e
17 changed files with 238 additions and 225 deletions

View File

@@ -36,6 +36,8 @@
#include <projectexplorer/devicesupport/idevice.h>
#include <QCoreApplication>
namespace Utils {
class SshConnectionParameters;
class PortList;
@@ -48,6 +50,7 @@ class LinuxDeviceConfigurationPrivate;
class REMOTELINUX_EXPORT LinuxDeviceConfiguration : public ProjectExplorer::IDevice
{
Q_DECLARE_TR_FUNCTIONS(LinuxDeviceConfiguration)
public:
typedef QSharedPointer<LinuxDeviceConfiguration> Ptr;
typedef QSharedPointer<const LinuxDeviceConfiguration> ConstPtr;
@@ -70,6 +73,11 @@ public:
static Ptr create(const QString &name, const QString &type, MachineType machineType,
Origin origin = ManuallyAdded, const QString &fingerprint = QString());
QString displayType() const;
ProjectExplorer::IDeviceWidget *createWidget();
QStringList actionIds() const;
QString displayNameForActionId(const QString &actionId) const;
QDialog *createAction(const QString &actionId, QWidget *parent) const;
void fromMap(const QVariantMap &map);
ProjectExplorer::IDevice::Ptr clone() const;