ClientProgress::Description( const StrPtr *, int )
Sets up a description and defines the units by which command progress is measured.
|
Virtual? |
Yes |
|
|
Class |
||
|
Arguments |
|
description from the server |
|
|
the units in which progress is to be measured |
|
|
Returns |
|
Notes
The API calls this method on command startup, supplying your
implementation with a description and a client progress unit type. The
units in which client progress is measured are defined in
clientprog.h as follows:
| Client Progress Unit | Value | Meaning |
|---|---|---|
|
|
|
No units specified |
|
|
|
Value is a percentage |
|
|
|
Value is a count of files |
|
|
|
Value is in kilobytes |
|
|
|
Value is in megabytes |
See also
ClientUser::CreateProgress()ClientUser::ProgressIndicator()ClientProgress::Done()ClientProgress::Total()ClientProgress::Update()
Example
Create a subclass of ClientProgress and define an
implementation of Description(),
even if it is a trivial implementation:
void MyProgress::Description( const StrPtr *desc, int units )
{
printf( "Starting command:\n" );
}






