Vidalia  0.2.17
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 (qint64 value, qint64 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 24 of file BridgeDownloaderProgressDialog.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 21 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 64 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 56 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 77 of file BridgeDownloaderProgressDialog.cpp.

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

Referenced by BridgeDownloaderProgressDialog().

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

Referenced by buttonClicked().

void BridgeDownloaderProgressDialog::setDownloadProgress ( qint64  value,
qint64  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 49 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 43 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 33 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: