Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_BRIDGE_XBRIDGEFACTORY_HDL
2 : #define INCLUDED_COM_SUN_STAR_BRIDGE_XBRIDGEFACTORY_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/uno/RuntimeException.hdl"
7 : #include "com/sun/star/bridge/BridgeExistsException.hdl"
8 : namespace com { namespace sun { namespace star { namespace bridge { class XInstanceProvider; } } } }
9 : namespace com { namespace sun { namespace star { namespace connection { class XConnection; } } } }
10 : namespace com { namespace sun { namespace star { namespace bridge { class XBridge; } } } }
11 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
12 : #include "com/sun/star/uno/XInterface.hdl"
13 : #include "com/sun/star/uno/Reference.h"
14 : #include "com/sun/star/uno/Sequence.h"
15 : #include "cppu/macros.hxx"
16 : #include "rtl/ustring.hxx"
17 :
18 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
19 :
20 : namespace com { namespace sun { namespace star { namespace bridge {
21 :
22 0 : class SAL_NO_VTABLE XBridgeFactory : public css::uno::XInterface
23 : {
24 : public:
25 :
26 : // Methods
27 : virtual ::com::sun::star::uno::Reference< css::bridge::XBridge > SAL_CALL createBridge( const ::rtl::OUString& sName, const ::rtl::OUString& sProtocol, const ::com::sun::star::uno::Reference< css::connection::XConnection >& aConnection, const ::com::sun::star::uno::Reference< css::bridge::XInstanceProvider >& anInstanceProvider ) = 0;
28 : virtual ::com::sun::star::uno::Reference< css::bridge::XBridge > SAL_CALL getBridge( const ::rtl::OUString& sName ) = 0;
29 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::bridge::XBridge > > SAL_CALL getExistingBridges() = 0;
30 :
31 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
32 :
33 : protected:
34 0 : ~XBridgeFactory() throw () {} // avoid warnings about virtual members and non-virtual dtor
35 : };
36 :
37 :
38 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::bridge::XBridgeFactory const *);
39 : } } } }
40 :
41 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::bridge::XBridgeFactory > *) SAL_THROW(());
42 :
43 : #endif
|