summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/DevGuideExamples/NotifyService/SupplierSideNC/StructuredEventSupplier_i.cpp
blob: 0bd7c8a5ccb578f56f5d8c410523e7cc2ae51f9a (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
// $Id$

#include "StructuredEventSupplier_i.h"
#include "tao/PortableServer/PS_CurrentC.h"

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

void
StructuredEventSupplier_i::disconnect_structured_push_supplier ()
{

  CORBA::Object_var obj = orb_->resolve_initial_references ("POACurrent");
  PortableServer::Current_var current =
    PortableServer::Current::_narrow (obj.in());
  PortableServer::POA_var poa = current->get_POA ();
  PortableServer::ObjectId_var objectId = current->get_object_id ();
  poa->deactivate_object (objectId.in());

}

void
StructuredEventSupplier_i::subscription_change (
    const CosNotification::EventTypeSeq &,
    const CosNotification::EventTypeSeq &)
{
}