mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
35 lines
711 B
C++
35 lines
711 B
C++
#ifndef SHADOWSOCKSPROTOCOLCONFIG_H
|
|
#define SHADOWSOCKSPROTOCOLCONFIG_H
|
|
|
|
#include <QJsonObject>
|
|
#include <QString>
|
|
|
|
#include "protocolConfig.h"
|
|
|
|
namespace shadowsocks
|
|
{
|
|
struct ServerProtocolConfig
|
|
{
|
|
QString port;
|
|
QString cipher;
|
|
};
|
|
|
|
struct ClientProtocolConfig
|
|
{
|
|
bool isEmpty = true;
|
|
};
|
|
}
|
|
|
|
class ShadowsocksProtocolConfig : public ProtocolConfig
|
|
{
|
|
public:
|
|
ShadowsocksProtocolConfig(const QJsonObject &protocolConfigObject, const QString &protocolName);
|
|
|
|
QJsonObject toJson() const override;
|
|
|
|
shadowsocks::ServerProtocolConfig serverProtocolConfig;
|
|
shadowsocks::ClientProtocolConfig clientProtocolConfig;
|
|
};
|
|
|
|
#endif // SHADOWSOCKSPROTOCOLCONFIG_H
|