29 lines
657 B
C
29 lines
657 B
C
|
#ifndef MESSENGER_PRIVATE_H
|
||
|
#define MESSENGER_PRIVATE_H
|
||
|
|
||
|
#include <Messenger.h>
|
||
|
|
||
|
class BMessenger::Private
|
||
|
{
|
||
|
public:
|
||
|
Private(BMessenger* msnger) : fMessenger(msnger) {;}
|
||
|
Private(BMessenger& msnger) : fMessenger(&msnger) {;}
|
||
|
|
||
|
port_id Port()
|
||
|
{ return fMessenger->fPort; }
|
||
|
int32 Token()
|
||
|
{ return fMessenger->fHandlerToken; }
|
||
|
team_id Team()
|
||
|
{ return fMessenger->fTeam; }
|
||
|
bool IsPreferredTarget()
|
||
|
{ return fMessenger->fPreferredTarget; }
|
||
|
|
||
|
void SetTo(team_id team, port_id port, int32 token, bool preferred)
|
||
|
{ fMessenger->SetTo(team, port, token, preferred); }
|
||
|
|
||
|
private:
|
||
|
BMessenger* fMessenger;
|
||
|
};
|
||
|
|
||
|
#endif // MESSENGER_PRIVATE_H
|