Vidalia
0.2.15
|
#include <UpdateProgressDialog.h>
Public Types | |
enum | Status { CheckingForUpdates, DownloadingUpdates, InstallingUpdates, UpdatesInstalled } |
Public Slots | |
void | setDownloadProgress (const QString &url, int bytesReceived, int bytesTotal) |
Signals | |
void | cancelUpdate () |
Public Member Functions | |
UpdateProgressDialog (QWidget *parent=0) | |
void | setStatus (UpdateProgressDialog::Status status) |
Private Slots | |
void | onHide () |
void | onCancel () |
Private Attributes | |
Ui::UpdateProgressDialog | ui |
Definition at line 19 of file UpdateProgressDialog.h.
Definition at line 24 of file UpdateProgressDialog.h.
UpdateProgressDialog::UpdateProgressDialog | ( | QWidget * | parent = 0 | ) |
Default constructor.
Definition at line 14 of file UpdateProgressDialog.cpp.
References onCancel(), onHide(), and ui.
void UpdateProgressDialog::cancelUpdate | ( | ) | [signal] |
Emitted when the user clicks the "Cancel" button indicating they want to terminate the current check for available updates.
Referenced by onCancel().
void UpdateProgressDialog::onCancel | ( | ) | [private, slot] |
Called when the user clicks the "Hide" button. Hides the dialog box.
Definition at line 87 of file UpdateProgressDialog.cpp.
References cancelUpdate().
Referenced by UpdateProgressDialog().
void UpdateProgressDialog::onHide | ( | ) | [private, slot] |
Called when the user clicks the "Cancel" button. Emits the cancelUpdate() signal.
Definition at line 81 of file UpdateProgressDialog.cpp.
Referenced by UpdateProgressDialog().
void UpdateProgressDialog::setDownloadProgress | ( | const QString & | url, |
int | bytesReceived, | ||
int | bytesTotal | ||
) | [slot] |
Called when more bytes of url have been received. bytesReceived indicates how many bytes have been downloaded so far and bytesTotal indicates the total size of the update to be downloaded.
Definition at line 70 of file UpdateProgressDialog.cpp.
References DownloadingUpdates, setStatus(), and ui.
void UpdateProgressDialog::setStatus | ( | UpdateProgressDialog::Status | status | ) |
Updates the dialog's display to reflect the current action indicated by status.
Definition at line 26 of file UpdateProgressDialog.cpp.
References CheckingForUpdates, DownloadingUpdates, InstallingUpdates, ui, and UpdatesInstalled.
Referenced by setDownloadProgress().
Ui::UpdateProgressDialog UpdateProgressDialog::ui [private] |
Qt Designer generated object.
Definition at line 67 of file UpdateProgressDialog.h.
Referenced by setDownloadProgress(), setStatus(), and UpdateProgressDialog().