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()
virtual void cancel()
Cancel the job.
void run()
Main processing.
void slotJobFinished()
job has finished
Internal Job execution object.
QString jobId()
get JobId get the Id of the current Job
void startProcessingInternal()
start processing of a function
void finished(QString _jobId)
job done
QSemaphore startup_
Semaphore to control order of thread startup calls.
void process(const QString _jobId="")
connection to actual processing function
void slotCancel(QString _jobId)
Cancel this job.
QString jobId_
The job's id.
QString jobId_
Id of the current job.
void startProcessing()
start processing
OpenFlipperJob * job_
Internal job wrapper.
void startJobProcessing()
slot to start processing