|
| CInfoLoader (unsigned int timeToRefresh=5 *60 *1000) |
|
std::string | GetInfo (int info) |
|
void | Refresh () |
|
void | OnJobComplete (unsigned int jobID, bool success, CJob *job) override |
| The callback used when a job completes. More...
|
|
virtual | ~IJobCallback ()=default |
| Destructor for job call back objects. More...
|
|
virtual void | OnJobAbort (unsigned int jobID, CJob *job) |
| An optional callback function used when a job will be aborted. More...
|
|
virtual void | OnJobProgress (unsigned int jobID, unsigned int progress, unsigned int total, const CJob *job) |
| An optional callback function that a job may call while processing. More...
|
|
|
virtual CJob * | GetJob () const =0 |
|
virtual std::string | TranslateInfo (int info) const |
|
virtual std::string | BusyInfo (int info) const |
|
◆ OnJobComplete()
void CInfoLoader::OnJobComplete |
( |
unsigned int |
jobID, |
|
|
bool |
success, |
|
|
CJob * |
job |
|
) |
| |
|
overridevirtual |
The callback used when a job completes.
OnJobComplete is called at the completion of the job's DoWork() function, and is used to return information to the caller on the result of the job. On returning form this function the CJobManager will destroy this job.
- Parameters
-
jobID | the unique id of the job (as retrieved from CJobManager::AddJob) |
success | the result from the DoWork call |
job | the job that has been processed. The job will be destroyed after this function returns |
- See also
- CJobManager and CJob
Implements IJobCallback.
Reimplemented in CSysInfo, and CWeatherManager.
The documentation for this class was generated from the following files: