xref: /haiku/headers/private/app/MessengerPrivate.h (revision d5cd5d63ff0ad395989db6cf4841a64d5b545d1d)
1 #ifndef MESSENGERPRIVAGE_H
2 #define MESSENGERPRIVATE_H
3 
4 #include <Messenger.h>
5 
6 class BMessenger::Private
7 {
8 	public:
9 		Private(BMessenger* msnger) : fMessenger(msnger) {;}
10 		Private(BMessenger& msnger) : fMessenger(&msnger) {;}
11 
12 		port_id	Port()
13 			{ return fMessenger->fPort; }
14 		int32	Token()
15 			 { return fMessenger->fHandlerToken; }
16 		team_id	Team()
17 			{ return fMessenger->fTeam; }
18 		bool	IsPreferredTarget()
19 			{ return fMessenger->fPreferredTarget; }
20 
21 	private:
22 		BMessenger* fMessenger;
23 };
24 
25 #endif	// MESSENGERPRIVATE_H
26