#ifndef _COM_SUN_STAR_BRIDGE_INVALIDPROTOCOLCHANGEEXCEPTION_HPP_
#define _COM_SUN_STAR_BRIDGE_INVALIDPROTOCOLCHANGEEXCEPTION_HPP_

#ifndef _COM_SUN_STAR_BRIDGE_INVALIDPROTOCOLCHANGEEXCEPTION_HDL_
#include <com/sun/star/bridge/InvalidProtocolChangeException.hdl>
#endif

#ifndef _OSL_MUTEX_HXX_
#include <osl/mutex.hxx>
#endif

#ifndef _COM_SUN_STAR_UNO_TYPE_HXX_
#include <com/sun/star/uno/Type.hxx>
#endif

#ifndef _COM_SUN_STAR_BRIDGE_PROTOCOLPROPERTY_HPP_
#include <com/sun/star/bridge/ProtocolProperty.hpp>
#endif
#ifndef _COM_SUN_STAR_UNO_EXCEPTION_HPP_
#include <com/sun/star/uno/Exception.hpp>
#endif

namespace com
{
namespace sun
{
namespace star
{
namespace bridge
{

inline InvalidProtocolChangeException::InvalidProtocolChangeException() SAL_THROW( () )
    : ::com::sun::star::uno::Exception()
    , invalidProperty()
    , reason((sal_Int32)0)
{ }

inline InvalidProtocolChangeException::InvalidProtocolChangeException(const ::rtl::OUString& __Message, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& __Context, const ::com::sun::star::bridge::ProtocolProperty& __invalidProperty, const sal_Int32& __reason) SAL_THROW( () )
    : ::com::sun::star::uno::Exception(__Message, __Context)
    , invalidProperty(__invalidProperty)
    , reason(__reason)
{ }

} // bridge
} // star
} // sun
} // com

#if (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
static typelib_TypeDescriptionReference * s_pType_com_sun_star_bridge_InvalidProtocolChangeException = 0;
#endif

inline const ::com::sun::star::uno::Type& SAL_CALL getCppuType( const ::com::sun::star::bridge::InvalidProtocolChangeException* ) SAL_THROW( () )
{
    #if ! (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
    static typelib_TypeDescriptionReference * s_pType_com_sun_star_bridge_InvalidProtocolChangeException = 0;
    #endif

    if ( !s_pType_com_sun_star_bridge_InvalidProtocolChangeException )
    {
        typelib_static_type_init( &s_pType_com_sun_star_bridge_InvalidProtocolChangeException, typelib_TypeClass_EXCEPTION, "com.sun.star.bridge.InvalidProtocolChangeException" );
    }
    return * reinterpret_cast< ::com::sun::star::uno::Type * >( &s_pType_com_sun_star_bridge_InvalidProtocolChangeException );
}

#endif // _COM_SUN_STAR_BRIDGE_INVALIDPROTOCOLCHANGEEXCEPTION_HPP_
