26 #ifndef __TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERDIALOG_H 27 #define __TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERDIALOG_H 31 #include "../Config.h" 32 #include "../../../common/progress/TaskProgress.h" 35 #include <QProgressDialog> 98 void removeTask(
int taskId);
105 void cancelTask(
int taskId);
112 void setTotalValues(
int taskId);
119 void setTitle(QString title);
126 void updateValue(
int taskId);
133 void updateMessage(
int taskId);
137 virtual void onSetProgressMessage(
const std::string& message);
139 virtual void onSetProgressRange(
int min,
int max);
141 virtual void onSetProgressValue(
int value);
143 virtual void onResetProgress();
145 virtual void cancel();
153 std::map<int, te::common::TaskProgress*>
m_tasks;
164 #endif //__TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERDIALOG_H
This class can be used to inform the progress of a task.
A class that defines the interface of an abstract qt progress viewer.