45#include "OpenFlipperThread.hh"
49OpenFlipperThread::OpenFlipperThread(
const QString& _jobId ) :
55OpenFlipperThread::~OpenFlipperThread() {
70 connect(
job_, SIGNAL(process(QString)),
this,SIGNAL(
function(QString) ),Qt::DirectConnection);
96 std::cerr <<
"Cancel not implemented" << std::endl;
100 std::cerr <<
"Thread : cancel received" << std::endl;
121OpenFlipperJob::~OpenFlipperJob()
Internal Job execution object.
QString jobId_
The job's id.
void process(const QString _jobId="")
connection to actual processing function
void startJobProcessing()
slot to start processing
QSemaphore startup_
Semaphore to control order of thread startup calls.
void startProcessing()
start processing
QString jobId()
get JobId get the Id of the current Job
OpenFlipperJob * job_
Internal job wrapper.
void slotCancel(const QString &_jobId)
Cancel this job.
virtual void cancel()
Cancel the job.
void function(const QString _jobId="")
job function
void run()
Main processing.
void slotJobFinished()
job has finished
QString jobId_
Id of the current job.
void startProcessingInternal()
start processing of a function
void finished(QString _jobId)
job done