mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 19:00:22 +08:00
34 lines
636 B
C++
34 lines
636 B
C++
#ifndef VINTERACT_H
|
|
#define VINTERACT_H
|
|
#include <QProcess>
|
|
#include <QString>
|
|
|
|
namespace Qv2ray
|
|
{
|
|
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
|