QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
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_sip.h"
22#include "ui_qgsautheditorwidgets.h"
23#include "ui_qgsauthmethodplugins.h"
24#include "qgis_gui.h"
25
30class 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
57class 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 importAuthenticationConfigs();
75
77 void exportSelectedAuthenticationConfigs();
78
80 void setMasterPassword();
81
83 void clearCachedMasterPassword();
84
86 void resetMasterPassword();
87
89 void clearCachedAuthenticationConfigs();
90
92 void removeAuthenticationConfigs();
93
95 void eraseAuthenticationDatabase();
96
98 void authMessageOut( const QString &message, const QString &authtag, QgsAuthManager::MessageLevel level );
99
101 void passwordHelperDelete();
102
104 void passwordHelperSync();
105
107 void passwordHelperEnableTriggered();
108
110 void passwordHelperLoggingEnableTriggered();
111
112 private:
113 void setupUtilitiesMenu();
114
115 QgsMessageBar *messageBar();
116
117 QMenu *mAuthUtilitiesMenu = nullptr;
118 QAction *mActionExportSelectedAuthenticationConfigs = nullptr;
119 QAction *mActionImportAuthenticationConfigs = nullptr;
120 QAction *mActionSetMasterPassword = nullptr;
121 QAction *mActionClearCachedMasterPassword = nullptr;
122 QAction *mActionResetMasterPassword = nullptr;
123 QAction *mActionClearCachedAuthConfigs = nullptr;
124 QAction *mActionRemoveAuthConfigs = nullptr;
125 QAction *mActionEraseAuthDatabase = nullptr;
126 QAction *mActionPasswordHelperDelete = nullptr;
127 QAction *mActionPasswordHelperSync = nullptr;
128 QAction *mActionPasswordHelperEnable = nullptr;
129 QAction *mActionPasswordHelperLoggingEnable = nullptr;
130 QAction *mActionClearAccessCacheNow = nullptr;
131 QAction *mActionAutoClearAccessCache = nullptr;
132
133};
134
135#endif // QGSAUTHEDITORWIDGETS_H
Wrapper widget for available authentication editors.
MessageLevel
Message log level (mirrors that of QgsMessageLog, so it can also output there)
Dialog for viewing available authentication method plugins.
A bar for displaying non-blocking messages to the user.
Definition: qgsmessagebar.h:61
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53