blob: 0814ed2eda3c6ed6f70455731445e07d564b92fc (
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
|
//---------------------------------------------------------------------------
#include "pch.h"
#pragma hdrstop
#include "ChatClientWnd.h"
#include "ReceiverImpl.h"
//---------------------------------------------------------------------------
TReceiverImplementation::TReceiverImplementation ()
: orb_ (0)
{
}
//---------------------------------------------------------------------------
TReceiverImplementation::~TReceiverImplementation ()
{
}
//---------------------------------------------------------------------------
void TReceiverImplementation::message (const char* msg)
{
::PostMessage (ChatClientWindow->Handle,
WM_MESSAGE_RECEIVED,
(WPARAM) new String (msg),
(LPARAM) 0);
}
//---------------------------------------------------------------------------
void TReceiverImplementation::shutdown ()
{
// Instruct the ORB to shutdown.
orb_->shutdown (0);
}
//---------------------------------------------------------------------------
void TReceiverImplementation::orb (CORBA::ORB_ptr o)
{
orb_ = CORBA::ORB::_duplicate (o);
}
//---------------------------------------------------------------------------
|