#ifndef _STRUCTUREDPUSHSUPPLIERIMPL_H
#define _STRUCTUREDPUSHSUPPLIERIMPL_H

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

#include "ChannelUtil.h"

class StructuredPushSupplierImpl : public POA_CosNotifyComm::StructuredPushSupplier
{
public:

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

  virtual void disconnect_structured_push_supplier (void);

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

  void pushEvents (void);

private:

  void connectToChannel (void);

  CORBA::ORB_var orbVar_;

  ChannelUtil &util_;

  CosNotifyComm::StructuredPushSupplier_var supplierVar_;

  CosNotifyChannelAdmin::StructuredProxyPushConsumer_var proxyVar_;
};

#endif // _STRUCTUREDPUSHSUPPLIERIMPL_H
