aboutsummaryrefslogtreecommitdiff
path: root/src/ssltrusteditor.hpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-19 21:13:32 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-19 21:13:32 +0200
commitbfdc7d39485bbef90a65b79f6c3b0986133f530d (patch)
tree7a50b6c9dc372cb302f064940c25826d0e1e07a1 /src/ssltrusteditor.hpp
parent63103aa8c7f5b56720da097c73aa99da25841d45 (diff)
downloadkristall-bfdc7d39485bbef90a65b79f6c3b0986133f530d.tar.gz
Reworks TLS trust to enable symmetry between HTTPS and Gemini
Diffstat (limited to 'src/ssltrusteditor.hpp')
-rw-r--r--src/ssltrusteditor.hpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/ssltrusteditor.hpp b/src/ssltrusteditor.hpp
new file mode 100644
index 0000000..841ba64
--- /dev/null
+++ b/src/ssltrusteditor.hpp
@@ -0,0 +1,44 @@
+#ifndef SSLTRUSTEDITOR_HPP
+#define SSLTRUSTEDITOR_HPP
+
+#include <QWidget>
+
+#include "ssltrust.hpp"
+
+namespace Ui {
+class SslTrustEditor;
+}
+
+class SslTrustEditor : public QWidget
+{
+ Q_OBJECT
+
+public:
+ explicit SslTrustEditor(QWidget *parent = nullptr);
+ ~SslTrustEditor();
+
+
+ SslTrust trust() const;
+ void setTrust(SslTrust const & trust);
+
+private slots:
+ void on_trust_revoke_selected_clicked();
+
+ void on_trust_enable_ca_clicked();
+
+ void on_trust_disable__ca_clicked();
+
+ void on_trust_level_currentIndexChanged(int index);
+
+private:
+
+
+ void on_trusted_server_selection(QModelIndex const & current, QModelIndex const & previous);
+
+private:
+ Ui::SslTrustEditor *ui;
+
+ SslTrust current_trust;
+};
+
+#endif // SSLTRUSTEDITOR_HPP