SetNormDone(
float done);
71 voidSetText(
const string&
text);
76 virtual string GetText()
const override;
103 virtual string GetText()
const override;
105 virtual boolIsUserLevel()
const override;
123 virtual string GetText()
const;
167 CAppJob(
const string& descr =
"AppJob");
177 virtual string GetDescr()
const override;
182 virtual voidx_SetStatusText(
const string&
text);
183 virtual voidx_ResetState();
201:
CAppJob(descr), m_ExecuteUnit(&executeUnit) {}
CAppJobError Default implementation for IAppJobError - encapsulates a text error message.
CAppJobProgress Default implementation for IAppJobProgress - the class encapsulates a text message an...
CAppJobTextResult Default implementation for result object - encapsulates a text error message.
CAppJob - default implementation of IAppJob that could be used as a base class.
Base class to build jobs with cancel functionality.
Interface for testing cancellation request in a long lasting operation.
virtual CConstIRef< IAppJobProgress > GetProgress()=0
return progress object, the function shall be synchronized internally.
void SetDataLocker(ILocker *locker)
ICanceled * x_GetICanceled()
CRef< CAppJobError > m_Error
virtual EJobState Run() override
Function that does all the useful work, called by the Engine.
CGuiRWLock m_Lock
MT sync.lock.
string m_Descr
mutex to sync our internals
virtual string GetText() const =0
returns a text string describing current state
virtual CConstIRef< IAppJobError > GetError()=0
Returns IAppJobError object describing internal error that caused the Job to fail.
virtual bool IsCanceled() const override
virtual CRef< CObject > GetResult()=0
Returns the Job Result.
CAppJobExecuteUnit(IExecuteUnit &executeUnit, const string &descr)
EJobState
Job states (describe FSM)
virtual string GetDescr() const =0
Returns a human readable description of the Job (optional)
unique_ptr< ILocker > m_DataLocker
string m_Status
Current status of the Job.
CRef< CCanceled > m_Canceled
CIRef< IExecuteUnit > m_ExecuteUnit
virtual void RequestCancel() override
RequestCancel() is called to notify the Job that it shall exit Run() function ASAP.
CLockerGuard x_GetGuard()
virtual float GetNormDone() const =0
return a number indicating the progress(0.0 - just started, 1.0 - done)
CObject & operator=(const CObject &src) THROWS_NONE
Assignment operator.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIUTILS_EXPORT
#define NCBI_GUIOBJUTILS_EXPORT
GUI Core entry point to compile time overloaded sync.primitives (like Locks, Mutex,...
static void text(MDB_val *v)
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