summaryrefslogtreecommitdiff
path: root/trunk/TAO/examples/Borland/ReceiverImpl.cpp
blob: 32b67bf4f0a0c44ed0ca0cb0b89a5dd8e95f07e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// $Id$
//---------------------------------------------------------------------------
#include "pch.h"
#pragma hdrstop
#include "ChatClientWnd.h"
#include "ReceiverImpl.h"
//---------------------------------------------------------------------------
TReceiverImplementation::TReceiverImplementation ()
  : orb_ (0)
{
}
//---------------------------------------------------------------------------
TReceiverImplementation::~TReceiverImplementation ()
{
}
//---------------------------------------------------------------------------
void TReceiverImplementation::message (const char* msg) throw (CORBA::SystemException)
{
  ::PostMessage (ChatClientWindow->Handle,
                 WM_MESSAGE_RECEIVED,
                 (WPARAM) new String (msg),
                 (LPARAM) 0);
}
//---------------------------------------------------------------------------
void TReceiverImplementation::shutdown () throw (CORBA::SystemException)
{
  // Instruct the ORB to shutdown.
  orb_->shutdown (0);
}
//---------------------------------------------------------------------------
void TReceiverImplementation::orb (CORBA::ORB_ptr o)
{
  orb_ = CORBA::ORB::_duplicate (o);
}
//---------------------------------------------------------------------------