vfs: check userland buffers before reading them.
[haiku.git] / headers / private / support / JobPrivate.h
blob7ed4a251621b21b06032683a1068383b6a967670
1 /*
2 * Copyright 2015, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _JOB_PRIVATE_H_
6 #define _JOB_PRIVATE_H_
9 #include <Job.h>
12 namespace BSupportKit {
15 class BJob::Private {
16 public:
17 Private(BJob& job)
19 fJob(job)
23 void SetTicketNumber(uint32 ticketNumber)
25 fJob._SetTicketNumber(ticketNumber);
28 void ClearTicketNumber()
30 fJob._ClearTicketNumber();
33 void SetState(BJobState state)
35 fJob.SetState(state);
38 void NotifyStateListeners()
40 fJob.NotifyStateListeners();
43 private:
44 BJob& fJob;
48 } // namespace BSupportKit
51 #endif // _JOB_PRIVATE_H_