A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/app__task_8hpp_source.html below:

NCBI C++ ToolKit: include/gui/framework/app_task.hpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef GUI_FRAMEWORK___APP_TASK__HPP 2 #define GUI_FRAMEWORK___APP_TASK__HPP 48 class

IEventLogAction;

void(*)(CSeq_entry_Handle seh, IWorkbench *wb, const CSerialObject &obj) handler

virtual void CancelBackgrounded()=0

make a request to cancel backgrounded task (not called for foreground tasks)

virtual int GetStatusDisplayDelay()=0

returns delay in seconds used for certain fast (and not very important tasks) to only show its status...

virtual ETaskState Run()=0

execute the task, this function is called on the main UI thread if a task needs to execute in backgro...

virtual string GetStatusText() const =0

returns human-readable text describing the current task state

virtual void SetListener(CEventHandler *handler)=0

set a Listener; this allows a taks running in background to notify the Listener (usually Task Manager...

virtual ETaskState GetState()=0

returns the current task state

ETaskState

List of task states defining the task management FSM.

virtual void OnCancel()=0

this will be called on pending tasks that will be removed from the queue and won't get a chance to ru...

virtual string GetDescr() const =0

returns a human-readable description of the Task (optional)

virtual bool IsVisible()=0

returns true if the task should be visible in UI visible task shall represent operations understood b...

virtual IEventLogAction * CreateEventLogAction()=0

returns an action for activating task results (optional, can return NULL)

@ eCanceled

canceled by Task Manager

@ eBackgrounded

task is executing in background

@ eFailed

failed during execution

@ eCompleted

successfully finished

@ eInitial

has not been executed yet

@ eRunning

task is executing on the main UI thread

#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