QGIS API Documentation 3.41.0-Master (cea29feecf2)
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 <QDialog>
21#include "qgis_sip.h"
22#include "ui_qgsauthimportcertdialog.h"
23
24#include <QSslCertificate>
25#include "qgis_gui.h"
26
27class QPushButton;
28
33class GUI_EXPORT QgsAuthImportCertDialog : public QDialog, private Ui::QgsAuthImportCertDialog
34{
35 Q_OBJECT
36
37 public:
40 {
41 NoFilter = 1,
42 CaFilter = 2,
43 };
44
47 {
48 AllInputs = 1,
49 FileInput = 2,
50 TextInput = 3,
51 };
52
59 explicit QgsAuthImportCertDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, QgsAuthImportCertDialog::CertFilter filter = NoFilter, QgsAuthImportCertDialog::CertInput input = AllInputs );
60
62 const QList<QSslCertificate> certificatesToImport();
63
65 const QString certFileToImport();
66
68 const QString certTextToImport();
69
71 bool allowInvalidCerts();
72
74 QgsAuthCertUtils::CertTrustPolicy certTrustPolicy();
75
76 private slots:
77 void updateGui();
78
79 void validateCertificates();
80
81 void btnImportFile_clicked();
82
83 void chkAllowInvalid_toggled( bool checked );
84
85 private:
86 QString getOpenFileName( const QString &title, const QString &extfilter );
87
88 QPushButton *okButton();
89
90 QList<QSslCertificate> mCerts;
93
94 bool mDisabled = false;
95 QVBoxLayout *mAuthNotifyLayout = nullptr;
96 QLabel *mAuthNotify = nullptr;
97};
98
99#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.
CertInput
Type of inputs for certificates.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53