45 :
CEvent(eEvent_Message, eStateChanged),
53 :
CEvent(eEvent_Message, eStateChanged),
62 :
CEvent(eEvent_Message, eStateChanged),
71 :
CEvent(eEvent_Message, eProgress),
84 : m_TargetEventHandler(target),
145 ERR_POST(
"Job failed -- NULL error job_id= " << job_rec->
m_ID);
177 pr = job_rec->
m_Job->GetProgress();
184 LOG_POST(
Error <<
"CAppJobEventTranslator::OnJobProgress() - "
185 <<
" progress object is missing!");
CAppJobNotification Notification send by CAppJobEventTranslator.
CEvent - generic event implementation TODO TODO - Attachments.
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
bool x_IsCanceled(int job_id) const
CEventHandler & m_TargetEventHandler
void SetDispatcher(CAppJobDispatcher &disp)
CAppJobNotification(TJobID job_id, TJobState state)
CAppJobNotification.
void OnJobStateChanged(CAppJobDispatcher::SJobRecord *job_rec, TJobState new_state)
CAppJobEventTranslator(CEventHandler &target)
CAppJobEventTranslator.
CWeakIRef< CEventHandler > m_TargetWeakPtr
void Post(CRef< CEvent > evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
Handles an event asynchronously (process and/or dispatch).
EJobState
Job states (describe FSM)
void OnJobProgress(CAppJobDispatcher::SJobRecord *job_rec)
bool ActiveProgress() const
CConstIRef< IAppJobProgress > m_Progress
CAppJobDispatcher::TJobID TJobID
virtual void x_NotifyObservers(CRef< CEvent > &evt)
CAppJobDispatcher * m_Dispatcher
bool NotNull(void) const THROWS_NONE
Check if pointer is not null – same effect as NotEmpty().
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
TRefType Lock(void) const
Lock the object and return reference to it.
void Reset(void)
Reset the containing pointer to null.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
SJobRecord describes a Job registered in Dispatcher.