23 #ifndef __ccxx_ProgressTracker_hxx 24 #define __ccxx_ProgressTracker_hxx 74 : _object(object), _func(func)
82 { (_object->*_func)(percent, status); }
87 void (T::* _func)(int,
const String&);
92 #endif // __ccxx_ProgressTracker_hxx
An implementation of ProgressTracker that delegates to a method in an object.
Definition: ProgressTracker.h++:62
An interface for tracking the progress of a lengthy operation.
Definition: ProgressTracker.h++:38
void updateProgress(int percent, const String &status=String::null)
Notify the tracker of an update in the progress of a task.
Definition: ProgressTracker.h++:80
ProgressTrackerDelegate(T *object, void(T::*func)(int, const String &))
Construct a new ProgressTrackerDelegate for an object.
Definition: ProgressTracker.h++:73
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
virtual ~ProgressTracker()
Destructor.
Definition: ProgressTracker.h++:43
virtual void updateProgress(int percent, const String &status=String::null)=0
Notify the tracker of an update in the progress of a task.
static const String null
The null string.
Definition: String.h++:1128
Definition: AllocationMap.c++:25