20 #include <Poco/Thread.h>
22 #include <org_blueberry_core_jobs_Export.h>
25 #include "internal/berryInternalJob.h"
64 class BERRY_JOBS
Job:
public InternalJob
89 static const int INTERACTIVE = 10;
100 static const int SHORT = 20;
108 static const int LONG = 30;
117 static const int BUILD = 40;
129 static const int DECORATE = 50;
137 static const int NONE = 0;
144 static const int SLEEPING = 0x01;
150 static const int WAITING = 0x02;
156 static const int RUNNING = 0x04;
172 Job(
const QString& name);
243 int GetPriority()
const;
293 int GetState()
const;
301 Poco::Thread* GetThread()
const;
325 bool IsSystem()
const;
409 void Schedule(Poco::Timestamp::TimeDiff delay);
421 void SetName(
const QString& name);
431 void SetPriority(
int priority);
495 void SetSystem(
bool value);
506 void SetUser(
bool value);
520 void SetThread(Poco::Thread* thread);
539 virtual bool ShouldRun();
557 virtual bool ShouldSchedule()
override;
594 void WakeUp(
long delay);
606 virtual void Canceling()
override;
static const IStatus::Pointer ASYNC_FINISH
#define berryObjectMacro(...)
static std::string GetName(std::string fileName, std::string suffix)