blob: d3e840e0d3d0140fc88cf50d934b0818ca05c057 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "remotelinux_export.h"
#include <projectexplorer/devicesupport/idevice.h>
namespace RemoteLinux {
class REMOTELINUX_EXPORT RemoteLinuxSignalOperation
: public ProjectExplorer::DeviceProcessSignalOperation
{
Q_OBJECT
public:
~RemoteLinuxSignalOperation() override;
void killProcess(qint64 pid) override;
void killProcess(const QString &filePath) override;
void interruptProcess(qint64 pid) override;
void interruptProcess(const QString &filePath) override;
protected:
RemoteLinuxSignalOperation(const ProjectExplorer::IDeviceConstPtr &device);
private:
virtual QString killProcessByNameCommandLine(const QString &filePath) const;
virtual QString interruptProcessByNameCommandLine(const QString &filePath) const;
void runnerDone();
void run(const QString &command);
const ProjectExplorer::IDeviceConstPtr m_device;
std::unique_ptr<Utils::QtcProcess> m_process;
friend class LinuxDevice;
};
}
|