You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @file FITKLinuxShellDriver.h
|
|
|
|
|
* @brief 第三方程序驱动抽象类声明
|
|
|
|
|
* @author libaojun (libaojunqd@Foxmail.com)
|
|
|
|
|
* @date 2024-06-09
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
#ifndef __FITK_LINUXSHELL_DRIVER_H__
|
|
|
|
|
#define __FITK_LINUXSHELL_DRIVER_H__
|
|
|
|
|
|
|
|
|
|
#include "FITKAppFrameworkAPI.h"
|
|
|
|
|
#include "FITK_Kernel/FITKCore/FITKAbstractDataObject.h"
|
|
|
|
|
#include "FITKAbstractProgramDriver.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace AppFrame
|
|
|
|
|
{
|
|
|
|
|
class FITKAbstractCommandRunner;
|
|
|
|
|
/**
|
|
|
|
|
* @brief 第三方程序driver抽象类
|
|
|
|
|
* @author libaojun (libaojunqd@Foxmail.com)
|
|
|
|
|
* @date 2024-06-09
|
|
|
|
|
*/
|
|
|
|
|
class FITKAppFrameworkAPI FITKLinuxShellDriver : public FITKAbstractProgramerDriver
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* @brief Construct a new FITKLinuxProgramerDriver object
|
|
|
|
|
* @author libaojun (libaojunqd@Foxmail.com)
|
|
|
|
|
* @date 2024-06-09
|
|
|
|
|
*/
|
|
|
|
|
explicit FITKLinuxShellDriver();
|
|
|
|
|
/**
|
|
|
|
|
* @brief Destroy the FITKLinuxProgramerDriver object
|
|
|
|
|
* @author libaojun (libaojunqd@Foxmail.com)
|
|
|
|
|
* @date 2024-06-09
|
|
|
|
|
*/
|
|
|
|
|
virtual ~FITKLinuxShellDriver();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 发送输出到控制台
|
|
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
|
|
* @date 2024-07-18
|
|
|
|
|
*/
|
|
|
|
|
void sendOutputMessage(const QString &str);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 进程ID
|
|
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
|
|
* @date 2024-07-18
|
|
|
|
|
*/
|
|
|
|
|
qint64 _processId = -1;
|
|
|
|
|
/**
|
|
|
|
|
* @brief 终端命令执行 子类中实例
|
|
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
|
|
* @date 2024-07-23
|
|
|
|
|
*/
|
|
|
|
|
FITKAbstractCommandRunner* _commandRunner{};
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|