47 #include "ui_processManagerWidget.h" 48 #include <QPushButton> 49 #include <QProgressBar> 57 JobCancelButton(QString _caption, QString _jobId, QWidget* _parent = 0) :
58 QPushButton(_caption, _parent),
62 void setJobId(
const QString& _jobId) { jobId_ = _jobId; };
65 QString jobId() {
return jobId_; }
77 void cancelJobRequested(QString _jobId);
88 void updateStatus(QString _id,
int _status);
90 void setJobName(QString _id, QString _desc);
92 void setJobDescription(QString _id, QString _desc);
94 void addJob(QString _id, QString _description =
"",
95 int _minSteps = 0,
int _maxSteps = 100);
97 void removeJob(QString _jobName);
99 size_t getNumJobs() {
return processMap_.size(); }
103 void cancelButtonPressed();
109 QTableWidgetItem* id;
110 QTableWidgetItem* description;
111 QProgressBar* progress;
115 QHash<QString, JobContainer> processMap_;