2005-01-25 17:42:55 +03:00
|
|
|
#ifndef MESSENGER_PRIVATE_H
|
|
|
|
#define MESSENGER_PRIVATE_H
|
2003-08-26 03:33:02 +04:00
|
|
|
|
|
|
|
#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; }
|
|
|
|
|
2005-01-25 17:42:55 +03:00
|
|
|
void SetTo(team_id team, port_id port, int32 token, bool preferred)
|
|
|
|
{ fMessenger->SetTo(team, port, token, preferred); }
|
|
|
|
|
2003-08-26 03:33:02 +04:00
|
|
|
private:
|
|
|
|
BMessenger* fMessenger;
|
|
|
|
};
|
|
|
|
|
2005-01-25 17:42:55 +03:00
|
|
|
#endif // MESSENGER_PRIVATE_H
|