QGIS API Documentation 3.41.0-Master (57ec4277f5e)
Loading...
Searching...
No Matches
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:
39 explicit QgsAuthMethodPlugins( QWidget *parent SIP_TRANSFERTHIS = nullptr );
40
41 private slots:
42 void populateTable();
43
44 private:
45 void setupTable();
46
47 QVBoxLayout *mAuthNotifyLayout = nullptr;
48 QLabel *mAuthNotify = nullptr;
49};
50
51
56class GUI_EXPORT QgsAuthEditorWidgets : public QWidget, private Ui::QgsAuthEditors
57{
58 Q_OBJECT
59
60 public:
65 explicit QgsAuthEditorWidgets( QWidget *parent SIP_TRANSFERTHIS = nullptr );
66
67 private slots:
68 void btnCertManager_clicked();
69 void btnAuthPlugins_clicked();
70
72 void importAuthenticationConfigs();
73
75 void exportSelectedAuthenticationConfigs();
76
78 void setMasterPassword();
79
81 void clearCachedMasterPassword();
82
84 void resetMasterPassword();
85
87 void clearCachedAuthenticationConfigs();
88
90 void removeAuthenticationConfigs();
91
93 void eraseAuthenticationDatabase();
94
96 void authMessageLog( const QString &message, const QString &authtag, Qgis::MessageLevel level );
97
99 void passwordHelperDelete();
100
102 void passwordHelperSync();
103
105 void passwordHelperEnableTriggered();
106
108 void passwordHelperLoggingEnableTriggered();
109
110 private:
111 void setupUtilitiesMenu();
112
113 QgsMessageBar *messageBar();
114
115 QMenu *mAuthUtilitiesMenu = nullptr;
116 QAction *mActionExportSelectedAuthenticationConfigs = nullptr;
117 QAction *mActionImportAuthenticationConfigs = nullptr;
118 QAction *mActionSetMasterPassword = nullptr;
119 QAction *mActionClearCachedMasterPassword = nullptr;
120 QAction *mActionResetMasterPassword = nullptr;
121 QAction *mActionClearCachedAuthConfigs = nullptr;
122 QAction *mActionRemoveAuthConfigs = nullptr;
123 QAction *mActionEraseAuthDatabase = nullptr;
124 QAction *mActionPasswordHelperDelete = nullptr;
125 QAction *mActionPasswordHelperSync = nullptr;
126 QAction *mActionPasswordHelperEnable = nullptr;
127 QAction *mActionPasswordHelperLoggingEnable = nullptr;
128 QAction *mActionClearAccessCacheNow = nullptr;
129 QAction *mActionAutoClearAccessCache = nullptr;
130};
131
132#endif // QGSAUTHEDITORWIDGETS_H
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Definition qgis.h:154
Wrapper widget for available authentication editors.
Dialog for viewing available authentication method plugins.
A bar for displaying non-blocking messages to the user.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53