QGIS API Documentation
3.6.0-Noosa (5873452)
|
Implementation of credentials interface for the console. More...
#include <qgscredentials.h>
Signals | |
void | destroyed () |
signals that object will be destroyed and shouldn't be used anymore More... | |
Public Member Functions | |
QgsCredentialsConsole () | |
Public Member Functions inherited from QgsCredentials | |
virtual | ~QgsCredentials ()=default |
Destructor. More... | |
bool | get (const QString &realm, QString &username, QString &password, const QString &message=QString()) |
Requests credentials for the specified realm. More... | |
bool | getMasterPassword (QString &password, bool stored=false) |
Q_DECL_DEPRECATED void | lock () |
Lock the instance against access from multiple threads. More... | |
Q_DECL_DEPRECATED QMutex * | mutex () |
Returns pointer to mutex. More... | |
void | put (const QString &realm, const QString &username, const QString &password) |
Stores the correct username and password for the specified realm. More... | |
Q_DECL_DEPRECATED void | unlock () |
Unlock the instance after being locked. More... | |
Protected Member Functions | |
bool | request (const QString &realm, QString &username, QString &password, const QString &message=QString()) override |
request a password More... | |
bool | requestMasterPassword (QString &password, bool stored=false) override |
request a master password More... | |
Protected Member Functions inherited from QgsCredentials | |
QgsCredentials ()=default | |
Constructor for QgsCredentials. More... | |
void | setInstance (QgsCredentials *instance) |
register instance More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from QgsCredentials | |
static QgsCredentials * | instance () |
retrieves instance More... | |
Implementation of credentials interface for the console.
This class outputs message to the standard output and retrieves input from standard input. Therefore it won't be the right choice for apps without GUI.
Definition at line 171 of file qgscredentials.h.
QgsCredentialsConsole::QgsCredentialsConsole | ( | ) |
Definition at line 130 of file qgscredentials.cpp.
|
signal |
signals that object will be destroyed and shouldn't be used anymore
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
request a master password
Implements QgsCredentials.
Definition at line 151 of file qgscredentials.cpp.