17 #ifndef QGSAUTHAUTHORITIESEDITOR_H
18 #define QGSAUTHAUTHORITIESEDITOR_H
22 #include <QSslCertificate>
24 #include "ui_qgsauthauthoritieseditor.h"
50 void populateCaCertsView();
52 void refreshCaCertsView();
54 void showCertInfo( QTreeWidgetItem *item );
57 void selectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
60 void checkSelection();
62 void handleDoubleClick( QTreeWidgetItem *item,
int col );
64 void btnAddCa_clicked();
66 void btnRemoveCa_clicked();
68 void btnInfoCa_clicked();
70 void btnGroupByOrg_toggled(
bool checked );
72 void editDefaultTrustPolicy();
76 void btnCaFile_clicked();
78 void btnCaFileClear_clicked();
80 void showTrustedCertificateAuthorities();
87 void showEvent( QShowEvent *e )
override;
99 void setupCaCertsTree();
101 void populateDatabaseCaCerts();
103 void populateFileCaCerts();
105 void populateRootCaCerts();
107 void populateCaCertsSection( QTreeWidgetItem *item,
const QList<QSslCertificate> &certs,
108 QgsAuthAuthoritiesEditor::CaType catype );
110 void appendCertsToGroup(
const QList<QSslCertificate> &certs,
111 QgsAuthAuthoritiesEditor::CaType catype,
112 QTreeWidgetItem *parent =
nullptr );
114 void appendCertsToItem(
const QList<QSslCertificate> &certs,
115 QgsAuthAuthoritiesEditor::CaType catype,
116 QTreeWidgetItem *parent =
nullptr );
118 void updateCertTrustPolicyCache();
120 void populateUtilitiesMenu();
123 int messageTimeout();
125 QVBoxLayout *mAuthNotifyLayout =
nullptr;
126 QLabel *mAuthNotify =
nullptr;
128 QTreeWidgetItem *mRootCaSecItem =
nullptr;
129 QTreeWidgetItem *mFileCaSecItem =
nullptr;
130 QTreeWidgetItem *mDbCaSecItem =
nullptr;
133 QMap<QgsAuthCertUtils::CertTrustPolicy, QStringList > mCertTrustCache;
135 QMenu *mUtilitiesMenu =
nullptr;
136 bool mDisabled =
false;
137 QAction *mActionDefaultTrustPolicy =
nullptr;
138 QAction *mActionShowTrustedCAs =
nullptr;
Widget for viewing and editing authentication identities database.
CertTrustPolicy
Type of certificate trust policy.
MessageLevel
Message log level (mirrors that of QgsMessageLog, so it can also output there)
A bar for displaying non-blocking messages to the user.