summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/Bug_3688b_Regression/TestListener.h
blob: ee832c1a7590512a06f4b3b15a58911301a587e2 (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
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef testListener_h
#define testListener_h

#include "bug3688_export.h"

#include <string>
#include <vector>

#include "orbsvcs/CosNotifyChannelAdminS.h"
#include "orbsvcs/CosNotifyCommC.h"


struct bug3688_Export TestListener
:
  public POA_CosNotifyComm::StructuredPushConsumer
{
  TestListener(
    CORBA::ORB * p_orb,
    std::string const & rc_channelIor,
    std::string const & rc_filterExpression = ""
  );

  ~TestListener();

  virtual void push_structured_event (
    const CosNotification::StructuredEvent & notification
  );

  virtual void disconnect_structured_push_consumer ( );

  virtual void offer_change(
    const CosNotification::EventTypeSeq & added,
    const CosNotification::EventTypeSeq & removed
  );

  PortableServer::POA_var mv_rootPOA;
  PortableServer::ObjectId_var mv_oid;
  CORBA::Object_var mv_this;
  CosNotifyChannelAdmin::EventChannel_var mv_eventChannel;
  CosNotifyChannelAdmin::ConsumerAdmin_var mv_consumerAdmin;
  CosNotifyComm::StructuredPushConsumer_var mv_structuredPushConsumer;
  CosNotifyChannelAdmin::StructuredProxyPushSupplier_var mv_proxySupplier;
  CosNotifyChannelAdmin::ProxyID m_proxySupplierId;
  CosNotifyChannelAdmin::AdminID m_consumerAdminId;

  std::vector<CORBA::Long> m_receivedData;
};


#endif /* testListener_h */