mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
28 lines
488 B
C++
28 lines
488 B
C++
|
|
#ifndef TORPROTOCOLCONFIG_H
|
||
|
|
#define TORPROTOCOLCONFIG_H
|
||
|
|
|
||
|
|
#include <QJsonObject>
|
||
|
|
#include <QString>
|
||
|
|
|
||
|
|
namespace amnezia
|
||
|
|
{
|
||
|
|
|
||
|
|
struct TorServerConfig {
|
||
|
|
QString site;
|
||
|
|
|
||
|
|
QJsonObject toJson() const;
|
||
|
|
static TorServerConfig fromJson(const QJsonObject& json);
|
||
|
|
};
|
||
|
|
|
||
|
|
struct TorProtocolConfig {
|
||
|
|
TorServerConfig serverConfig;
|
||
|
|
|
||
|
|
QJsonObject toJson() const;
|
||
|
|
static TorProtocolConfig fromJson(const QJsonObject& json);
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace amnezia
|
||
|
|
|
||
|
|
#endif // TORPROTOCOLCONFIG_H
|
||
|
|
|