// **********************************************************************
//
// Generated by the ORBacus IDL-to-C++ Translator
//
// Copyright (c) 2003
// IONA Technologies, Inc.
// Waltham, MA, USA
//
// All Rights Reserved
//
// **********************************************************************

// Version: 4.1.3

#ifndef __OB_BindingListener_skel_h__
#define __OB_BindingListener_skel_h__

#include <OB/BindingListener.h>

#include <OB/CosNaming_skel.h>

#ifndef OB_NAMING_IMPORT
#   ifdef OB_DLL
#      define OB_NAMING_IMPORT __declspec(dllimport)
#   else
#      define OB_NAMING_IMPORT /**/
#   endif
#endif


#ifndef OB_INTEGER_VERSION
#   error No ORBacus version defined! Is <OB/CORBA.h> included?
#endif

#ifndef OB_NO_VERSION_CHECK
#   if (OB_INTEGER_VERSION != 4010300L)
#       error ORBacus version mismatch!
#   endif
#endif

//
// IDL:omg.org/CosNaming:1.0
//
namespace POA_CosNaming
{

//
// IDL:ooc.com/CosNaming/BindingListener:1.0
//
class BindingListener : virtual public PortableServer::ServantBase
{
    BindingListener(const BindingListener&);
    void operator=(const BindingListener&);

protected:

    //
    // IDL:ooc.com/CosNaming/BindingListener/context_added:1.0
    //
    void _OB_op_context_added(OB::Upcall_ptr);

    //
    // IDL:ooc.com/CosNaming/BindingListener/context_removed:1.0
    //
    void _OB_op_context_removed(OB::Upcall_ptr);

    //
    // IDL:ooc.com/CosNaming/BindingListener/context_changed:1.0
    //
    void _OB_op_context_changed(OB::Upcall_ptr);

    //
    // IDL:ooc.com/CosNaming/BindingListener/object_added:1.0
    //
    void _OB_op_object_added(OB::Upcall_ptr);

    //
    // IDL:ooc.com/CosNaming/BindingListener/object_removed:1.0
    //
    void _OB_op_object_removed(OB::Upcall_ptr);

    //
    // IDL:ooc.com/CosNaming/BindingListener/object_changed:1.0
    //
    void _OB_op_object_changed(OB::Upcall_ptr);

public:

    BindingListener() { }

    virtual ::CORBA::Boolean _is_a(const char*)
        throw(::CORBA::SystemException);

    virtual ::CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
                                                     PortableServer::POA_ptr);

    CosNaming::BindingListener_ptr _this();

    virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
                                                            const PortableServer::ObjectId&);
    virtual void _OB_dispatch(OB::Upcall_ptr);

    //
    // IDL:ooc.com/CosNaming/BindingListener/context_added:1.0
    //
    virtual void context_added(::CosNaming::NamingContext_ptr parent_ctx,
                               ::CosNaming::NamingContext_ptr child_ctx,
                               const ::CosNaming::NameComponent& name)
        throw(::CORBA::SystemException) = 0;

    //
    // IDL:ooc.com/CosNaming/BindingListener/context_removed:1.0
    //
    virtual void context_removed(::CosNaming::NamingContext_ptr parent_ctx,
                                 const ::CosNaming::NameComponent& name)
        throw(::CORBA::SystemException) = 0;

    //
    // IDL:ooc.com/CosNaming/BindingListener/context_changed:1.0
    //
    virtual void context_changed(::CosNaming::NamingContext_ptr parent_ctx,
                                 ::CosNaming::NamingContext_ptr child_ctx,
                                 const ::CosNaming::NameComponent& old_name,
                                 const ::CosNaming::NameComponent& new_name)
        throw(::CORBA::SystemException) = 0;

    //
    // IDL:ooc.com/CosNaming/BindingListener/object_added:1.0
    //
    virtual void object_added(::CosNaming::NamingContext_ptr parent_ctx,
                              ::CORBA::Object_ptr child_obj,
                              const ::CosNaming::NameComponent& name)
        throw(::CORBA::SystemException) = 0;

    //
    // IDL:ooc.com/CosNaming/BindingListener/object_removed:1.0
    //
    virtual void object_removed(::CosNaming::NamingContext_ptr parent_ctx,
                                const ::CosNaming::NameComponent& name)
        throw(::CORBA::SystemException) = 0;

    //
    // IDL:ooc.com/CosNaming/BindingListener/object_changed:1.0
    //
    virtual void object_changed(::CosNaming::NamingContext_ptr parent_ctx,
                                ::CORBA::Object_ptr child,
                                const ::CosNaming::NameComponent& old_name,
                                const ::CosNaming::NameComponent& new_name)
        throw(::CORBA::SystemException) = 0;
};

} // End of namespace POA_CosNaming

//
// IDL:omg.org/CosNaming:1.0
//
namespace OBDirectStubImpl_CosNaming
{

//
// IDL:ooc.com/CosNaming/BindingListener:1.0
//
class BindingListener : virtual public OBStubImpl_CosNaming::BindingListener,
                        virtual public OB::DirectStubImpl
{
    BindingListener(const BindingListener&);
    void operator=(const BindingListener&);

protected:

#ifdef HAVE_VCPLUSPLUS_BUGS

    BindingListener() { }

#endif

    BindingListener(PortableServer::POA_ptr,
                    const PortableServer::ObjectId&,
                    PortableServer::ServantBase*);

    friend class POA_CosNaming::BindingListener;

public:

    //
    // IDL:ooc.com/CosNaming/BindingListener/context_added:1.0
    //
    virtual void context_added(::CosNaming::NamingContext_ptr parent_ctx,
                               ::CosNaming::NamingContext_ptr child_ctx,
                               const ::CosNaming::NameComponent& name);

    //
    // IDL:ooc.com/CosNaming/BindingListener/context_removed:1.0
    //
    virtual void context_removed(::CosNaming::NamingContext_ptr parent_ctx,
                                 const ::CosNaming::NameComponent& name);

    //
    // IDL:ooc.com/CosNaming/BindingListener/context_changed:1.0
    //
    virtual void context_changed(::CosNaming::NamingContext_ptr parent_ctx,
                                 ::CosNaming::NamingContext_ptr child_ctx,
                                 const ::CosNaming::NameComponent& old_name,
                                 const ::CosNaming::NameComponent& new_name);

    //
    // IDL:ooc.com/CosNaming/BindingListener/object_added:1.0
    //
    virtual void object_added(::CosNaming::NamingContext_ptr parent_ctx,
                              ::CORBA::Object_ptr child_obj,
                              const ::CosNaming::NameComponent& name);

    //
    // IDL:ooc.com/CosNaming/BindingListener/object_removed:1.0
    //
    virtual void object_removed(::CosNaming::NamingContext_ptr parent_ctx,
                                const ::CosNaming::NameComponent& name);

    //
    // IDL:ooc.com/CosNaming/BindingListener/object_changed:1.0
    //
    virtual void object_changed(::CosNaming::NamingContext_ptr parent_ctx,
                                ::CORBA::Object_ptr child,
                                const ::CosNaming::NameComponent& old_name,
                                const ::CosNaming::NameComponent& new_name);
};

} // End of namespace OBDirectStubImpl_CosNaming

#endif
