Vidalia
0.3.1
|
#include <BridgeDownloaderProgressDialog.h>
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 |
Definition at line 24 of file BridgeDownloaderProgressDialog.h.
BridgeDownloaderProgressDialog::BridgeDownloaderProgressDialog | ( | QWidget * | parent = 0 | ) |
Default constructor.
Definition at line 21 of file BridgeDownloaderProgressDialog.cpp.
References buttonClicked(), connect(), and ui.
|
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 tc::error(), and ui.
|
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.
|
privateslot |
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().
|
signal |
Emitted when the user clicks the "Retry" button after a previous bridge request has failed.
Referenced by buttonClicked().
|
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().
|
slot |
Sets the status message text in the dialog to status.
Definition at line 43 of file BridgeDownloaderProgressDialog.cpp.
References ui.
Referenced by buttonClicked().
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.
|
private |
< Qt Designer generated object.
Definition at line 79 of file BridgeDownloaderProgressDialog.h.
Referenced by BridgeDownloaderProgressDialog(), bridgeRequestFailed(), buttonClicked(), setDownloadProgress(), setStatus(), and setVisible().