mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 10:23:33 +08:00
34 lines
677 B
C++
34 lines
677 B
C++
#ifndef CORECOMMANDBUILDER_H
|
|
#define CORECOMMANDBUILDER_H
|
|
|
|
#include <QMap>
|
|
#include <QStringList>
|
|
|
|
#include "core/connectionprofile.h"
|
|
|
|
struct CoreRuntimePaths
|
|
{
|
|
QString graphCodeFile;
|
|
QString clientDataFile;
|
|
QString debugPcapFile;
|
|
QString debugTlsLogFile;
|
|
};
|
|
|
|
struct CoreCommand
|
|
{
|
|
QStringList arguments;
|
|
QStringList loggableArguments;
|
|
QStringList clearedEnvironmentVariables;
|
|
QMap<QString, QString> environmentVariables;
|
|
|
|
QString loggableCommandLine() const;
|
|
};
|
|
|
|
class CoreCommandBuilder
|
|
{
|
|
public:
|
|
static CoreCommand build(const ConnectionProfile &profile, const CoreRuntimePaths &runtimePaths = {});
|
|
};
|
|
|
|
#endif // CORECOMMANDBUILDER_H
|