QGIS API Documentation  3.0.2-Girona (307d082)
Signals | Public Member Functions | Protected Member Functions | List of all members
QgsCredentialsNone Class Reference

Default implementation of credentials interface. More...

#include <qgscredentials.h>

Inheritance diagram for QgsCredentialsNone:
Inheritance graph
[legend]

Signals

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

Public Member Functions

 QgsCredentialsNone ()
 
- Public Member Functions inherited from QgsCredentials
virtual ~QgsCredentials ()=default
 Destructor. More...
 
bool get (const QString &realm, QString &username, QString &password, const QString &message=QString())
 
bool getMasterPassword (QString &password, bool stored=false)
 
void lock ()
 Lock the instance against access from multiple threads. More...
 
QMutex * mutex ()
 Return pointer to mutex. More...
 
void put (const QString &realm, const QString &username, const QString &password)
 
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 QgsCredentialsinstance ()
 retrieves instance More...
 

Detailed Description

Default implementation of credentials interface.

This class doesn't prompt or return credentials

Definition at line 117 of file qgscredentials.h.

Constructor & Destructor Documentation

◆ QgsCredentialsNone()

QgsCredentialsNone::QgsCredentialsNone ( )

Definition at line 96 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 101 of file qgscredentials.cpp.

◆ requestMasterPassword()

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

request a master password

Implements QgsCredentials.

Definition at line 110 of file qgscredentials.cpp.


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