xbmc
Classes | Public Member Functions | Static Public Member Functions | List of all members
PingResponseWaiter Class Reference
Inheritance diagram for PingResponseWaiter:
Inheritance graph
[legend]
Collaboration diagram for PingResponseWaiter:
Collaboration graph
[legend]

Public Member Functions

 PingResponseWaiter (bool async, const CWakeOnAccess::WakeUpEntry &server)
 
bool SuccessWaiting () const override
 
void OnJobComplete (unsigned int jobID, bool success, CJob *job) override
 The callback used when a job completes. More...
 

Static Public Member Functions

static bool Ping (const CWakeOnAccess::WakeUpEntry &server, unsigned timeOutMs=2000)
 

Member Function Documentation

◆ OnJobComplete()

void PingResponseWaiter::OnJobComplete ( unsigned int  jobID,
bool  success,
CJob job 
)
inlineoverridevirtual

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
jobIDthe unique id of the job (as retrieved from CJobManager::AddJob)
successthe result from the DoWork call
jobthe job that has been processed. The job will be destroyed after this function returns
See also
CJobManager and CJob

Implements IJobCallback.


The documentation for this class was generated from the following file: