58 #include <OpenFlipper/widgets/processManagerWidget/BlockingWidget.hh> 64 void Core::slotStartJob( QString _jobId, QString _description ,
int _min ,
int _max,
bool _blocking) {
65 std::cerr <<
"StartJob: " << _jobId.toStdString() <<
" " << _description.toStdString() <<
" " << _min <<
" " << _max <<
" " << _blocking <<std::endl;
70 info.description = _description;
74 info.blocking = _blocking;
75 info.blockingWidget = 0;
79 if (OpenFlipper::Options::gui()) {
88 connect(widget, SIGNAL(cancelRequested(QString)),
91 info.blockingWidget = widget;
93 int x = (
coreWidget_->width() / 2) - (widget->width() / 2);
94 int y = (
coreWidget_->height() / 2) - (widget->height() / 2);
96 widget->setGeometry( x, y, widget->width(), widget->height());
133 emit
log(
LOGERR,tr(
"Unable to find Job %1.").arg(_jobId));
144 if (
getJob(_jobId,
id) ) {
147 if (!OpenFlipper::Options::gui())
156 w->updateStatus(_value);
168 if (
getJob(_jobId,
id) ) {
171 if (!OpenFlipper::Options::gui())
191 if (
getJob(_jobId,
id) ) {
194 if (!OpenFlipper::Options::gui())
203 w->setJobDescription(_text);
215 if (
getJob(_jobId,
id) ) {
217 if (OpenFlipper::Options::gui()) {
241 if (
getJob(_jobId,
id) ) {
243 if (OpenFlipper::Options::gui()) {
270 std::cerr <<
"Cancel requested!" << std::endl;
ProcessManagerWidget * processManager_
A job has been started by a plugin.
QList< JobInfo > currentJobs
A job has been started by a plugin.
void jobCanceled(QString _jobId)
A job has been started by a plugin.
void slotJobCancelRequested(QString _jobId)
Called by dialogs if cancel button is pressed.
void slotCancelJob(QString _jobId)
A job state has been canceled by a plugin.
void slotSetJobDescription(QString _jobId, QString _text)
A job's widget's status text has been updated by a plugin.
void log(Logtype _type, QString _message)
Logg with OUT,WARN or ERR as type.
bool getJob(QString _jobId, int &_index)
Find a job in the jobslist.
CoreWidget * coreWidget_
The main applications widget ( only created in gui mode )
void slotSetJobState(QString _jobId, int _value)
A job state has been updated by a plugin.
void slotFinishJob(QString _jobId)
A job state has been finished by a plugin.
void slotSetJobName(QString _jobId, QString _name)
A job's widget caption has been updated by a plugin.
void slotStartJob(QString _jobId, QString _description, int _min, int _max, bool _blocking)
A job has been started by a plugin.