51 #include "OpenFlipperThread.hh" 55 OpenFlipperThread::OpenFlipperThread( QString _jobId ) :
61 OpenFlipperThread::~OpenFlipperThread() {
76 connect(job_, SIGNAL(process(QString)),
this,SIGNAL(
function(QString) ),Qt::DirectConnection);
79 connect(job_, SIGNAL(finished()),
this,SLOT(slotJobFinished() ) );
82 connect(
this,SIGNAL(startProcessingInternal()),job_,SLOT(startJobProcessing()),Qt::QueuedConnection);
102 std::cerr <<
"Cancel not implemented" << std::endl;
106 std::cerr <<
"Thread : cancel received" << std::endl;
107 if ( _jobId == jobId_ )
112 emit finished( jobId_ );
124 emit startProcessingInternal();
127 OpenFlipperJob::~OpenFlipperJob()
135 emit process(jobId_);
void slotJobFinished()
job has finished
void startProcessing()
start processing
void run()
Main processing.
void startJobProcessing()
slot to start processing
virtual void cancel()
Cancel the job.
QString jobId()
get JobId get the Id of the current Job
void slotCancel(QString _jobId)
Cancel this job.
Internal Job execution object.