UpdateProgressDialog Class Reference

#include <UpdateProgressDialog.h>

List of all members.

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


Detailed Description

Definition at line 19 of file UpdateProgressDialog.h.


Member Enumeration Documentation

Enumerator:
CheckingForUpdates 
DownloadingUpdates 
InstallingUpdates 
UpdatesInstalled 

Definition at line 24 of file UpdateProgressDialog.h.


Constructor & Destructor Documentation

UpdateProgressDialog::UpdateProgressDialog ( QWidget *  parent = 0  ) 

Default constructor.

Definition at line 14 of file UpdateProgressDialog.cpp.

References onCancel(), onHide(), and ui.


Member Function Documentation

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().


Member Data Documentation

Ui::UpdateProgressDialog UpdateProgressDialog::ui [private]

Qt Designer generated object.

Definition at line 67 of file UpdateProgressDialog.h.

Referenced by setDownloadProgress(), setStatus(), and UpdateProgressDialog().


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

Generated on Mon Aug 30 19:10:03 2010 for Vidalia by  doxygen 1.5.9