Commit 78514532 authored by Matthias Möller's avatar Matthias Möller
Browse files

- add jobid getter

- update doc

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20245 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6c75f612
...@@ -54,6 +54,10 @@ OpenFlipperThread::OpenFlipperThread( QString _jobId ) : ...@@ -54,6 +54,10 @@ OpenFlipperThread::OpenFlipperThread( QString _jobId ) :
OpenFlipperThread::~OpenFlipperThread() { OpenFlipperThread::~OpenFlipperThread() {
} }
QString OpenFlipperThread::jobId() {
return jobId_;
}
void OpenFlipperThread::run() void OpenFlipperThread::run()
{ {
if ( job_ == 0 ) { if ( job_ == 0 ) {
......
...@@ -89,11 +89,11 @@ class DLLEXPORT OpenFlipperThread : public QThread ...@@ -89,11 +89,11 @@ class DLLEXPORT OpenFlipperThread : public QThread
/** \brief Main processing /** \brief Main processing
* *
* Either reimplement this function or connect the function() * Do not reimplement this function. Connect the function()
* signal. If this function is reimplemented, use signal state() * signal with your running function. Use signal state()
* in order to inform the core about the job's current state. * in order to inform the core about the job's current state.
*/ */
virtual void run(); void run();
/** \brief Cancel the job /** \brief Cancel the job
* *
...@@ -104,6 +104,11 @@ class DLLEXPORT OpenFlipperThread : public QThread ...@@ -104,6 +104,11 @@ class DLLEXPORT OpenFlipperThread : public QThread
*/ */
virtual void cancel(); virtual void cancel();
/** \brief get JobId
* get the Id of the current Job
*/
QString jobId();
public slots: public slots:
/** \brief Cancel this job /** \brief Cancel this job
* *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment