QGIS API Documentation 4.3.0-Master (16649ce5cc6)
Loading...
Searching...
No Matches
QgsCredentialsNone Class Reference

Default implementation of credentials interface. More...

#include <qgscredentials.h>

Inheritance diagram for QgsCredentialsNone:

Signals

void destroyed ()
 signals that object will be destroyed and shouldn't be used anymore

Public Member Functions

 QgsCredentialsNone ()
Public Member Functions inherited from QgsCredentials
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.

Protected Member Functions

bool request (const QString &realm, QString &username, QString &password, const QString &message=QString()) override
 request a password
bool requestMasterPassword (QString &password, bool stored=false) override
 request a master password
Protected Member Functions inherited from QgsCredentials
 QgsCredentials ()=default
void setInstance (QgsCredentials *instance)
 register instance

Additional Inherited Members

Static Public Member Functions inherited from QgsCredentials
static QgsCredentials * instance ()
 retrieves instance

Detailed Description

Default implementation of credentials interface.

This class doesn't prompt or return credentials

Definition at line 139 of file qgscredentials.h.

Constructor & Destructor Documentation

◆ QgsCredentialsNone()

QgsCredentialsNone::QgsCredentialsNone ( )

Definition at line 107 of file qgscredentials.cpp.

Member Function Documentation

◆ destroyed

void QgsCredentialsNone::destroyed ( )
signal

signals that object will be destroyed and shouldn't be used anymore

◆ request()

bool QgsCredentialsNone::request ( const QString & realm,
QString & username,
QString & password,
const QString & message = QString() )
overrideprotectedvirtual

request a password

Implements QgsCredentials.

Definition at line 112 of file qgscredentials.cpp.

◆ requestMasterPassword()

bool QgsCredentialsNone::requestMasterPassword ( QString & password,
bool stored = false )
overrideprotectedvirtual

request a master password

Implements QgsCredentials.

Definition at line 121 of file qgscredentials.cpp.


The documentation for this class was generated from the following files: