aboutsummaryrefslogtreecommitdiff
path: root/src/ssltrusteditor.hpp
diff options
context:
space:
mode:
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