An implementation of ProgressTracker that delegates to a method in an object. More...
#include <ProgressTracker.h++>
Public Member Functions | |
| ProgressTrackerDelegate (T *object, void(T::*func)(int, const String &)) | |
| Construct a new ProgressTrackerDelegate for an object. | |
Protected Member Functions | |
| void | updateProgress (int percent, const String &status=String::null) |
| Notify the tracker of an update in the progress of a task. | |
An implementation of ProgressTracker that delegates to a method in an object.
| ProgressTrackerDelegate | ( | T * | object, | |
| void(T::*)(int, const String &) | func | |||
| ) | [inline] |
Construct a new ProgressTrackerDelegate for an object.
| object | The object. | |
| func | A member function (method) in the object which will serve as the progress tracker. |
| void updateProgress | ( | int | percent, | |
| const String & | status = String::null | |||
| ) | [inline, protected, virtual] |
Notify the tracker of an update in the progress of a task.
| percent | The percentage of the task that has been completed. A negative value indicates indeterminate progress. | |
| status | An optional status message. |
Implements ProgressTracker.
1.6.3