diff options
Diffstat (limited to 'src/plugins/projectexplorer/devicesupport/idevice.h')
-rw-r--r-- | src/plugins/projectexplorer/devicesupport/idevice.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/devicesupport/idevice.h b/src/plugins/projectexplorer/devicesupport/idevice.h index 427bbffb0b..f69480fb70 100644 --- a/src/plugins/projectexplorer/devicesupport/idevice.h +++ b/src/plugins/projectexplorer/devicesupport/idevice.h @@ -46,9 +46,22 @@ namespace QSsh { class SshConnectionParameters; } namespace Utils { class PortList; } namespace ProjectExplorer { + namespace Internal { class IDevicePrivate; } + class IDeviceWidget; +class PROJECTEXPLORER_EXPORT DeviceProcess +{ +public: + DeviceProcess() : pid(0) {} + bool operator<(const DeviceProcess &other) const; + + int pid; + QString cmdLine; + QString exe; +}; + // See cpp file for documentation. class PROJECTEXPLORER_EXPORT IDevice { @@ -86,6 +99,10 @@ public: virtual QString displayNameForActionId(Core::Id actionId) const = 0; virtual void executeAction(Core::Id actionId, QWidget *parent = 0) const = 0; + virtual QString listProcessesCommandLine() const = 0; + virtual QString killProcessCommandLine(const DeviceProcess &process) const = 0; + virtual QList<DeviceProcess> buildProcessList(const QString &listProcessesReply) const = 0; + enum DeviceState { DeviceReadyToUse, DeviceConnected, DeviceDisconnected, DeviceStateUnknown }; DeviceState deviceState() const; void setDeviceState(const DeviceState state); |