Go to the SVN repository for this file.
1 #ifndef GUI_FRAMEWORK___APP_JOB_TASK__HPP 2 #define GUI_FRAMEWORK___APP_JOB_TASK__HPP 74 intprog_rep_period = 5,
75 const string& engine_name =
"ThreadPool",
76 intdisplay_delay = 0);
81 intprog_rep_period = 5,
82 const string& engine_name =
"ThreadPool",
83 intdisplay_delay = 0);
87 voidSetReportErrors(
boolreport);
99 voidOnAppJobNotification(
CEvent* event);
100 voidOnAppJobProgress(
CEvent* event);
111 virtual voidx_ReportError();
CAppJobTask CAppJobTask is an adapter that allows for running IAppJobs as Tasks in App Task Service.
CAppTask - default implementation of IAppTask, use it as a base class for custom tasks.
virtual ETaskState Run()
execute the task, this function is called on the main UI thread if a task needs to execute in backgro...
virtual void CancelBackgrounded()
make a request to cancel backgrounded task (not called for foreground tasks)
virtual string GetStatusText() const
returns human-readable text describing the current task state
CEvent - generic event implementation TODO TODO - Attachments.
CAppJobDispatcher::TJobID TJobID
TOnAppJobProgressCallback m_OnAppJobProgress
std::function< void(const IAppJobProgress &)> TOnAppJobProgressCallback
void OnAppJobDataReady(CEvent *event)
ETaskState
List of task states defining the task management FSM.
int m_ProgressReportPeriod
void x_SetOnAppJobProgress(TOnAppJobProgressCallback callback)
IAppJob::EJobState m_JobState
EJobState
Job states (describe FSM)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIFRAMEWORK_EXPORT
Defines to provide correct exporting from DLLs in Windows.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
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