64 #include <OpenFlipper/widgets/processManagerWidget/BlockingWidget.hh>
70 void Core::slotStartJob( QString _jobId, QString _description ,
int _min ,
int _max,
bool _blocking) {
71 std::cerr <<
"StartJob: " << _jobId.toStdString() <<
" " << _description.toStdString() <<
" " << _min <<
" " << _max <<
" " << _blocking <<std::endl;
76 info.description = _description;
80 info.blocking = _blocking;
81 info.blockingWidget = 0;
85 if (OpenFlipper::Options::gui()) {
94 connect(widget, SIGNAL(cancelRequested(QString)),
97 info.blockingWidget = widget;
99 int x = (
coreWidget_->width() / 2) - (widget->width() / 2);
100 int y = (
coreWidget_->height() / 2) - (widget->height() / 2);
102 widget->setGeometry( x, y, widget->width(), widget->height());
139 emit
log(
LOGERR,tr(
"Unable to find Job %1.").arg(_jobId));
150 if (
getJob(_jobId,
id) ) {
153 if (!OpenFlipper::Options::gui())
162 w->updateStatus(_value);
174 if (
getJob(_jobId,
id) ) {
177 if (!OpenFlipper::Options::gui())
197 if (
getJob(_jobId,
id) ) {
200 if (!OpenFlipper::Options::gui())
209 w->setJobDescription(_text);
221 if (
getJob(_jobId,
id) ) {
223 if (OpenFlipper::Options::gui()) {
247 if (
getJob(_jobId,
id) ) {
249 if (OpenFlipper::Options::gui()) {
276 std::cerr <<
"Cancel requested!" << std::endl;
void jobCanceled(QString _jobId)
A job has been started by a plugin.
bool getJob(QString _jobId, int &_index)
Find a job in the jobslist.
void slotCancelJob(QString _jobId)
A job state has been canceled by a plugin.
void slotFinishJob(QString _jobId)
A job state has been finished by a plugin.
void slotStartJob(QString _jobId, QString _description, int _min, int _max, bool _blocking)
A job has been started by a plugin.
void log(Logtype _type, QString _message)
Logg with OUT,WARN or ERR as type.
ProcessManagerWidget * processManager_
A job has been started by a plugin.
void slotSetJobDescription(QString _jobId, QString _text)
A job's widget's status text has been updated by a plugin.
CoreWidget * coreWidget_
The main applications widget ( only created in gui mode )
QList< JobInfo > currentJobs
A job has been started by a plugin.
void slotSetJobState(QString _jobId, int _value)
A job state has been updated by a plugin.
void slotSetJobName(QString _jobId, QString _name)
A job's widget caption has been updated by a plugin.
void slotJobCancelRequested(QString _jobId)
Called by dialogs if cancel button is pressed.