QGIS API Documentation 2.11.0-Master
Interface for requesting credentials in QGIS in GUI independent way. More...
|virtual destructor More...|
|bool||get (QString realm, QString &username, QString &password, QString message=QString::null)|
|Lock the instance against access from multiple threads. More...|
|QMutex *||mutex ()|
|Return pointer to mutex. More...|
|void||put (QString realm, QString username, QString password)|
|Unlock the instance after being locked. More...|
|static QgsCredentials *||instance ()|
|retrieves instance More...|
|virtual bool||request (QString realm, QString &username, QString &password, QString message=QString::null)=0|
|request a password More...|
|void||setInstance (QgsCredentials *theInstance)|
|register instance More...|
Interface for requesting credentials in QGIS in GUI independent way.
This class provides abstraction of a dialog for requesting credentials to the user. By default QgsCredentials will be used if not overridden with other credential creator function.
QGIS application uses QgsCredentialDialog class for displaying a dialog to the user.
Object deletes itself when it's not needed anymore. Children should use signal destroyed() to be notified of the deletion
Lock the instance against access from multiple threads.
This does not really lock access to get/put methds, it will just prevent other threads to lock the instance and continue the execution. When the class is used from non-GUI threads, they should call lock() before the get/put calls to avoid race conditions.