Branch data Line data Source code
1 : : #ifndef INCLUDED_TEST_TESTTOOLS_BRIDGETEST_XBRIDGETEST_HDL
2 : : #define INCLUDED_TEST_TESTTOOLS_BRIDGETEST_XBRIDGETEST_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
7 : : namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
8 : : #include "test/testtools/bridgetest/TestData.hdl"
9 : : #include "test/testtools/bridgetest/XBridgeTestBase.hdl"
10 : : #include "com/sun/star/uno/RuntimeException.hdl"
11 : : #include "com/sun/star/uno/Reference.h"
12 : : #include "cppu/macros.hxx"
13 : : #include "rtl/ustring.hxx"
14 : : #include "sal/types.h"
15 : :
16 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
17 : :
18 : : namespace test { namespace testtools { namespace bridgetest {
19 : :
20 : 3 : class SAL_NO_VTABLE XBridgeTest : public ::test::testtools::bridgetest::XBridgeTestBase
21 : : {
22 : : public:
23 : :
24 : : // Attributes
25 : : virtual ::sal_Int32 SAL_CALL getRuntimeException() throw (::com::sun::star::uno::RuntimeException) = 0;
26 : : virtual void SAL_CALL setRuntimeException( ::sal_Int32 _runtimeexception ) throw (::com::sun::star::uno::RuntimeException) = 0;
27 : :
28 : : // Methods
29 : : virtual ::test::testtools::bridgetest::TestDataElements SAL_CALL raiseException( ::sal_Int16 ArgumentPosition, const ::rtl::OUString& Message, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Context ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual void SAL_CALL raiseRuntimeExceptionOneway( const ::rtl::OUString& Message, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Context ) throw (::com::sun::star::uno::RuntimeException) = 0;
31 : :
32 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
33 : :
34 : : protected:
35 : 3 : ~XBridgeTest() throw () {} // avoid warnings about virtual members and non-virtual dtor
36 : : };
37 : :
38 : :
39 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::test::testtools::bridgetest::XBridgeTest const *);
40 : : } } }
41 : :
42 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::test::testtools::bridgetest::XBridgeTest > *) SAL_THROW(());
43 : :
44 : : #endif
|