mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 12:34:37 +03:00
--------- Co-authored-by: 2022-blake3-chacha8-poly1305 <139959885+xchacha20-ietf-poly1305@users.noreply.github.com> Co-authored-by: arm64v8a <48624112+arm64v8a@users.noreply.github.com>
40 lines
694 B
C++
40 lines
694 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include <QGridLayout>
|
|
#include <QHBoxLayout>
|
|
#include "profile_editor.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui {
|
|
class EditQUIC;
|
|
}
|
|
QT_END_NAMESPACE
|
|
|
|
class EditQUIC : public QWidget, public ProfileEditor {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit EditQUIC(QWidget *parent = nullptr);
|
|
|
|
~EditQUIC() override;
|
|
|
|
void onStart(std::shared_ptr<NekoGui::ProxyEntity> _ent) override;
|
|
|
|
bool onEnd() override;
|
|
|
|
QList<QPair<QPushButton *, QString>> get_editor_cached() override;
|
|
|
|
private:
|
|
Ui::EditQUIC *ui;
|
|
std::shared_ptr<NekoGui::ProxyEntity> ent;
|
|
|
|
struct {
|
|
QString caText;
|
|
} CACHE;
|
|
|
|
private slots:
|
|
|
|
void on_certificate_clicked();
|
|
};
|