diff --git a/headers/os/support/Job.h b/headers/os/support/Job.h index 3f5e752c17..84d4a9efe2 100644 --- a/headers/os/support/Job.h +++ b/headers/os/support/Job.h @@ -71,6 +71,7 @@ protected: virtual status_t Execute() = 0; virtual void Cleanup(status_t jobResult); + void SetState(BJobState state); void SetErrorString(const BString&); void NotifyStateListeners(); diff --git a/src/kits/support/Job.cpp b/src/kits/support/Job.cpp index d9f2b21c02..c2ecb723ac 100644 --- a/src/kits/support/Job.cpp +++ b/src/kits/support/Job.cpp @@ -226,6 +226,13 @@ BJob::DependantJobAt(int32 index) const } +void +BJob::SetState(BJobState state) +{ + fState = state; +} + + void BJob::NotifyStateListeners() {