![]() | InDesign SDK 20.5 |
#include <TaskInfo.h>
Classes | |
| struct | ProgressData |
Public Types | |
| typedef std::pair< uint32, uint32 > | ProgressRange |
Public Member Functions | |
| bool | GetCurrentData (ProgressData &data) const |
| PMString | GetTaskStatusText () const |
| ProgressRange | GetRange () const |
| uint32 | GetCurrentPosition () const |
| PMReal | GetTaskCompletionPercentage () const |
Friends | |
| class | IDTaskAccessor |
This class is used to track the progress of background tasks. Each top level task registers with the TaskMonitor which will hold a pointer to that task info. A client can obtain a TaskInfo from the TaskMonitor, store it and poll it for status and progress information. Not all tasks have progress information but all should have a name and should support cancellation.
| typedef std::pair<uint32, uint32> TaskProgressInfo::ProgressRange |
A simple range for position based progress tracking
| bool TaskProgressInfo::GetCurrentData | ( | ProgressData & | data | ) | const |
Retrieves a snapshot of all progress data.
| [out] | data | Current data. Only filled when the return value is true. |
| inline |
Get the current position within the active range
| inline |
Get the current range for progress information
ProgressRange.
| inline |
Get the current completion percentage.