diff options
Diffstat (limited to 'src/certificateselectiondialog.hpp')
| -rw-r--r-- | src/certificateselectiondialog.hpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/certificateselectiondialog.hpp b/src/certificateselectiondialog.hpp deleted file mode 100644 index e628f5c..0000000 --- a/src/certificateselectiondialog.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef CERTIFICATESELECTIONDIALOG_HPP -#define CERTIFICATESELECTIONDIALOG_HPP - -#include <QDialog> - -#include "cryptoidentity.hpp" - -namespace Ui { -class CertificateSelectionDialog; -} - -class CertificateSelectionDialog : public QDialog -{ - Q_OBJECT - -public: - explicit CertificateSelectionDialog(QWidget *parent = nullptr); - ~CertificateSelectionDialog(); - - void setServerQuery(QString const & query); - - CryptoIdentity identity() const; - -private slots: - void on_use_temp_cert_30m_clicked(); - - void on_use_temp_cert_1h_clicked(); - - void on_use_temp_cert_12h_clicked(); - - void on_use_temp_cert_24h_clicked(); - - void on_use_temp_cert_48h_clicked(); - - void on_create_new_cert_clicked(); - - void on_use_selected_cert_clicked(); - - void on_certificates_doubleClicked(const QModelIndex &index); - -private: - //! Creates an anonymous identity with a randomly chosen name that - //! will time out on `timeout`, then accepts the dialog. - void acceptTemporaryWithTimeout(QDateTime timeout); - - - void on_currentChanged(const QModelIndex ¤t, const QModelIndex &previous); -private: - Ui::CertificateSelectionDialog *ui; - - CryptoIdentity cryto_identity; -}; - -#endif // CERTIFICATESELECTIONDIALOG_HPP |
