Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

dlgMultiCheck::ChecksumProgress Class Reference

Displays the progression of the process of computing of a checksum. More...

Inheritance diagram for dlgMultiCheck::ChecksumProgress:

Inheritance graph
[legend]
Collaboration diagram for dlgMultiCheck::ChecksumProgress:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ChecksumProgress (dlgMultiCheck *progressDlg, const BytesDisplayer &total)
 Constructor.

void finished ()
 Indicates that the process is finished (hides the progress dialog).

virtual void update (size_t read, bool &canceled)
 Updates the progression of the computing of a checksum.


Protected Member Functions

 ChecksumProgress ()
 Default constructor. Don't call it.

void init ()
 Initializes the instance.


Protected Attributes

wxDateTime ct
 Current time.

BytesDisplayer current
 numbers of preceeded bytes.

wxDateTime lt
 Last saved time.

dlgMultiCheckprogress
 Progress dialog (don't delete it!).

wxTimeSpan timeSpan
 Time between to updates of the progress dialog.


Detailed Description

Displays the progression of the process of computing of a checksum.

Definition at line 145 of file dlgMultiCheck.cpp.


Constructor & Destructor Documentation

dlgMultiCheck::ChecksumProgress::ChecksumProgress  )  [inline, protected]
 

Default constructor. Don't call it.

Definition at line 155 of file dlgMultiCheck.cpp.

References init().

dlgMultiCheck::ChecksumProgress::ChecksumProgress dlgMultiCheck progressDlg,
const BytesDisplayer total
 

Constructor.

Parameters:
progressDlg Progress dialog to update.
total Total of bytes to process.

Definition at line 189 of file dlgMultiCheck.cpp.

References current, init(), lt, progress, dlgMultiCheck::setReadBytes(), dlgMultiCheck::setTotalBytes(), timeSpan, and UPDATE_PROGRESS_DLG.


Member Function Documentation

void dlgMultiCheck::ChecksumProgress::finished  ) 
 

Indicates that the process is finished (hides the progress dialog).

Definition at line 237 of file dlgMultiCheck.cpp.

References current, progress, and dlgMultiCheck::setReadBytes().

Referenced by dlgMultiCheck::checkFile().

void dlgMultiCheck::ChecksumProgress::init  )  [protected]
 

Initializes the instance.

Definition at line 176 of file dlgMultiCheck.cpp.

References progress.

Referenced by ChecksumProgress().

void dlgMultiCheck::ChecksumProgress::update size_t  read,
bool &  canceled
[virtual]
 

Updates the progression of the computing of a checksum.

Parameters:
read Number of bytes read.
canceled Set it to true if the user want to cancel the calculation. The caller should call it with its value set to false.

Implements ChecksumProgress.

Definition at line 212 of file dlgMultiCheck.cpp.

References ct, current, dlgResultsProgress::getState(), lt, progress, dlgMultiCheck::setReadBytes(), timeSpan, and update().

Referenced by update().


Member Data Documentation

wxDateTime dlgMultiCheck::ChecksumProgress::ct [protected]
 

Current time.

Definition at line 151 of file dlgMultiCheck.cpp.

Referenced by update().

BytesDisplayer dlgMultiCheck::ChecksumProgress::current [protected]
 

numbers of preceeded bytes.

Definition at line 148 of file dlgMultiCheck.cpp.

Referenced by ChecksumProgress(), finished(), and update().

wxDateTime dlgMultiCheck::ChecksumProgress::lt [protected]
 

Last saved time.

Definition at line 150 of file dlgMultiCheck.cpp.

Referenced by ChecksumProgress(), and update().

dlgMultiCheck* dlgMultiCheck::ChecksumProgress::progress [protected]
 

Progress dialog (don't delete it!).

Definition at line 152 of file dlgMultiCheck.cpp.

Referenced by ChecksumProgress(), finished(), init(), and update().

wxTimeSpan dlgMultiCheck::ChecksumProgress::timeSpan [protected]
 

Time between to updates of the progress dialog.

Definition at line 149 of file dlgMultiCheck.cpp.

Referenced by ChecksumProgress(), and update().


The documentation for this class was generated from the following file:
Generated on Sun May 30 13:38:05 2004 for wxChecksums by doxygen 1.3.7