blob: b3430bce31c9a1311c435efb61d92c061e0d4d96 (
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
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "remotelinux_export.h"
#include "sshprocessinterface.h"
namespace RemoteLinux {
class LinuxDevice;
class SshProcessInterfacePrivate;
class REMOTELINUX_EXPORT LinuxProcessInterface : public SshProcessInterface
{
public:
LinuxProcessInterface(const LinuxDevice *linuxDevice);
~LinuxProcessInterface();
private:
void sendControlSignal(Utils::ControlSignal controlSignal) override;
void handleStarted(qint64 processId) final;
void handleDone(const Utils::ProcessResultData &resultData) final;
void handleReadyReadStandardOutput(const QByteArray &outputData) final;
void handleReadyReadStandardError(const QByteArray &errorData) final;
QString fullCommandLine(const Utils::CommandLine &commandLine) const final;
QByteArray m_output;
QByteArray m_error;
bool m_pidParsed = false;
};
} // namespace RemoteLinux
|