ControlPasswordInputDialog Class Reference

#include <controlpasswordinputdialog.h>

List of all members.

Signals

void helpRequested (const QString &topic)

Public Member Functions

 ControlPasswordInputDialog (QWidget *parent=0)
QString password () const
bool isSavePasswordChecked () const
void setResetEnabled (bool enabled)

Protected Slots

void clicked (QAbstractButton *button)
void passwordEdited (const QString &text)

Protected Member Functions

virtual void setVisible (bool visible)

Private Attributes

Ui::ControlPasswordInputDialog ui


Detailed Description

Definition at line 27 of file controlpasswordinputdialog.h.


Constructor & Destructor Documentation

ControlPasswordInputDialog::ControlPasswordInputDialog ( QWidget *  parent = 0  ) 

Default constructor.

Definition at line 23 of file controlpasswordinputdialog.cpp.

References clicked(), passwordEdited(), and ui.


Member Function Documentation

QString ControlPasswordInputDialog::password (  )  const

Returns the password entered in the dialog. If the dialog was dismissed with the "Cancel" button, then the returned QString will be empty.

Definition at line 58 of file controlpasswordinputdialog.cpp.

References ui.

Referenced by MainWindow::authenticationFailed().

bool ControlPasswordInputDialog::isSavePasswordChecked (  )  const

Returns true if the "Remember my password" checkbox was checked at the time the dialog was dismissed.

Definition at line 64 of file controlpasswordinputdialog.cpp.

References ui.

Referenced by MainWindow::authenticationFailed().

void ControlPasswordInputDialog::setResetEnabled ( bool  enabled  ) 

If enabled is true, then the "Reset" button will be visible on the password input dialog. Otherwise, the "Reset" button will be hidden.

Definition at line 45 of file controlpasswordinputdialog.cpp.

References ui.

Referenced by MainWindow::authenticationFailed().

void ControlPasswordInputDialog::helpRequested ( const QString &  topic  )  [signal]

Emitted when the user clicks on the "Help" dialog button.

Referenced by clicked().

void ControlPasswordInputDialog::clicked ( QAbstractButton *  button  )  [protected, slot]

Called when one of the QDialogButtonBox's buttons is clicked. The dialog is closed if button is the "Ok", "Cancel", or "Reset" button, and the clicked button's QDialogButtonBox::StandardButton enum value is returned as the dialog's result code.

Definition at line 78 of file controlpasswordinputdialog.cpp.

References helpRequested(), and ui.

Referenced by ControlPasswordInputDialog().

void ControlPasswordInputDialog::passwordEdited ( const QString &  text  )  [protected, slot]

Called when the user changes the password QLineEdit. If the password is empty, then the "Ok" button will be disabled. Otherwise, it is enabled.

Definition at line 70 of file controlpasswordinputdialog.cpp.

References ui.

Referenced by ControlPasswordInputDialog().

void ControlPasswordInputDialog::setVisible ( bool  visible  )  [protected, virtual]

Adjusts the size of the input dialog when it is displayed.

Definition at line 98 of file controlpasswordinputdialog.cpp.


Member Data Documentation

Ui::ControlPasswordInputDialog ControlPasswordInputDialog::ui [private]

Qt Designer generated object.

Definition at line 74 of file controlpasswordinputdialog.h.

Referenced by clicked(), ControlPasswordInputDialog(), isSavePasswordChecked(), password(), passwordEdited(), and setResetEnabled().


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

Generated on Wed Nov 26 21:02:39 2008 for Vidalia by  doxygen 1.5.6