haiku/headers/private/app/MessengerPrivate.h
ejakowatz 19cdc4570f How the glaring fubar in MessagePrivate.h got past me is a mystery.
Nonetheless, here is new BMessenger-related goodness to smooth is all out.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-25 23:33:02 +00:00

25 lines
526 B
C++

#ifndef MESSENGERPRIVAGE_H
#define MESSENGERPRIVATE_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; }
private:
BMessenger* fMessenger;
};
#endif // MESSENGERPRIVATE_H