A generic dialog for requesting credentials.
More...
#include <qgscredentialdialog.h>
|
| QgsCredentialDialog (QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags) |
| QgsCredentialDialog constructor.
|
|
virtual | ~QgsCredentials ()=default |
| Destructor.
|
|
bool | get (const QString &realm, QString &username, QString &password, const QString &message=QString(), bool requestCredentials=true) |
| Requests credentials for the specified realm.
|
|
bool | getMasterPassword (QString &password, bool stored=false) |
|
void | lock () |
| Lock the instance against access from multiple threads.
|
|
QMutex * | mutex () |
| Returns pointer to mutex.
|
|
void | put (const QString &realm, const QString &username, const QString &password) |
| Stores the correct username and password for the specified realm.
|
|
void | unlock () |
| Unlock the instance after being locked.
|
|
A generic dialog for requesting credentials.
Definition at line 34 of file qgscredentialdialog.h.
◆ QgsCredentialDialog()
QgsCredentialDialog::QgsCredentialDialog |
( |
QWidget * |
parent = nullptr , |
|
|
Qt::WindowFlags |
fl = QgsGuiUtils::ModalDialogFlags |
|
) |
| |
◆ credentialsRequested
void QgsCredentialDialog::credentialsRequested |
( |
const QString & |
, |
|
|
QString * |
, |
|
|
QString * |
, |
|
|
const QString & |
, |
|
|
bool * |
|
|
) |
| |
|
signal |
- Note
- not available in Python bindings
◆ credentialsRequestedMasterPassword
void QgsCredentialDialog::credentialsRequestedMasterPassword |
( |
QString * |
, |
|
|
bool |
, |
|
|
bool * |
|
|
) |
| |
|
signal |
- Note
- not available in Python bindings
◆ request()
bool QgsCredentialDialog::request |
( |
const QString & |
realm, |
|
|
QString & |
username, |
|
|
QString & |
password, |
|
|
const QString & |
message = QString() |
|
) |
| |
|
overrideprotectedvirtual |
◆ requestMasterPassword()
bool QgsCredentialDialog::requestMasterPassword |
( |
QString & |
password, |
|
|
bool |
stored = false |
|
) |
| |
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files: