QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsauthsslerrorsdialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsauthsslerrorsdialog.h
3 ---------------------
4 begin : May 22, 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
18#ifndef QGSAUTHSSLERRORSDIALOG_H
19#define QGSAUTHSSLERRORSDIALOG_H
20
21#include "ui_qgsauthsslerrorsdialog.h"
22
23#include "qgis_gui.h"
24#include "qgis_sip.h"
25
26#include <QDialog>
27#include <QSslError>
28
29class QNetworkReply;
30class QPushButton;
31
36class GUI_EXPORT QgsAuthSslErrorsDialog : public QDialog, private Ui::QgsAuthSslErrorsDialog
37{
38 Q_OBJECT
39 public:
48 QgsAuthSslErrorsDialog( QNetworkReply *reply, const QList<QSslError> &sslErrors, QWidget *parent SIP_TRANSFERTHIS = nullptr, const QString &digest = QString(), const QString &hostport = QString() );
49
50 private slots:
51 void loadUnloadCertificate( bool load );
52
53 void showCertificateChainInfo();
54
55 void showCertificateChainCAsInfo();
56
57 void widgetReadyToSaveChanged( bool cansave );
58 void checkCanSave();
59
60 void clearCertificateConfig();
61
62 void buttonBox_clicked( QAbstractButton *button );
63
64 void btnChainInfo_clicked();
65
66 void btnChainCAs_clicked();
67
68 void grpbxSslErrors_collapsedStateChanged( bool collapsed );
69
70 private:
71 void populateErrorsList();
72
73 QPushButton *ignoreButton();
74 QPushButton *abortButton();
75 QPushButton *saveButton();
76
77 QSslConfiguration mSslConfiguration;
78 QList<QSslError> mSslErrors;
79 QString mDigest;
80 QString mHostPort;
81};
82
83#endif // QGSAUTHSSLERRORSDIALOG_H
QgsAuthSslErrorsDialog(QNetworkReply *reply, const QList< QSslError > &sslErrors, QWidget *parent=nullptr, const QString &digest=QString(), const QString &hostport=QString())
Construct a dialog to handle SSL errors and saving SSL server certificate exceptions.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53