#ifndef _STRUCTUREDPUSHCONSUMERIMPL_H
#define _STRUCTUREDPUSHCONSUMERIMPL_H

#include <CosNotifyCommS.h>
#include <CosNotifyChannelAdminS.h>
#include <CosNotificationS.h>

#include "ChannelUtil.h"

class StructuredPushConsumerImpl : public POA_CosNotifyComm::StructuredPushConsumer
{
public:

  StructuredPushConsumerImpl (CORBA::ORB_ptr orb, ChannelUtil &util);

  virtual void disconnect_structured_push_consumer (void);

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

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

private:

  void connectToChannel (void);

  CORBA::ORB_var orbVar_;

  ChannelUtil &util_;

  CosNotifyComm::StructuredPushConsumer_var consumerVar_;
};

#endif  // _STRUCTUREDPUSHCONSUMERIMPL_H
