aboutsummaryrefslogtreecommitdiff
path: root/src/dialogs/certificatemanagementdialog.hpp
blob: 23c07fa5ecf3f5f1a4d37caebade77127031a385 (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
46
47
48
49
50
51
#ifndef CERTIFICATEMANAGEMENTDIALOG_HPP
#define CERTIFICATEMANAGEMENTDIALOG_HPP

#include <QDialog>

#include "cryptoidentity.hpp"
#include "identitycollection.hpp"

namespace Ui {
class CertificateManagementDialog;
}

class CertificateManagementDialog : public QDialog
{
    Q_OBJECT

public:
    explicit CertificateManagementDialog(QWidget *parent = nullptr);
    ~CertificateManagementDialog();

    IdentityCollection identitySet() const;
    void setIdentitySet(IdentityCollection const & src);

private slots:
    void on_cert_notes_textChanged();

    void on_cert_display_name_textChanged(const QString &arg1);

    void on_delete_cert_button_clicked();

    void on_export_cert_button_clicked();

    void on_import_cert_button_clicked();

    void on_create_cert_button_clicked();

    void on_cert_host_filter_textChanged(const QString &arg1);

    void on_cert_auto_enable_clicked(bool checked);

private:
    void on_certificates_selected(const QModelIndex &index, QModelIndex const & previous);
private:
    Ui::CertificateManagementDialog *ui;

    IdentityCollection identity_set;

    CryptoIdentity * selected_identity;
};

#endif // CERTIFICATEMANAGEMENTDIALOG_HPP