QGIS API Documentation
3.43.0-Master (2a27c31701b)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
gui
auth
qgsauthsettingswidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsauthsettingswidget.h - QgsAuthSettingsWidget
3
4
---------------------
5
begin : 28.9.2017
6
copyright : (C) 2017 by Alessandro Pasotti
7
email : apasotti 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
#ifndef QGSAUTHSETTINGSWIDGET_H
17
#define QGSAUTHSETTINGSWIDGET_H
18
19
#include "qgis_gui.h"
20
#include "
qgis_sip.h
"
21
22
#include "ui_qgsauthsettingswidget.h"
23
24
#include <QWidget>
25
35
class
GUI_EXPORT
QgsAuthSettingsWidget
:
public
QWidget,
private
Ui::QgsAuthSettingsWidget
36
{
37
Q_OBJECT
38
39
public
:
47
enum
WarningType
48
{
49
ProjectFile
,
50
UserSettings
51
};
47
enum
WarningType
{
…
};
52
Q_ENUM( WarningType )
53
54
63
explicit
QgsAuthSettingsWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
,
const
QString &configId = QString(),
const
QString &username = QString(),
const
QString &password = QString(),
const
QString &dataprovider = QString() );
64
70
void
removeBasicSettings();
71
77
void
setWarningText(
const
QString &warningText );
78
83
void
setBasicText(
const
QString &basicText );
84
89
QString username()
const
;
90
95
void
setUsername(
const
QString &username );
96
101
QString password()
const
;
102
107
void
setPassword(
const
QString &password );
108
113
QString configId()
const
;
114
119
void
setConfigId(
const
QString &configId );
120
125
void
setDataprovider(
const
QString &dataprovider );
126
131
QString dataprovider()
const
;
132
138
static
QString formattedWarning( WarningType warning );
139
144
bool
btnConvertToEncryptedIsEnabled()
const
;
145
153
void
showStoreCheckboxes(
bool
enabled );
154
160
void
setStoreUsernameChecked(
bool
checked );
161
167
void
setStorePasswordChecked(
bool
checked );
168
173
bool
storePasswordIsChecked()
const
;
174
179
bool
storeUsernameIsChecked()
const
;
180
185
bool
configurationTabIsSelected();
186
187
public
slots:
188
195
bool
convertToEncrypted();
196
197
signals:
198
204
void
usernameChanged
();
205
211
void
passwordChanged
();
212
218
void
configIdChanged
();
219
220
private
slots:
221
225
void
userNameTextChanged(
const
QString &text );
226
230
void
passwordTextChanged(
const
QString &text );
231
232
private
:
233
// Mainly for tests
234
QString mDataprovider;
235
236
void
updateConvertBtnState();
237
238
void
updateSelectedTab();
239
};
35
class
GUI_EXPORT
QgsAuthSettingsWidget
:
public
QWidget,
private
Ui::QgsAuthSettingsWidget {
…
};
240
241
#endif
// QGSAUTHSETTINGSWIDGET_H
QgsAuthSettingsWidget
Widget for entering authentication credentials both in the form username/password and by using QGIS A...
Definition
qgsauthsettingswidget.h:36
QgsAuthSettingsWidget::usernameChanged
void usernameChanged()
Emitted when the plain text username defined in the dialog is changed.
QgsAuthSettingsWidget::passwordChanged
void passwordChanged()
Emitted when the plain text password defined in the dialog is changed.
QgsAuthSettingsWidget::WarningType
WarningType
The WarningType enum is used to determine the text of the message shown to the user about the destina...
Definition
qgsauthsettingswidget.h:48
QgsAuthSettingsWidget::ProjectFile
@ ProjectFile
Definition
qgsauthsettingswidget.h:49
QgsAuthSettingsWidget::configIdChanged
void configIdChanged()
Emitted when the auth configuration ID selected in the dialog is changed.
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
Generated on Tue Mar 18 2025 12:31:40 for QGIS API Documentation by
1.9.8