aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/ssltrusteditor.hpp
blob: aa07f8ff7dbae14d541fe0c18c31bf169c43c781 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef SSLTRUSTEDITOR_HPP
#define SSLTRUSTEDITOR_HPP

#include <QWidget>
#include <QSortFilterProxyModel>

#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