gui::PasswordDialog Class Reference

Window for asking password. More...

#include <passworddialog.h>

List of all members.

Public Slots

void cancel ()
void ok ()

Public Member Functions

 PasswordDialog (QWidget *parent=0, QString title=QString::null)
 ~PasswordDialog ()

Static Public Member Functions

static QString ask (QWidget *parent=0, const QString &title=QString::null)

Private Attributes

QLineEdit * password_query
QString password

Detailed Description

Window for asking password.

Simple widget for asking password


Constructor & Destructor Documentation

gui::PasswordDialog::PasswordDialog ( QWidget *  parent = 0,
QString  title = QString::null 
)

Default constructor of password dialog

Parameters:
title of dialog. If not specified, default will be used
parent parent widget of this dialog

References APP_NAME, cancel(), ok(), and password_query.

gui::PasswordDialog::~PasswordDialog (  ) 

default destructor

References debug::DBG_DBG, guiPrintDbg, and password.


Member Function Documentation

QString gui::PasswordDialog::ask ( QWidget *  parent = 0,
const QString &  title = QString::null 
) [static]

Invoke password dialog, asking user for password

Parameters:
parent Parent window of the dialog
title Optional title, if not specified, some default title like "enter password" would be used
Returns:
entered password, or QString::null if dialog is cancelled

References password.

Referenced by gui::BaseGUI::checkItem().

void gui::PasswordDialog::cancel (  )  [slot]

Called on pushing 'Cancel' button

References password.

Referenced by PasswordDialog().

void gui::PasswordDialog::ok (  )  [slot]

Called on pushing 'OK' button

References password, and password_query.

Referenced by PasswordDialog().


Member Data Documentation

QString gui::PasswordDialog::password [private]

Current password

Referenced by ask(), cancel(), ok(), and ~PasswordDialog().

editbox with password

Referenced by ok(), and PasswordDialog().


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