QGIS API Documentation  3.14.0-Pi (9f7028fd23)
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 
27 class QNetworkReply;
28 class QPushButton;
29 
34 class GUI_EXPORT QgsAuthSslErrorsDialog : public QDialog, private Ui::QgsAuthSslErrorsDialog
35 {
36  Q_OBJECT
37  public:
38 
47  QgsAuthSslErrorsDialog( QNetworkReply *reply,
48  const QList<QSslError> &sslErrors,
49  QWidget *parent SIP_TRANSFERTHIS = nullptr,
50  const QString &digest = QString(),
51  const QString &hostport = QString() );
52 
53  private slots:
54  void loadUnloadCertificate( bool load );
55 
56  void showCertificateChainInfo();
57 
58  void showCertificateChainCAsInfo();
59 
60  void widgetReadyToSaveChanged( bool cansave );
61  void checkCanSave();
62 
63  void clearCertificateConfig();
64 
65  void buttonBox_clicked( QAbstractButton *button );
66 
67  void btnChainInfo_clicked();
68 
69  void btnChainCAs_clicked();
70 
71  void grpbxSslErrors_collapsedStateChanged( bool collapsed );
72 
73  private:
74  void populateErrorsList();
75 
76  QPushButton *ignoreButton();
77  QPushButton *abortButton();
78  QPushButton *saveButton();
79 
80  QSslConfiguration mSslConfiguration;
81  QList<QSslError> mSslErrors;
82  QString mDigest;
83  QString mHostPort;
84 };
85 
86 #endif // QGSAUTHSSLERRORSDIALOG_H
QgsAuthSslErrorsDialog
Definition: qgsauthsslerrorsdialog.h:34
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53