QGIS API Documentation 3.38.0-Grenoble (exported)
Loading...
Searching...
No Matches
qgsauthconfigedit.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsauthconfigedit.h
3 ---------------------
4 begin : September 1, 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
18#ifndef QGSAUTHCONFIGEDIT_H
19#define QGSAUTHCONFIGEDIT_H
20
21#include <QDialog>
22
23#include "ui_qgsauthconfigedit.h"
24#include "qgis_gui.h"
25
26#define SIP_NO_FILE
27
29
30
36class GUI_EXPORT QgsAuthConfigEdit : public QDialog, private Ui::QgsAuthConfigEdit
37{
38 Q_OBJECT
39
40 public:
43 {
46 Unknown
47 };
48
55 explicit QgsAuthConfigEdit( QWidget *parent = nullptr, const QString &authcfg = QString(),
56 const QString &dataprovider = QString() );
57
59 const QString configId() const { return mAuthCfg; }
60
61 signals:
63 void authenticationConfigStored( const QString &authcfg );
64
66 void authenticationConfigUpdated( const QString &authcfg );
67
68 private slots:
69 void populateAuthMethods();
70
71 void loadConfig();
72 void resetConfig();
73 void saveConfig();
74
75 void btnClear_clicked();
76 void clearAll();
77
78 void validateAuth();
79
80 void leName_textChanged( const QString &txt );
81
82 private:
83 int authMethodIndex( const QString &authMethodKey );
84
85 QgsAuthMethodEdit *currentEditWidget();
86
87 QString mAuthCfg;
88 QString mDataProvider;
89 QVBoxLayout *mAuthNotifyLayout = nullptr;
90 QLabel *mAuthNotify = nullptr;
91};
92
93#endif // QGSAUTHCONFIGEDIT_H
Widget for editing an authentication configuration.
const QString configId() const
Authentication config id, updated with generated id when a new config is saved to auth database.
void authenticationConfigStored(const QString &authcfg)
Emit generated id when a new config is saved to auth database.
void authenticationConfigUpdated(const QString &authcfg)
Emit current id when an existing config is updated in auth database.
Validity
Type of configuration validity.
Abstract base class for the edit widget of authentication method plugins.