aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/remotelinux/linuxdevice.h
diff options
context:
space:
mode:
authorhjk <qthjk@ovi.com>2012-07-27 13:31:13 +0200
committerChristian Kandeler <christian.kandeler@nokia.com>2012-08-01 14:26:28 +0200
commit646025493197f4605874206e8029597f659078e4 (patch)
treea04338e59255f02e572c8f022f210a505a599b6c /src/plugins/remotelinux/linuxdevice.h
parentc80af2a40c40520ca0507cb0222cad89ec541faa (diff)
remotelinux: rename LinuxDeviceConfiguration to LinuxDevice
Change-Id: I7e8a99d3339d2040a23e4e78816b13b57197dcdb Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
Diffstat (limited to 'src/plugins/remotelinux/linuxdevice.h')
-rw-r--r--src/plugins/remotelinux/linuxdevice.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/src/plugins/remotelinux/linuxdevice.h b/src/plugins/remotelinux/linuxdevice.h
new file mode 100644
index 0000000000..3d4a5f7329
--- /dev/null
+++ b/src/plugins/remotelinux/linuxdevice.h
@@ -0,0 +1,81 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: http://www.qt-project.org/
+**
+**
+** GNU Lesser General Public License Usage
+**
+** 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.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** 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.
+**
+**
+**************************************************************************/
+
+#ifndef LINUXDEVICECONFIGURATION_H
+#define LINUXDEVICECONFIGURATION_H
+
+#include "remotelinux_export.h"
+
+#include <projectexplorer/devicesupport/idevice.h>
+
+#include <QCoreApplication>
+
+namespace QSsh { class SshConnectionParameters; }
+namespace Utils { class PortList; }
+
+namespace RemoteLinux {
+namespace Internal { class LinuxDevicePrivate; }
+
+class REMOTELINUX_EXPORT LinuxDevice : public ProjectExplorer::IDevice
+{
+ Q_DECLARE_TR_FUNCTIONS(RemoteLinux::Internal::LinuxDevice)
+
+public:
+ typedef QSharedPointer<LinuxDevice> Ptr;
+ typedef QSharedPointer<const LinuxDevice> ConstPtr;
+
+ static Ptr create();
+ static Ptr create(const QString &name, Core::Id type, MachineType machineType,
+ Origin origin = ManuallyAdded, Core::Id id = Core::Id());
+
+ QString displayType() const;
+ ProjectExplorer::IDeviceWidget *createWidget();
+ QList<Core::Id> actionIds() const;
+ QString displayNameForActionId(Core::Id actionId) const;
+ void executeAction(Core::Id actionId, QWidget *parent) const;
+ ProjectExplorer::IDevice::Ptr clone() const;
+
+ QString listProcessesCommandLine() const;
+ QString killProcessCommandLine(const ProjectExplorer::DeviceProcess &process) const;
+ QList<ProjectExplorer::DeviceProcess> buildProcessList(const QString &listProcessesReply) const;
+
+protected:
+ LinuxDevice() {}
+ LinuxDevice(const QString &name, Core::Id type,
+ MachineType machineType, Origin origin, Core::Id id);
+ LinuxDevice(const LinuxDevice &other);
+
+private:
+ LinuxDevice &operator=(const LinuxDevice &);
+};
+
+} // namespace RemoteLinux
+
+#endif // LINUXDEVICECONFIGURATION_H