#include <BridgeDownloaderProgressDialog.h>
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 |
Definition at line 25 of file BridgeDownloaderProgressDialog.h.
BridgeDownloaderProgressDialog::BridgeDownloaderProgressDialog | ( | QWidget * | parent = 0 |
) |
Default constructor.
Definition at line 22 of file BridgeDownloaderProgressDialog.cpp.
References buttonClicked(), and ui.
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.
Ui::BridgeDownloaderProgressDialog BridgeDownloaderProgressDialog::ui [private] |
< Qt Designer generated object.
Definition at line 80 of file BridgeDownloaderProgressDialog.h.
Referenced by BridgeDownloaderProgressDialog(), bridgeRequestFailed(), buttonClicked(), setDownloadProgress(), setStatus(), and setVisible().