QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Protected Member Functions | Private Slots | List of all members
QgsCredentialDialog Class Reference

A generic dialog for requesting credentials. More...

#include <qgscredentialdialog.h>

Inheritance diagram for QgsCredentialDialog:
Inheritance graph
[legend]
Collaboration diagram for QgsCredentialDialog:
Collaboration graph
[legend]

Signals

void credentialsRequested (QString, QString *, QString *, QString, bool *)

Public Member Functions

 QgsCredentialDialog (QWidget *parent=0, Qt::WFlags fl=QgisGui::ModalDialogFlags)
 ~QgsCredentialDialog ()
- Public Member Functions inherited from QgsCredentials
virtual ~QgsCredentials ()
 virtual destructor
bool get (QString realm, QString &username, QString &password, QString message=QString::null)
void put (QString realm, QString username, QString password)

Protected Member Functions

virtual bool request (QString realm, QString &username, QString &password, QString message=QString::null)
 request a password
- Protected Member Functions inherited from QgsCredentials
void setInstance (QgsCredentials *theInstance)
 register instance

Private Slots

void requestCredentials (QString, QString *, QString *, QString, bool *)

Additional Inherited Members

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

Detailed Description

A generic dialog for requesting credentials.

Definition at line 30 of file qgscredentialdialog.h.

Constructor & Destructor Documentation

QgsCredentialDialog::QgsCredentialDialog ( QWidget *  parent = 0,
Qt::WFlags  fl = QgisGui::ModalDialogFlags 
)
QgsCredentialDialog::~QgsCredentialDialog ( )

Definition at line 34 of file qgscredentialdialog.cpp.

Member Function Documentation

void QgsCredentialDialog::credentialsRequested ( QString  ,
QString *  ,
QString *  ,
QString  ,
bool *   
)
signal

Referenced by QgsCredentialDialog(), and request().

bool QgsCredentialDialog::request ( QString  realm,
QString &  username,
QString &  password,
QString  message = QString::null 
)
protectedvirtual

request a password

Implements QgsCredentials.

Definition at line 38 of file qgscredentialdialog.cpp.

References credentialsRequested(), QgsDebugMsg, and requestCredentials().

void QgsCredentialDialog::requestCredentials ( QString  realm,
QString *  username,
QString *  password,
QString  message,
bool *  ok 
)
privateslot

Definition at line 54 of file qgscredentialdialog.cpp.

References QgsDebugMsg.

Referenced by QgsCredentialDialog(), and request().


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