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

dlgBatchCreation::ChecksumProgress Class Reference

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

Inheritance diagram for dlgBatchCreation::ChecksumProgress:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ChecksumProgress (dlgBatchCreation *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.

dlgBatchCreationprogress
 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 198 of file dlgBatchCreate.cpp.


Constructor & Destructor Documentation

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

Default constructor. Don't call it.

Definition at line 208 of file dlgBatchCreate.cpp.

dlgBatchCreation::ChecksumProgress::ChecksumProgress dlgBatchCreation progressDlg,
const BytesDisplayer total
 

Constructor.

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

Definition at line 242 of file dlgBatchCreate.cpp.

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


Member Function Documentation

void dlgBatchCreation::ChecksumProgress::finished  ) 
 

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

Definition at line 290 of file dlgBatchCreate.cpp.

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

Referenced by dlgBatchCreation::batchCreation().

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

Initializes the instance.

Definition at line 229 of file dlgBatchCreate.cpp.

References progress.

Referenced by ChecksumProgress().

void dlgBatchCreation::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 265 of file dlgBatchCreate.cpp.

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

Referenced by update().


Member Data Documentation

wxDateTime dlgBatchCreation::ChecksumProgress::ct [protected]
 

Current time.

Definition at line 204 of file dlgBatchCreate.cpp.

Referenced by update().

BytesDisplayer dlgBatchCreation::ChecksumProgress::current [protected]
 

numbers of preceeded bytes.

Definition at line 201 of file dlgBatchCreate.cpp.

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

wxDateTime dlgBatchCreation::ChecksumProgress::lt [protected]
 

Last saved time.

Definition at line 203 of file dlgBatchCreate.cpp.

Referenced by ChecksumProgress(), and update().

dlgBatchCreation* dlgBatchCreation::ChecksumProgress::progress [protected]
 

Progress dialog (don't delete it!).

Definition at line 205 of file dlgBatchCreate.cpp.

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

wxTimeSpan dlgBatchCreation::ChecksumProgress::timeSpan [protected]
 

Time between to updates of the progress dialog.

Definition at line 202 of file dlgBatchCreate.cpp.

Referenced by ChecksumProgress(), and update().


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