QGIS API Documentation 3.99.0-Master (26c88405ac0)
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 "ui_qgsautheditorwidgets.h"
21#include "ui_qgsauthmethodplugins.h"
22
23#include "qgis_gui.h"
24#include "qgis_sip.h"
25
26#include <QWidget>
27
32class GUI_EXPORT QgsAuthMethodPlugins : public QDialog, private Ui::QgsAuthMethodPlugins
33{
34 Q_OBJECT
35
36 public:
37
42 explicit QgsAuthMethodPlugins( QWidget *parent SIP_TRANSFERTHIS = nullptr );
43
44 private slots:
45 void populateTable();
46
47 private:
48 void setupTable();
49
50 QVBoxLayout *mAuthNotifyLayout = nullptr;
51 QLabel *mAuthNotify = nullptr;
52};
53
54
59class GUI_EXPORT QgsAuthEditorWidgets : public QWidget, private Ui::QgsAuthEditors
60{
61 Q_OBJECT
62
63 public:
64
69 explicit QgsAuthEditorWidgets( QWidget *parent SIP_TRANSFERTHIS = nullptr );
70
71 private slots:
72 void btnCertManager_clicked();
73 void btnAuthPlugins_clicked();
74
76 void importAuthenticationConfigs();
77
79 void exportSelectedAuthenticationConfigs();
80
82 void setMasterPassword();
83
85 void clearCachedMasterPassword();
86
88 void resetMasterPassword();
89
91 void clearCachedAuthenticationConfigs();
92
94 void removeAuthenticationConfigs();
95
97 void eraseAuthenticationDatabase();
98
100 void authMessageLog( const QString &message, const QString &authtag, Qgis::MessageLevel level );
101
103 void passwordHelperDelete();
104
106 void passwordHelperEnableTriggered();
107
109 void passwordHelperLoggingEnableTriggered();
110
111 private:
112 void setupUtilitiesMenu();
113
114 QgsMessageBar *messageBar();
115
116 QMenu *mAuthUtilitiesMenu = nullptr;
117 QAction *mActionExportSelectedAuthenticationConfigs = nullptr;
118 QAction *mActionImportAuthenticationConfigs = nullptr;
119 QAction *mActionSetMasterPassword = nullptr;
120 QAction *mActionClearCachedMasterPassword = nullptr;
121 QAction *mActionResetMasterPassword = nullptr;
122 QAction *mActionClearCachedAuthConfigs = nullptr;
123 QAction *mActionRemoveAuthConfigs = nullptr;
124 QAction *mActionEraseAuthDatabase = nullptr;
125 QAction *mActionPasswordHelperDelete = 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:156
QgsAuthEditorWidgets(QWidget *parent=nullptr)
Construct a widget to contain various authentication editors.
QgsAuthMethodPlugins(QWidget *parent=nullptr)
Construct a 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