2011-02-17 17:53:52 +01:00
|
|
|
/**************************************************************************
|
2009-11-27 16:40:07 +01:00
|
|
|
**
|
2011-02-17 17:53:52 +01:00
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2012-01-26 18:33:46 +01:00
|
|
|
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
2009-11-27 16:40:07 +01:00
|
|
|
**
|
2012-07-19 12:26:56 +02:00
|
|
|
** Contact: http://www.qt-project.org/
|
2009-11-27 16:40:07 +01:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
2011-02-17 17:53:52 +01:00
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** This file may be used under the terms of the GNU Lesser General Public
|
|
|
|
|
** License version 2.1 as published by the Free Software Foundation and
|
|
|
|
|
** appearing in the file LICENSE.LGPL included in the packaging of this file.
|
|
|
|
|
** Please review the following information to ensure the GNU Lesser General
|
|
|
|
|
** Public License version 2.1 requirements will be met:
|
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2009-11-27 16:40:07 +01:00
|
|
|
**
|
|
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
2011-04-13 08:42:33 +02:00
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
2009-11-27 16:40:07 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Other Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
|
|
|
**
|
2009-11-27 16:40:07 +01:00
|
|
|
**
|
2011-02-17 17:53:52 +01:00
|
|
|
**************************************************************************/
|
2011-05-31 12:47:53 +02:00
|
|
|
#ifndef LINUXDEVICECONFIGURATION_H
|
|
|
|
|
#define LINUXDEVICECONFIGURATION_H
|
2009-11-27 16:40:07 +01:00
|
|
|
|
2011-05-31 12:47:53 +02:00
|
|
|
#include "remotelinux_export.h"
|
2009-11-27 16:40:07 +01:00
|
|
|
|
2012-03-06 12:31:42 +01:00
|
|
|
#include <projectexplorer/devicesupport/idevice.h>
|
2009-11-27 16:40:07 +01:00
|
|
|
|
2012-04-06 18:28:16 +02:00
|
|
|
#include <QCoreApplication>
|
|
|
|
|
|
2012-05-18 10:49:35 +02:00
|
|
|
namespace QSsh { class SshConnectionParameters; }
|
|
|
|
|
namespace Utils { class PortList; }
|
2011-05-31 12:47:53 +02:00
|
|
|
|
2011-05-25 11:23:25 +02:00
|
|
|
namespace RemoteLinux {
|
2009-11-27 16:40:07 +01:00
|
|
|
namespace Internal {
|
2011-08-02 12:20:16 +02:00
|
|
|
class LinuxDeviceConfigurationPrivate;
|
|
|
|
|
} // namespace Internal
|
2009-11-27 16:40:07 +01:00
|
|
|
|
2012-03-06 12:31:42 +01:00
|
|
|
class REMOTELINUX_EXPORT LinuxDeviceConfiguration : public ProjectExplorer::IDevice
|
2009-11-27 16:40:07 +01:00
|
|
|
{
|
2012-04-06 18:28:16 +02:00
|
|
|
Q_DECLARE_TR_FUNCTIONS(LinuxDeviceConfiguration)
|
2009-11-27 16:40:07 +01:00
|
|
|
public:
|
2011-06-09 17:17:01 +02:00
|
|
|
typedef QSharedPointer<LinuxDeviceConfiguration> Ptr;
|
2011-05-31 12:47:53 +02:00
|
|
|
typedef QSharedPointer<const LinuxDeviceConfiguration> ConstPtr;
|
2011-06-09 17:17:01 +02:00
|
|
|
|
2012-03-05 12:37:32 +01:00
|
|
|
enum MachineType { Hardware, Emulator };
|
2011-01-13 13:49:23 +01:00
|
|
|
|
2012-03-05 12:37:32 +01:00
|
|
|
MachineType machineType() const;
|
2011-06-09 17:17:01 +02:00
|
|
|
|
2012-03-02 18:09:59 +01:00
|
|
|
static Ptr create();
|
2012-05-16 10:46:21 +02:00
|
|
|
static Ptr create(const QString &name, Core::Id type, MachineType machineType,
|
2012-04-25 09:54:31 +02:00
|
|
|
Origin origin = ManuallyAdded, Core::Id id = Core::Id());
|
2012-03-06 12:31:42 +01:00
|
|
|
|
2012-04-06 18:28:16 +02:00
|
|
|
QString displayType() const;
|
|
|
|
|
ProjectExplorer::IDeviceWidget *createWidget();
|
2012-05-01 19:07:55 +02:00
|
|
|
QList<Core::Id> actionIds() const;
|
|
|
|
|
QString displayNameForActionId(Core::Id actionId) const;
|
2012-05-05 11:03:10 +02:00
|
|
|
void executeAction(Core::Id actionId, QWidget *parent) const;
|
2012-03-06 12:31:42 +01:00
|
|
|
void fromMap(const QVariantMap &map);
|
|
|
|
|
ProjectExplorer::IDevice::Ptr clone() const;
|
2012-04-02 15:33:49 +02:00
|
|
|
|
|
|
|
|
protected:
|
2012-06-05 14:30:31 +02:00
|
|
|
LinuxDeviceConfiguration() {}
|
2012-05-16 10:46:21 +02:00
|
|
|
LinuxDeviceConfiguration(const QString &name, Core::Id type, MachineType machineType,
|
2012-04-25 09:54:31 +02:00
|
|
|
Origin origin, Core::Id id);
|
2012-03-05 12:37:32 +01:00
|
|
|
LinuxDeviceConfiguration(const LinuxDeviceConfiguration &other);
|
2011-01-13 13:49:23 +01:00
|
|
|
|
2012-03-02 18:09:59 +01:00
|
|
|
QVariantMap toMap() const;
|
2010-04-08 17:31:55 +02:00
|
|
|
|
2012-04-02 15:33:49 +02:00
|
|
|
private:
|
|
|
|
|
LinuxDeviceConfiguration &operator=(const LinuxDeviceConfiguration &);
|
2012-06-05 14:30:31 +02:00
|
|
|
LinuxDeviceConfiguration::MachineType m_machineType;
|
2009-12-23 10:53:57 +01:00
|
|
|
};
|
|
|
|
|
|
2011-05-25 11:23:25 +02:00
|
|
|
} // namespace RemoteLinux
|
2009-11-27 16:40:07 +01:00
|
|
|
|
2011-05-31 12:47:53 +02:00
|
|
|
#endif // LINUXDEVICECONFIGURATION_H
|