QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
auth
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 "ui_qgsauthconfigedit.h"
22
23
#include "qgis_gui.h"
24
25
#include <QDialog>
26
27
#define SIP_NO_FILE
28
29
class
QgsAuthMethodEdit
;
30
31
37
class
GUI_EXPORT
QgsAuthConfigEdit
:
public
QDialog,
private
Ui::QgsAuthConfigEdit
38
{
39
Q_OBJECT
40
41
public
:
43
enum
Validity
44
{
45
Valid
,
46
Invalid
,
47
Unknown
48
};
49
56
explicit
QgsAuthConfigEdit
( QWidget *parent =
nullptr
,
const
QString &authcfg = QString(),
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
QgsAuthConfigEdit
Widget for editing an authentication configuration.
Definition
qgsauthconfigedit.h:38
QgsAuthConfigEdit::configId
const QString configId() const
Authentication config id, updated with generated id when a new config is saved to auth database.
Definition
qgsauthconfigedit.h:59
QgsAuthConfigEdit::authenticationConfigStored
void authenticationConfigStored(const QString &authcfg)
Emit generated id when a new config is saved to auth database.
QgsAuthConfigEdit::authenticationConfigUpdated
void authenticationConfigUpdated(const QString &authcfg)
Emit current id when an existing config is updated in auth database.
QgsAuthConfigEdit::QgsAuthConfigEdit
QgsAuthConfigEdit(QWidget *parent=nullptr, const QString &authcfg=QString(), const QString &dataprovider=QString())
Create a dialog for editing an authentication configuration.
Definition
qgsauthconfigedit.cpp:36
QgsAuthConfigEdit::Validity
Validity
Type of configuration validity.
Definition
qgsauthconfigedit.h:44
QgsAuthConfigEdit::Invalid
@ Invalid
Definition
qgsauthconfigedit.h:46
QgsAuthConfigEdit::Unknown
@ Unknown
Definition
qgsauthconfigedit.h:47
QgsAuthConfigEdit::Valid
@ Valid
Definition
qgsauthconfigedit.h:45
QgsAuthMethodEdit
Abstract base class for the edit widget of authentication method plugins.
Definition
qgsauthmethodedit.h:30
Generated on
for QGIS API Documentation by
1.17.0