mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 02:40:20 +08:00
20 lines
701 B
C++
20 lines
701 B
C++
#include "base/Qv2rayBaseApplication.hpp"
|
|
using namespace Qv2ray;
|
|
int fakeArgc = 0;
|
|
char *fakeArgv[]{};
|
|
|
|
class QvTestApplication
|
|
: public QCoreApplication
|
|
, public Qv2rayApplicationInterface
|
|
{
|
|
public:
|
|
explicit QvTestApplication() : QCoreApplication(fakeArgc, fakeArgv), Qv2rayApplicationInterface(){};
|
|
virtual void MessageBoxWarn(QWidget *, const QString &, const QString &) override{};
|
|
virtual void MessageBoxInfo(QWidget *, const QString &, const QString &) override{};
|
|
virtual MessageOpt MessageBoxAsk(QWidget *, const QString &, const QString &, const QList<MessageOpt> &) override
|
|
{
|
|
return {};
|
|
};
|
|
virtual void OpenURL(const QString &) override{};
|
|
};
|