Qv2ray/src/vinteract.hpp
2019-07-05 20:43:33 +08:00

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