QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 
25 class QNetworkReply;
26 class QPushButton;
27 
31 class GUI_EXPORT QgsAuthSslErrorsDialog : public QDialog, private Ui::QgsAuthSslErrorsDialog
32 {
33  Q_OBJECT
34  public:
44  const QList<QSslError>& sslErrors,
45  QWidget *parent = nullptr ,
46  const QString &digest = QString(),
47  const QString &hostport = QString() );
49 
50 
51  private slots:
52  void loadUnloadCertificate( bool load );
53 
54  void showCertificateChainInfo();
55 
56  void showCertificateChainCAsInfo();
57 
58  void widgetReadyToSaveChanged( bool cansave );
59  void checkCanSave();
60 
61  void clearCertificateConfig();
62 
63  void on_buttonBox_clicked( QAbstractButton *button );
64 
65  void on_btnChainInfo_clicked();
66 
67  void on_btnChainCAs_clicked();
68 
69  void on_grpbxSslErrors_collapsedStateChanged( bool collapsed );
70 
71  private:
72  void populateErrorsList();
73 
74  QPushButton* ignoreButton();
75  QPushButton* abortButton();
76  QPushButton* saveButton();
77 
78  QSslConfiguration mSslConfiguration;
79  QList<QSslError> mSslErrors;
80  QString mDigest;
81  QString mHostPort;
82 };
83 
84 #endif // QGSAUTHSSLERRORSDIALOG_H
Widget for reporting SSL errors and offering an option to store an SSL server exception into the auth...