Files

31 lines
534 B
C
Raw Permalink Normal View History

2025-06-27 22:13:52 +08:00
#ifndef CONFIG_H
#define CONFIG_H
#include <QString>
#include <Util.h>
#include <nlohmann/json.hpp>
#include <vector>
using json = nlohmann::json;
struct CgConnection {
std::string ip;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(CgConnection, ip);
};
using CgConVec = std::vector<CgConnection>;
class FrelayConfig
{
public:
FrelayConfig();
~FrelayConfig();
public:
bool SaveIpPort(const QString& ipPort);
std::vector<QString> GetIpPort();
private:
bool existFile(const std::string& path);
};
#endif // CONFIG_H