BJob: Added SetState() method.
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -226,6 +226,13 @@ BJob::DependantJobAt(int32 index) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
BJob::SetState(BJobState state)
|
||||||
|
{
|
||||||
|
fState = state;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BJob::NotifyStateListeners()
|
BJob::NotifyStateListeners()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user