58 #ifndef PROCESSMANAGERWIDGET_HH_ 59 #define PROCESSMANAGERWIDGET_HH_ 62 #include "ui_processManagerWidget.hh" 64 #if QT_VERSION >= 0x050000 76 JobCancelButton(QString _caption, QString _jobId, QWidget* _parent = 0) :
77 QPushButton(_caption, _parent),
81 void setJobId(
const QString& _jobId) { jobId_ = _jobId; };
84 QString jobId() {
return jobId_; }
96 void cancelJobRequested(QString _jobId);
107 void updateStatus(QString _id,
int _status);
109 void setJobName(QString _id, QString _desc);
111 void setJobDescription(QString _id, QString _desc);
113 void addJob(QString _id, QString _description =
"",
114 int _minSteps = 0,
int _maxSteps = 100);
116 void removeJob(QString _jobName);
118 size_t getNumJobs() {
return processMap_.size(); }
122 void cancelButtonPressed();
128 QTableWidgetItem* id;
129 QTableWidgetItem* description;
130 QProgressBar* progress;
134 QHash<QString, JobContainer> processMap_;