16 #include <Poco/Thread.h> 18 #include <org_blueberry_core_jobs_Export.h> 21 #include "internal/berryInternalJob.h" 60 class BERRY_JOBS
Job:
public InternalJob
85 static const int INTERACTIVE = 10;
96 static const int SHORT = 20;
104 static const int LONG = 30;
113 static const int BUILD = 40;
125 static const int DECORATE = 50;
133 static const int NONE = 0;
140 static const int SLEEPING = 0x01;
146 static const int WAITING = 0x02;
152 static const int RUNNING = 0x04;
168 Job(
const QString& name);
239 int GetPriority()
const;
289 int GetState()
const;
297 Poco::Thread* GetThread()
const;
321 bool IsSystem()
const;
405 void Schedule(Poco::Timestamp::TimeDiff delay);
417 void SetName(
const QString& name);
427 void SetPriority(
int priority);
491 void SetSystem(
bool value);
502 void SetUser(
bool value);
516 void SetThread(Poco::Thread* thread);
535 virtual bool ShouldRun();
553 bool ShouldSchedule()
override;
590 void WakeUp(
long delay);
602 void Canceling()
override;
static const IStatus::Pointer ASYNC_FINISH
#define berryObjectMacro(...)
static std::string GetName(std::string fileName, std::string suffix)
void Run(berry::IWorkbenchPartSite::Pointer workbenchPartSite, mitk::DataStorage::Pointer dataStorage)