|
virtual void | preStatus (long totalBytes, long completedBytes, const char *message) |
|
virtual void | update (unsigned long totalBytes, unsigned long completedBytes) |
|
Definition at line 134 of file installmgr.cpp.
virtual void MyStatusReporter::preStatus |
( |
long |
totalBytes, |
|
|
long |
completedBytes, |
|
|
const char * |
message |
|
) |
| |
|
inlineprivatevirtual |
Messages before stages of a batch download
Reimplemented from StatusReporter.
Definition at line 150 of file installmgr.cpp.
152 output.setFormatted(
"[ Total Bytes: %ld; Completed Bytes: %ld", totalBytes, completedBytes);
153 while (output.size() < 75) output +=
" ";
155 cout <<
"\n" << output.c_str() <<
"\n ";
156 int p = (int)(74.0 * (
double)completedBytes/totalBytes);
157 for (
int i = 0; i < p; ++i) { cout <<
"="; }
158 cout <<
"\n\n" << message <<
"\n";
void StatusReporter::statusUpdate |
( |
double |
dtTotal, |
|
|
double |
dlNow |
|
) |
| |
|
virtualinherited |
virtual void MyStatusReporter::update |
( |
unsigned long |
totalBytes, |
|
|
unsigned long |
completedBytes |
|
) |
| |
|
inlineprivatevirtual |
frequently called throughout a download, to report status override to receive status information
Reimplemented from StatusReporter.
Definition at line 136 of file installmgr.cpp.
137 int p = (totalBytes > 0) ? (
int)(74.0 * ((double)completedBytes / (
double)totalBytes)) : 0;
141 output.setFormatted(
"[ File Bytes: %ld", totalBytes);
142 while (output.size() < 75) output +=
" ";
144 cout << output.c_str() <<
"\n ";
int MyStatusReporter::last |
|
private |
The documentation for this class was generated from the following file: