diff options
author | Andreas Bille <abi@openoffice.org> | 2002-07-31 14:13:44 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2002-07-31 14:13:44 +0000 |
commit | 398ba30e1dae68404e47715f29bec2cd5f115213 (patch) | |
tree | eaac38baa2305b3b1ef15f856a5efe680d6cde76 /ucb/source/ucp/ftp/test_multiservicefac.hxx | |
parent | b7de4d0960e007dd578760c39f5bfbb9806851ef (diff) |
Saving the code
Diffstat (limited to 'ucb/source/ucp/ftp/test_multiservicefac.hxx')
-rw-r--r-- | ucb/source/ucp/ftp/test_multiservicefac.hxx | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/ucb/source/ucp/ftp/test_multiservicefac.hxx b/ucb/source/ucp/ftp/test_multiservicefac.hxx new file mode 100644 index 000000000000..f3159c419626 --- /dev/null +++ b/ucb/source/ucp/ftp/test_multiservicefac.hxx @@ -0,0 +1,69 @@ +#ifndef _TEST_MULTISERVICEFAC_HXX_ +#define _TEST_MULTISERVICEFAC_HXX_ + +#ifndef _CPPUHELPER_WEAK_HXX_ +#include <cppuhelper/weak.hxx> +#endif +#ifndef _CPPUHELPER_QUERYINTERFACE_HXX_ +#include <cppuhelper/queryinterface.hxx> +#endif +#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_ +#include <com/sun/star/lang/XMultiServiceFactory.hpp> +#endif + + +namespace test_ftp { + + class Test_MultiServiceFactory + : public cppu::OWeakObject, + public com::sun::star::lang::XMultiServiceFactory + { + public: + + // XInterface + + virtual com::sun::star::uno::Any SAL_CALL + queryInterface( const com::sun::star::uno::Type& rType ) + throw( com::sun::star::uno::RuntimeException ); + + + virtual void SAL_CALL acquire( void ) throw(); + + virtual void SAL_CALL release( void ) throw(); + + // XMultiServiceFactory + + virtual ::com::sun::star::uno::Reference< + ::com::sun::star::uno::XInterface > SAL_CALL + createInstance( + const ::rtl::OUString& aServiceSpecifier + ) + throw ( + ::com::sun::star::uno::Exception, + ::com::sun::star::uno::RuntimeException + ); + + virtual + ::com::sun::star::uno::Reference< + ::com::sun::star::uno::XInterface > SAL_CALL + createInstanceWithArguments( + const ::rtl::OUString& ServiceSpecifier, + const ::com::sun::star::uno::Sequence + < ::com::sun::star::uno::Any >& Arguments + ) + throw ( + ::com::sun::star::uno::Exception, + ::com::sun::star::uno::RuntimeException + ); + + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL + getAvailableServiceNames( + ) + throw ( + ::com::sun::star::uno::RuntimeException + ); + }; + +} + +#endif |