QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsauthimportcertdialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsauthimportcertdialog.h
3 ---------------------
4 begin : April 30, 2015
5 copyright : (C) 2015 by Boundless Spatial, Inc. USA
6 author : Larry Shaffer
7 email : lshaffer at boundlessgeo dot com
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#ifndef QGSAUTHIMPORTCERTDIALOG_H
18#define QGSAUTHIMPORTCERTDIALOG_H
19
20#include "ui_qgsauthimportcertdialog.h"
21
22#include "qgis_gui.h"
23#include "qgis_sip.h"
24
25#include <QDialog>
26#include <QSslCertificate>
27
28class QPushButton;
29
34class GUI_EXPORT QgsAuthImportCertDialog : public QDialog, private Ui::QgsAuthImportCertDialog
35{
36 Q_OBJECT
37
38 public:
41 {
44 };
45
48 {
52 };
53
60 explicit QgsAuthImportCertDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, QgsAuthImportCertDialog::CertFilter filter = NoFilter, QgsAuthImportCertDialog::CertInput input = AllInputs );
61
63 const QList<QSslCertificate> certificatesToImport();
64
66 const QString certFileToImport();
67
69 const QString certTextToImport();
70
72 bool allowInvalidCerts();
73
75 QgsAuthCertUtils::CertTrustPolicy certTrustPolicy();
76
77 private slots:
78 void updateGui();
79
80 void validateCertificates();
81
82 void btnImportFile_clicked();
83
84 void chkAllowInvalid_toggled( bool checked );
85
86 private:
87 QString getOpenFileName( const QString &title, const QString &extfilter );
88
89 QPushButton *okButton();
90
91 QList<QSslCertificate> mCerts;
94
95 bool mDisabled = false;
96 QVBoxLayout *mAuthNotifyLayout = nullptr;
97 QLabel *mAuthNotify = nullptr;
98};
99
100#endif // QGSAUTHIMPORTCERTDIALOG_H
CertTrustPolicy
Type of certificate trust policy.
Widget for importing a certificate into the authentication database.
CertFilter
Type of filter to apply to dialog.
QgsAuthImportCertDialog(QWidget *parent=nullptr, QgsAuthImportCertDialog::CertFilter filter=NoFilter, QgsAuthImportCertDialog::CertInput input=AllInputs)
Construct a dialog for importing certificates.
CertInput
Type of inputs for certificates.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53