7870a9ffc7
version. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34259 a95241bf-73f2-0310-859d-f6bbb57e9c96
35 lines
774 B
C++
35 lines
774 B
C++
/*
|
|
* Copyright 2003-2005, Haiku.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef MESSENGER_PRIVATE_H
|
|
#define MESSENGER_PRIVATE_H
|
|
|
|
|
|
#include <Messenger.h>
|
|
#include <TokenSpace.h>
|
|
|
|
|
|
class BMessenger::Private {
|
|
public:
|
|
Private(BMessenger* messenger) : fMessenger(messenger) {}
|
|
Private(BMessenger& messenger) : fMessenger(&messenger) {}
|
|
|
|
port_id Port()
|
|
{ return fMessenger->fPort; }
|
|
int32 Token()
|
|
{ return fMessenger->fHandlerToken; }
|
|
team_id Team()
|
|
{ return fMessenger->fTeam; }
|
|
bool IsPreferredTarget()
|
|
{ return fMessenger->fHandlerToken == B_PREFERRED_TOKEN; }
|
|
|
|
void SetTo(team_id team, port_id port, int32 token)
|
|
{ fMessenger->_SetTo(team, port, token); }
|
|
|
|
private:
|
|
BMessenger* fMessenger;
|
|
};
|
|
|
|
#endif // MESSENGER_PRIVATE_H
|