Vidalia  0.3.1
Public Types | Public Slots | Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
UpdateProgressDialog Class Reference

#include <UpdateProgressDialog.h>

Inheritance diagram for UpdateProgressDialog:

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

§ Status

Enumerator
CheckingForUpdates 
DownloadingUpdates 
InstallingUpdates 
UpdatesInstalled 

Definition at line 24 of file UpdateProgressDialog.h.

Constructor & Destructor Documentation

§ UpdateProgressDialog()

UpdateProgressDialog::UpdateProgressDialog ( QWidget *  parent = 0)

Default constructor.

Definition at line 14 of file UpdateProgressDialog.cpp.

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

Member Function Documentation

§ cancelUpdate

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

§ onCancel

void UpdateProgressDialog::onCancel ( )
privateslot

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

§ onHide

void UpdateProgressDialog::onHide ( )
privateslot

Called when the user clicks the "Cancel" button. Emits the cancelUpdate() signal.

Definition at line 81 of file UpdateProgressDialog.cpp.

Referenced by UpdateProgressDialog().

§ setDownloadProgress

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.

§ setStatus()

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

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: