CAppJobNotification Notification send by CAppJobEventTranslator.
CEvent - generic event implementation TODO TODO - Attachments.
CConstIRef< IAppJobError > GetError() const
returns non-null pointer only if job Failed
static CAppJobDispatcher & GetInstance()
CRef< CObject > GetResult() const
returns non-null pointer only if Completed or Running and has temporary results available
CAppJobDispatcher::TJobID m_JobId
IJobCallback * m_Callback
virtual void OnJobResult(CObject *result, CJobAdapter &adapter)=0
bool DeleteJob(TJobID job_id)
when a Job is deleted the listener is not notified
TJobID StartJob(IAppJob &job, const string &engine_name, IEngineParams *params=NULL)
Starts a Job on the specified engine in "passive mode" - no notifications or progress reports will be...
#define ON_EVENT(type, id, handler)
#define END_EVENT_MAP()
Ends definition of Command Map.
#define BEGIN_EVENT_MAP(thisClass, baseClass)
Begins definition of Command Map for CEventHandler-derived class.
void x_OnJobNotification(CEvent *evt)
TJobState GetState() const
virtual void OnJobFailed(const string &errMsg, CJobAdapter &adapter)=0
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.