QGIS API Documentation 3.41.0-Master (57ec4277f5e)
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(), const QString &dataprovider = QString() );
56
58 const QString configId() const { return mAuthCfg; }
59
60 signals:
62 void authenticationConfigStored( const QString &authcfg );
63
65 void authenticationConfigUpdated( const QString &authcfg );
66
67 private slots:
68 void populateAuthMethods();
69
70 void loadConfig();
71 void resetConfig();
72 void saveConfig();
73
74 void btnClear_clicked();
75 void clearAll();
76
77 void validateAuth();
78
79 void leName_textChanged( const QString &txt );
80
81 private:
82 int authMethodIndex( const QString &authMethodKey );
83
84 QgsAuthMethodEdit *currentEditWidget();
85
86 QString mAuthCfg;
87 QString mDataProvider;
88 QVBoxLayout *mAuthNotifyLayout = nullptr;
89 QLabel *mAuthNotify = nullptr;
90};
91
92#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.