QGIS API Documentation  3.4.15-Madeira (e83d02e274)
qgsautheditorwidgets.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsautheditorwidgets.h
3  ---------------------
4  begin : April 26, 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 #ifndef QGSAUTHEDITORWIDGETS_H
18 #define QGSAUTHEDITORWIDGETS_H
19 
20 #include <QWidget>
21 #include "qgis.h"
22 #include "ui_qgsautheditorwidgets.h"
23 #include "ui_qgsauthmethodplugins.h"
24 #include "qgis_gui.h"
25 
30 class GUI_EXPORT QgsAuthMethodPlugins : public QDialog, private Ui::QgsAuthMethodPlugins
31 {
32  Q_OBJECT
33 
34  public:
35 
40  explicit QgsAuthMethodPlugins( QWidget *parent SIP_TRANSFERTHIS = nullptr );
41 
42  private slots:
43  void populateTable();
44 
45  private:
46  void setupTable();
47 
48  QVBoxLayout *mAuthNotifyLayout = nullptr;
49  QLabel *mAuthNotify = nullptr;
50 };
51 
52 
57 class GUI_EXPORT QgsAuthEditorWidgets : public QWidget, private Ui::QgsAuthEditors
58 {
59  Q_OBJECT
60 
61  public:
62 
67  explicit QgsAuthEditorWidgets( QWidget *parent SIP_TRANSFERTHIS = nullptr );
68 
69  private slots:
70  void btnCertManager_clicked();
71  void btnAuthPlugins_clicked();
72 
74  void setMasterPassword();
75 
77  void clearCachedMasterPassword();
78 
80  void resetMasterPassword();
81 
83  void clearCachedAuthenticationConfigs();
84 
86  void removeAuthenticationConfigs();
87 
89  void eraseAuthenticationDatabase();
90 
92  void authMessageOut( const QString &message, const QString &authtag, QgsAuthManager::MessageLevel level );
93 
95  void passwordHelperDelete();
96 
98  void passwordHelperSync();
99 
101  void passwordHelperEnableTriggered();
102 
104  void passwordHelperLoggingEnableTriggered();
105 
106  private:
107  void setupUtilitiesMenu();
108 
109  QgsMessageBar *messageBar();
110  int messageTimeout();
111 
112  QMenu *mAuthUtilitiesMenu = nullptr;
113  QAction *mActionSetMasterPassword = nullptr;
114  QAction *mActionClearCachedMasterPassword = nullptr;
115  QAction *mActionResetMasterPassword = nullptr;
116  QAction *mActionClearCachedAuthConfigs = nullptr;
117  QAction *mActionRemoveAuthConfigs = nullptr;
118  QAction *mActionEraseAuthDatabase = nullptr;
119  QAction *mActionPasswordHelperDelete = nullptr;
120  QAction *mActionPasswordHelperSync = nullptr;
121  QAction *mActionPasswordHelperEnable = nullptr;
122  QAction *mActionPasswordHelperLoggingEnable = nullptr;
123  QAction *mActionClearAccessCacheNow = nullptr;
124  QAction *mActionAutoClearAccessCache = nullptr;
125 };
126 
127 #endif // QGSAUTHEDITORWIDGETS_H
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:46
Dialog for viewing available authentication method plugins.
A bar for displaying non-blocking messages to the user.
Definition: qgsmessagebar.h:45
MessageLevel
Message log level (mirrors that of QgsMessageLog, so it can also output there)
Wrapper widget for available authentication editors.