16 #include <Poco/Thread.h>
18 #include <org_blueberry_core_jobs_Export.h>
20 #include "internal/berryInternalJob.h"
58 class BERRY_JOBS
Job:
public InternalJob
83 static const int INTERACTIVE = 10;
94 static const int SHORT = 20;
102 static const int LONG = 30;
110 static const int BUILD = 40;
121 static const int DECORATE = 50;
129 static const int NONE = 0;
135 static const int SLEEPING = 0x01;
141 static const int WAITING = 0x02;
147 static const int RUNNING = 0x04;
void Schedule(Poco::Timestamp::TimeDiff delay)
void SetThread(Poco::Thread *thread)
void Done(IStatus::Pointer result)
void SetSystem(bool value)
IStatus::Pointer GetResult() const
IStatus::Pointer Run(IProgressMonitor::Pointer myProgressMonitor) override=0
static const IStatus::Pointer ASYNC_FINISH
static const IJobManager * GetJobManager()
void AddJobChangeListener(IJobChangeListener *listener)
bool BelongsTo(Object::Pointer family) override
void SetRule(ISchedulingRule::Pointer rule)
void SetName(const QString &name)
void SetPriority(int priority)
void SetProgressGroup(IProgressMonitor::Pointer group, int ticks)
void RemoveJobChangeListener(IJobChangeListener *listener)
void Canceling() override
bool ShouldSchedule() override
Poco::Thread * GetThread() const
ISchedulingRule::Pointer GetRule() const
Implements transparent reference counting.