haiku/headers/private/support/JobPrivate.h

52 lines
625 B
C
Raw Normal View History

/*
* 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();
}
void SetState(BJobState state)
{
fJob.SetState(state);
}
void NotifyStateListeners()
{
fJob.NotifyStateListeners();
}
private:
BJob& fJob;
};
} // namespace BSupportKit
#endif // _JOB_PRIVATE_H_