mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
upload code
This commit is contained in:
26
ui/edit/edit_trojan_vless.cpp
Normal file
26
ui/edit/edit_trojan_vless.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "edit_trojan_vless.h"
|
||||
#include "ui_edit_trojan_vless.h"
|
||||
|
||||
#include "fmt/TrojanVLESSBean.hpp"
|
||||
|
||||
EditTrojanVLESS::EditTrojanVLESS(QWidget *parent) :
|
||||
QWidget(parent), ui(new Ui::EditTrojanVLESS) {
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
EditTrojanVLESS::~EditTrojanVLESS() {
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void EditTrojanVLESS::onStart(QSharedPointer<NekoRay::ProxyEntity> _ent) {
|
||||
this->ent = _ent;
|
||||
auto bean = this->ent->TrojanVLESSBean();
|
||||
if (bean->proxy_type == NekoRay::fmt::TrojanVLESSBean::proxy_VLESS) ui->label->setText("UUID");
|
||||
ui->password->setText(bean->password);
|
||||
}
|
||||
|
||||
bool EditTrojanVLESS::onEnd() {
|
||||
auto bean = this->ent->TrojanVLESSBean();
|
||||
bean->password = ui->password->text();
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user