void MasterAdapter::removePending(Notifier& notifier) { /* * removing all jobs from the queue and returning an error. * error handling is don in the servicebroker thread */ Job* job = mQueue.pop(); while( job ) { job->status = EIO; notifier.jobFinished(*job); job = mQueue.pop(); } }
bool MasterAdapter::execute(Job& job, Notifier& notifier) { bool rc = mConnector->execute(job); notifier.jobFinished(job); return rc; }