Vidalia 0.2.10
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes

BridgeDownloaderProgressDialog Class Reference

#include <BridgeDownloaderProgressDialog.h>

List of all members.

Public Slots

void setStatus (const QString &status)
void setDownloadProgress (int value, int maximum)
void bridgeRequestFinished (const QStringList &bridges)
void bridgeRequestFailed (const QString &error)

Signals

void retry ()

Public Member Functions

 BridgeDownloaderProgressDialog (QWidget *parent=0)

Protected Member Functions

virtual void setVisible (bool visible)

Private Slots

void buttonClicked (QAbstractButton *button)

Private Attributes

Ui::BridgeDownloaderProgressDialog ui

Detailed Description

Definition at line 25 of file BridgeDownloaderProgressDialog.h.


Constructor & Destructor Documentation

BridgeDownloaderProgressDialog::BridgeDownloaderProgressDialog ( QWidget *  parent = 0)

Default constructor.

Definition at line 22 of file BridgeDownloaderProgressDialog.cpp.

References buttonClicked(), and ui.


Member Function Documentation

void BridgeDownloaderProgressDialog::bridgeRequestFailed ( const QString &  error) [slot]

Called when the bridge download fails. The string error provides a human-readable description of the reason the download failed, which is displayed for the user.

Definition at line 65 of file BridgeDownloaderProgressDialog.cpp.

References ui.

void BridgeDownloaderProgressDialog::bridgeRequestFinished ( const QStringList &  bridges) [slot]

Called when the bridge download completes successfully and discards the progress dialog with an Accept result code. bridges contains the list of bridges downloaded, but is currently ignored.

Definition at line 57 of file BridgeDownloaderProgressDialog.cpp.

void BridgeDownloaderProgressDialog::buttonClicked ( QAbstractButton *  button) [private, slot]

Called when button is clicked in the progress dialog's QDialogButtonBox. Dismisses the dialog and sets the result code to the QDialogButtonBox::StandardButton enum value indicated by button.

Definition at line 78 of file BridgeDownloaderProgressDialog.cpp.

References retry(), setDownloadProgress(), setStatus(), and ui.

Referenced by BridgeDownloaderProgressDialog().

void BridgeDownloaderProgressDialog::retry ( ) [signal]

Emitted when the user clicks the "Retry" button after a previous bridge request has failed.

Referenced by buttonClicked().

void BridgeDownloaderProgressDialog::setDownloadProgress ( int  value,
int  maximum 
) [slot]

Updates the bridge download progress bar to value out of maximum steps. If value and maximum are both 0, then a "busy" progress bar is displayed.

Definition at line 50 of file BridgeDownloaderProgressDialog.cpp.

References ui.

Referenced by buttonClicked().

void BridgeDownloaderProgressDialog::setStatus ( const QString &  status) [slot]

Sets the status message text in the dialog to status.

Definition at line 44 of file BridgeDownloaderProgressDialog.cpp.

References ui.

Referenced by buttonClicked().

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

Overloaded method called when the progress dialog is first shown in order to initialize the progress bar, status text and dialog button box.

Definition at line 34 of file BridgeDownloaderProgressDialog.cpp.

References ui.


Member Data Documentation

Ui::BridgeDownloaderProgressDialog BridgeDownloaderProgressDialog::ui [private]

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