#pragma once #include #include #include #include "proxyservice.h" #include "httpapi.h" class ProxyServer : public QObject { Q_OBJECT public: explicit ProxyServer(QObject *parent = nullptr); ~ProxyServer(); bool start(quint16 port = 8080); void stop(); private: bool startXrayProcess(); void stopXrayProcess(); QScopedPointer m_api; QSharedPointer m_service; bool m_isRunning {false}; quint16 m_currentPort {0}; };