Go to the SVN repository for this file.
1 #ifndef OBJECTS_ALNMGR___TASK_PROGRESS__HPP 2 #define OBJECTS_ALNMGR___TASK_PROGRESS__HPP 63m_Callback = callback;
70m_Callback->SetTaskName(name);
75m_Callback->SetTaskCompleted(completed);
80m_Callback->SetTaskTotal(total);
87 returnm_Callback->InterruptTask();
Tasks that report progress derive from this class.
void x_SetTaskCompleted(int completed)
CTaskProgressReporter()
Constructor.
void x_SetTaskName(const string &name)
Methods for reporting task progress.
ITaskProgressCallback * x_GetTaskProgressCallback() const
Callback accessor.
void x_SetTaskTotal(int total)
bool x_InterruptTask()
Check if the task should be interrupted.
void SetTaskProgressCallback(ITaskProgressCallback *callback)
Hook a callback to a task.
ITaskProgressCallback * m_Callback
Task clients implement this callback interface.
virtual void SetTaskCompleted(int completed)=0
virtual ~ITaskProgressCallback()
virtual void SetTaskName(const string &name)=0
virtual void SetTaskTotal(int total)=0
virtual bool InterruptTask()=0
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_XALNMGR_EXPORT
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4