BJob: Added SetState() method.

This commit is contained in:
Axel Dörfler
2015-10-17 14:16:26 +02:00
parent e96f5c3330
commit 5ab2b1457b
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -71,6 +71,7 @@ protected:
virtual status_t Execute() = 0; virtual status_t Execute() = 0;
virtual void Cleanup(status_t jobResult); virtual void Cleanup(status_t jobResult);
void SetState(BJobState state);
void SetErrorString(const BString&); void SetErrorString(const BString&);
void NotifyStateListeners(); void NotifyStateListeners();
+7
View File
@@ -226,6 +226,13 @@ BJob::DependantJobAt(int32 index) const
} }
void
BJob::SetState(BJobState state)
{
fState = state;
}
void void
BJob::NotifyStateListeners() BJob::NotifyStateListeners()
{ {