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_ 7 8 9 #include <Job.h> 10 11 12 namespace BSupportKit { 13 14 15 class BJob::Private { 16 public: 17 Private(BJob& job) 18 : 19 fJob(job) 20 { 21 } 22 23 void SetTicketNumber(uint32 ticketNumber) 24 { 25 fJob._SetTicketNumber(ticketNumber); 26 } 27 28 void ClearTicketNumber() 29 { 30 fJob._ClearTicketNumber(); 31 } 32 33 void SetState(BJobState state) 34 { 35 fJob.SetState(state); 36 } 37 38 void NotifyStateListeners() 39 { 40 fJob.NotifyStateListeners(); 41 } 42 43 private: 44 BJob& fJob; 45 }; 46 47 48 } // namespace BSupportKit 49 50 51 #endif // _JOB_PRIVATE_H_ 52