QGIS API Documentation 3.41.0-Master (57ec4277f5e)
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 <QDialog>
22#include <QSslError>
23#include "ui_qgsauthsslerrorsdialog.h"
24#include "qgis_gui.h"
25#include "qgis_sip.h"
26
27class QNetworkReply;
28class QPushButton;
29
34class GUI_EXPORT QgsAuthSslErrorsDialog : public QDialog, private Ui::QgsAuthSslErrorsDialog
35{
36 Q_OBJECT
37 public:
46 QgsAuthSslErrorsDialog( QNetworkReply *reply, const QList<QSslError> &sslErrors, QWidget *parent SIP_TRANSFERTHIS = nullptr, const QString &digest = QString(), const QString &hostport = QString() );
47
48 private slots:
49 void loadUnloadCertificate( bool load );
50
51 void showCertificateChainInfo();
52
53 void showCertificateChainCAsInfo();
54
55 void widgetReadyToSaveChanged( bool cansave );
56 void checkCanSave();
57
58 void clearCertificateConfig();
59
60 void buttonBox_clicked( QAbstractButton *button );
61
62 void btnChainInfo_clicked();
63
64 void btnChainCAs_clicked();
65
66 void grpbxSslErrors_collapsedStateChanged( bool collapsed );
67
68 private:
69 void populateErrorsList();
70
71 QPushButton *ignoreButton();
72 QPushButton *abortButton();
73 QPushButton *saveButton();
74
75 QSslConfiguration mSslConfiguration;
76 QList<QSslError> mSslErrors;
77 QString mDigest;
78 QString mHostPort;
79};
80
81#endif // QGSAUTHSSLERRORSDIALOG_H
Widget for reporting SSL errors and offering an option to store an SSL server exception into the auth...
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53