Implementation of credentials interface for the console.
More...
#include <qgscredentials.h>
|
void | destroyed () |
| signals that object will be destroyed and shouldn't be used anymore
|
|
|
| QgsCredentialsConsole () |
|
virtual | ~QgsCredentials ()=default |
|
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.
|
|
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 166 of file qgscredentials.h.
◆ QgsCredentialsConsole()
QgsCredentialsConsole::QgsCredentialsConsole |
( |
| ) |
|
◆ destroyed
void QgsCredentialsConsole::destroyed |
( |
| ) |
|
|
signal |
signals that object will be destroyed and shouldn't be used anymore
◆ request()
bool QgsCredentialsConsole::request |
( |
const QString & |
realm, |
|
|
QString & |
username, |
|
|
QString & |
password, |
|
|
const QString & |
message = QString() |
|
) |
| |
|
overrideprotectedvirtual |
◆ requestMasterPassword()
bool QgsCredentialsConsole::requestMasterPassword |
( |
QString & |
password, |
|
|
bool |
stored = false |
|
) |
| |
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files: