#ifndef _COM_SUN_STAR_UCB_FETCHRESULT_HPP_
#define _COM_SUN_STAR_UCB_FETCHRESULT_HPP_

#ifndef _COM_SUN_STAR_UCB_FETCHRESULT_HDL_
#include <com/sun/star/ucb/FetchResult.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_UNO_SEQUENCE_HXX_
#include <com/sun/star/uno/Sequence.hxx>
#endif
#ifndef _COM_SUN_STAR_UNO_ANY_HXX_
#include <com/sun/star/uno/Any.hxx>
#endif

namespace com
{
namespace sun
{
namespace star
{
namespace ucb
{

inline FetchResult::FetchResult() SAL_THROW( () )
    : Rows()
    , StartIndex((sal_Int32)0)
    , Orientation(sal_False)
    , FetchError((sal_Int16)0)
{
}

inline FetchResult::FetchResult(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& __Rows, const sal_Int32& __StartIndex, const sal_Bool& __Orientation, const sal_Int16& __FetchError) SAL_THROW( () )
    : Rows(__Rows)
    , StartIndex(__StartIndex)
    , Orientation(__Orientation)
    , FetchError(__FetchError)
{
}

} // ucb
} // star
} // sun
} // com

#if ((defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500)) || (defined(__GNUC__) && defined(__APPLE__)))
static typelib_TypeDescriptionReference * s_pType_com_sun_star_ucb_FetchResult = 0;
#endif

inline const ::com::sun::star::uno::Type& SAL_CALL getCppuType( const ::com::sun::star::ucb::FetchResult* ) SAL_THROW( () )
{
    #if ! ((defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500)) || (defined(__GNUC__) && defined(__APPLE__)))
    static typelib_TypeDescriptionReference * s_pType_com_sun_star_ucb_FetchResult = 0;
    #endif

    if ( !s_pType_com_sun_star_ucb_FetchResult )
    {
        typelib_static_type_init( &s_pType_com_sun_star_ucb_FetchResult, typelib_TypeClass_STRUCT, "com.sun.star.ucb.FetchResult" );
    }
    return * reinterpret_cast< ::com::sun::star::uno::Type * >( &s_pType_com_sun_star_ucb_FetchResult );
}

#endif // _COM_SUN_STAR_UCB_FETCHRESULT_HPP_
