Files
EZ4Connect/application/systemproxybackend.h

24 lines
449 B
C++

#ifndef SYSTEMPROXYBACKEND_H
#define SYSTEMPROXYBACKEND_H
#include <QString>
struct SystemProxyConfig
{
int httpPort = 0;
int socksPort = 0;
QString bypass;
};
class SystemProxyBackend
{
public:
virtual ~SystemProxyBackend() = default;
virtual bool hasConflict(const SystemProxyConfig &config) = 0;
virtual bool apply(const SystemProxyConfig &config) = 0;
virtual bool clear() = 0;
};
#endif // SYSTEMPROXYBACKEND_H