mirror of
https://github.com/bolucat/Archive.git
synced 2025-09-26 20:21:35 +08:00
31 lines
957 B
C++
31 lines
957 B
C++
#pragma once
|
|
|
|
#include "fmt/AbstractBean.hpp"
|
|
#include "fmt/V2RayStreamSettings.hpp"
|
|
|
|
namespace NekoGui_fmt {
|
|
class VMessBean : public AbstractBean {
|
|
public:
|
|
QString uuid = "";
|
|
int aid = 0;
|
|
QString security = "auto";
|
|
|
|
std::shared_ptr<V2rayStreamSettings> stream = std::make_shared<V2rayStreamSettings>();
|
|
|
|
VMessBean() : AbstractBean(0) {
|
|
_add(new configItem("id", &uuid, itemType::string));
|
|
_add(new configItem("aid", &aid, itemType::integer));
|
|
_add(new configItem("sec", &security, itemType::string));
|
|
_add(new configItem("stream", dynamic_cast<JsonStore *>(stream.get()), itemType::jsonStore));
|
|
};
|
|
|
|
QString DisplayType() override { return "VMess"; };
|
|
|
|
CoreObjOutboundBuildResult BuildCoreObjSingBox() override;
|
|
|
|
bool TryParseLink(const QString &link);
|
|
|
|
QString ToShareLink() override;
|
|
};
|
|
} // namespace NekoGui_fmt
|