2015-05-18 19:21:58 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2015, Haiku, Inc.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _JOB_PRIVATE_H_
|
|
|
|
#define _JOB_PRIVATE_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <Job.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace BSupportKit {
|
|
|
|
|
|
|
|
|
|
|
|
class BJob::Private {
|
|
|
|
public:
|
|
|
|
Private(BJob& job)
|
|
|
|
:
|
|
|
|
fJob(job)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void SetTicketNumber(uint32 ticketNumber)
|
|
|
|
{
|
|
|
|
fJob._SetTicketNumber(ticketNumber);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ClearTicketNumber()
|
|
|
|
{
|
|
|
|
fJob._ClearTicketNumber();
|
|
|
|
}
|
|
|
|
|
2015-10-18 14:04:04 +03:00
|
|
|
void SetState(BJobState state)
|
|
|
|
{
|
|
|
|
fJob.SetState(state);
|
|
|
|
}
|
|
|
|
|
|
|
|
void NotifyStateListeners()
|
|
|
|
{
|
|
|
|
fJob.NotifyStateListeners();
|
|
|
|
}
|
|
|
|
|
2015-05-18 19:21:58 +03:00
|
|
|
private:
|
|
|
|
BJob& fJob;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace BSupportKit
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _JOB_PRIVATE_H_
|