summaryrefslogtreecommitdiff
path: root/TAO/tests/QtTests/test_i.cpp
blob: 8b5bae8c70508a6b2213e18280a3bc3c201e58cd (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
36
37
38
// $Id$

#include "test_i.h"

#if defined(ACE_HAS_QT)

#if !defined(__ACE_INLINE__)
#include "test_i.i"
#endif /* __ACE_INLINE__ */

ACE_RCSID(FL_Cube, test_i, "$Id$")

LCD_Display_imp::LCD_Display_imp (CORBA::ORB_ptr orb)

  : orb_ (CORBA::ORB::_duplicate (orb))
{
}

void
LCD_Display_imp::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
      ACE_THROW_SPEC ((CORBA::SystemException))
{
  ACE_DEBUG ((LM_DEBUG,
              "The ORB has been shutdown, Close the windows to exit \n"));
  this->orb_->shutdown (0);
  this->orb_->destroy ();
}

void
LCD_Display_imp::send_val (CORBA::Long val
                           ACE_ENV_ARG_DECL_NOT_USED)
    ACE_THROW_SPEC ((CORBA::SystemException))
{
  ACE_DEBUG ((LM_DEBUG,
              "The value from server is <%d> \n", val));
  emit set_value (val);
}
#endif /* ACE_HAS_QT */