BJob: Added SetState() method.

This commit is contained in:
Axel Dörfler 2015-10-17 14:00:50 +02:00
parent e96f5c3330
commit 5ab2b1457b
2 changed files with 8 additions and 0 deletions

View File

@ -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();

View File

@ -226,6 +226,13 @@ BJob::DependantJobAt(int32 index) const
}
void
BJob::SetState(BJobState state)
{
fState = state;
}
void
BJob::NotifyStateListeners()
{