QGIS API Documentation
3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
src
gui
auth
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
28
class
QPushButton;
29
34
class
GUI_EXPORT
QgsAuthImportCertDialog
:
public
QDialog,
private
Ui::QgsAuthImportCertDialog
35
{
36
Q_OBJECT
37
38
public
:
40
enum
CertFilter
41
{
42
NoFilter
= 1,
43
CaFilter
= 2,
44
};
45
47
enum
CertInput
48
{
49
AllInputs
= 1,
50
FileInput
= 2,
51
TextInput
= 3,
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;
92
QgsAuthImportCertDialog::CertFilter
mFilter;
93
QgsAuthImportCertDialog::CertInput
mInput;
94
95
bool
mDisabled =
false
;
96
QVBoxLayout *mAuthNotifyLayout =
nullptr
;
97
QLabel *mAuthNotify =
nullptr
;
98
};
99
100
#endif
// QGSAUTHIMPORTCERTDIALOG_H
QgsAuthCertUtils::CertTrustPolicy
CertTrustPolicy
Type of certificate trust policy.
Definition
qgsauthcertutils.h:54
QgsAuthImportCertDialog
Widget for importing a certificate into the authentication database.
Definition
qgsauthimportcertdialog.h:35
QgsAuthImportCertDialog::CertFilter
CertFilter
Type of filter to apply to dialog.
Definition
qgsauthimportcertdialog.h:41
QgsAuthImportCertDialog::NoFilter
@ NoFilter
Definition
qgsauthimportcertdialog.h:42
QgsAuthImportCertDialog::CaFilter
@ CaFilter
Definition
qgsauthimportcertdialog.h:43
QgsAuthImportCertDialog::QgsAuthImportCertDialog
QgsAuthImportCertDialog(QWidget *parent=nullptr, QgsAuthImportCertDialog::CertFilter filter=NoFilter, QgsAuthImportCertDialog::CertInput input=AllInputs)
Construct a dialog for importing certificates.
Definition
qgsauthimportcertdialog.cpp:34
QgsAuthImportCertDialog::CertInput
CertInput
Type of inputs for certificates.
Definition
qgsauthimportcertdialog.h:48
QgsAuthImportCertDialog::AllInputs
@ AllInputs
Definition
qgsauthimportcertdialog.h:49
QgsAuthImportCertDialog::FileInput
@ FileInput
Definition
qgsauthimportcertdialog.h:50
QgsAuthImportCertDialog::TextInput
@ TextInput
Definition
qgsauthimportcertdialog.h:51
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
Generated on
for QGIS API Documentation by
1.15.0