aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/ssltrusteditor.hpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-22 21:10:04 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-22 21:10:04 +0200
commit75ec461eeaa851cb5c53f4cfffc434e3e529ed1d (patch)
tree3944737340718ca3675381aa06636045d397e780 /src/widgets/ssltrusteditor.hpp
parent8dbfb0890560fd1cd698d06fa05ac868c4db8576 (diff)
downloadkristall-75ec461eeaa851cb5c53f4cfffc434e3e529ed1d.tar.gz
Restructures the project source and cleans up a bit
Diffstat (limited to 'src/widgets/ssltrusteditor.hpp')
-rw-r--r--src/widgets/ssltrusteditor.hpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/widgets/ssltrusteditor.hpp b/src/widgets/ssltrusteditor.hpp
new file mode 100644
index 0000000..841ba64
--- /dev/null
+++ b/src/widgets/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