26 #ifndef __TERRALIB_COMMON_PROGRESS_INTERNAL_TASKPROGRESS_H    27 #define __TERRALIB_COMMON_PROGRESS_INTERNAL_TASKPROGRESS_H    30 #include "../Config.h"    69         TaskProgress(
const std::string& message = 
"", 
unsigned int type = UNDEFINED, 
int totalSteps = 0);
    90         unsigned int getType() 
const;
    97         int getTotalSteps() 
const;
   104         void setTotalSteps(
int value);
   111         int getProportionalValue() 
const;
   118         int getCurrentStep() 
const;
   125         void setCurrentStep(
int value);
   135         const std::string& getMessage() 
const;
   142         void setMessage(
const std::string& message);
   149         bool isActive() 
const;
   159         void useMultiThread(
bool flag);
   166         void useTimer(
bool flag);
   173         bool hasToUpdate() 
const;
   193 #endif //__TERRALIB_COMMON_PROGRESS_INTERNAL_TASKPROGRESS_H int m_totalSteps
Task total steps. 
 
This class can be used to inform the progress of a task. 
 
bool m_isActive
Flag used to indicate the task status. 
 
bool m_isMultiThread
Flag used to indicate the thread mode. 
 
std::string m_message
Task message. 
 
bool m_hasToUpdate
Flag used to indicate the update status. 
 
#define TECOMMONEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
int m_currentStep
Task current step. 
 
unsigned int m_type
Task type. 
 
The ProgressTimer is a utility class that can be used to calculate the estimated time to finish a tas...
 
ProgressTimer * m_timer
Progress timer instance. 
 
bool m_useTimer
Flag used to indicate the timer status. 
 
int m_currentPropStep
Current proportinal step. 
 
int m_id
Task identification.