#ifndef _ANYPUSHCONSUMERIMPL_H
#define _ANYPUSHCONSUMERIMPL_H

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

#include "ChannelUtil.h"

class AnyPushConsumerImpl : public POA_CosNotifyComm::PushConsumer
{
public:

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

  virtual void disconnect_push_consumer (void);

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

  virtual void push (const CORBA::Any &event);

private:

  void connectToChannel (void);

  CORBA::ORB_var orbVar_;

  ChannelUtil &util_;

  CosNotifyComm::PushConsumer_var consumerVar_;
};

#endif  // _ANYPUSHCONSUMERIMPL_H
