Vidalia 0.2.15
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes
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 26 of file ControlPasswordInputDialog.h.


Constructor & Destructor Documentation

ControlPasswordInputDialog::ControlPasswordInputDialog ( QWidget *  parent = 0)

Default constructor.

Definition at line 22 of file ControlPasswordInputDialog.cpp.

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


Member Function Documentation

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 76 of file ControlPasswordInputDialog.cpp.

References helpRequested(), and ui.

Referenced by ControlPasswordInputDialog().

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

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

Referenced by clicked().

bool ControlPasswordInputDialog::isSavePasswordChecked ( ) const

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

Definition at line 62 of file ControlPasswordInputDialog.cpp.

References ui.

Referenced by MainWindow::authenticationFailed().

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 56 of file ControlPasswordInputDialog.cpp.

References ui.

Referenced by MainWindow::authenticationFailed().

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 68 of file ControlPasswordInputDialog.cpp.

References ui.

Referenced by ControlPasswordInputDialog().

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 44 of file ControlPasswordInputDialog.cpp.

References ui.

Referenced by MainWindow::authenticationFailed().

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

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

Definition at line 96 of file ControlPasswordInputDialog.cpp.


Member Data Documentation

Ui::ControlPasswordInputDialog ControlPasswordInputDialog::ui [private]

Qt Designer generated object.

Definition at line 73 of file ControlPasswordInputDialog.h.

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


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