16cab04ad2
* Added SetTo(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11021 a95241bf-73f2-0310-859d-f6bbb57e9c96
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
|