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