QGIS API Documentation  2.14.0-Essen
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 "ui_qgsautheditorwidgets.h"
22 #include "ui_qgsauthmethodplugins.h"
23 
27 class GUI_EXPORT QgsAuthMethodPlugins : public QDialog, private Ui::QgsAuthMethodPlugins
28 {
29  Q_OBJECT
30 
31  public:
36  explicit QgsAuthMethodPlugins( QWidget *parent = nullptr );
37 
39 
40  private slots:
41  void populateTable();
42 
43  private:
44  void setupTable();
45 
46  QVBoxLayout *mAuthNotifyLayout;
47  QLabel *mAuthNotify;
48 };
49 
50 
54 class GUI_EXPORT QgsAuthEditorWidgets : public QWidget, private Ui::QgsAuthEditors
55 {
56  Q_OBJECT
57 
58  public:
63  explicit QgsAuthEditorWidgets( QWidget *parent = nullptr );
64 
66 
67  private slots:
68  void on_btnCertManager_clicked();
69  void on_btnAuthPlugins_clicked();
70 
72  void setMasterPassword();
73 
75  void clearCachedMasterPassword();
76 
78  void resetMasterPassword();
79 
81  void clearCachedAuthenticationConfigs();
82 
84  void removeAuthenticationConfigs();
85 
87  void eraseAuthenticationDatabase();
88 
90  void authMessageOut( const QString& message, const QString& authtag, QgsAuthManager::MessageLevel level );
91 
92  private:
93  void setupUtilitiesMenu();
94 
95  QgsMessageBar * messageBar();
96  int messageTimeout();
97 
98  QMenu *mAuthUtilitiesMenu;
99  QAction *mActionSetMasterPassword;
100  QAction *mActionClearCachedMasterPassword;
101  QAction *mActionResetMasterPassword;
102  QAction *mActionClearCachedAuthConfigs;
103  QAction *mActionRemoveAuthConfigs;
104  QAction *mActionEraseAuthDatabase;
105 };
106 
107 #endif // QGSAUTHEDITORWIDGETS_H
Dialog for viewing available authentication method plugins.
A bar for displaying non-blocking messages to the user.
Definition: qgsmessagebar.h:42
MessageLevel
Message log level (mirrors that of QgsMessageLog, so it can also output there)
Wrapper widget for available authentication editors.