Qv2ray/src/vinteract.h
Leroy.H.Y d3e3f14ae2 [Added][Fixed] Added JSON parse libraries, and fixed namespace structure.
Signed-off-by: Leroy.H.Y <lhy20010403@hotmail.com>

Former-commit-id: 7aaff60ff4
2019-07-03 00:18:39 +08:00

34 lines
636 B
C++

#ifndef VINTERACT_H
#define VINTERACT_H
#include <QProcess>
#include <QString>
namespace Hv2ray
{
enum V2RAY_INSTANCE_STARTUP_STATUS {
STOPPED,
STARTING,
STARTED
};
class v2Instance
{
public:
explicit v2Instance(QWidget *parent);
bool start();
void stop();
void restart();
static bool checkVCoreExes();
static bool checkConfigFile(QString path);
~v2Instance();
QProcess *vProcess;
private:
V2RAY_INSTANCE_STARTUP_STATUS processStatus;
};
}
#endif // VINTERACT_H