1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 // MARKER(update_precomp.py): autogen include statement, do not remove 25 #include "precompiled_ucb.hxx" 26 27 /************************************************************************** 28 TODO 29 ************************************************************************** 30 31 *************************************************************************/ 32 #include "test_multiservicefac.hxx" 33 34 35 using namespace test_ftp; 36 using namespace com::sun::star::uno; 37 using namespace com::sun::star::lang; 38 39 40 Any SAL_CALL 41 Test_MultiServiceFactory::queryInterface( 42 const Type& rType 43 ) 44 throw( 45 RuntimeException 46 ) 47 { 48 Any aRet = ::cppu::queryInterface(rType, 49 SAL_STATIC_CAST( XMultiServiceFactory*, 50 this )); 51 52 return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); 53 54 } 55 56 57 void SAL_CALL Test_MultiServiceFactory::acquire( void ) throw() 58 { 59 OWeakObject::acquire(); 60 } 61 62 63 void SAL_CALL Test_MultiServiceFactory::release( void ) throw() 64 { 65 OWeakObject::release(); 66 } 67 68 // XMultiServiceFactory 69 70 Reference< 71 XInterface > SAL_CALL 72 Test_MultiServiceFactory::createInstance( 73 const ::rtl::OUString& aServiceSpecifier 74 ) 75 throw ( 76 Exception, 77 RuntimeException 78 ) 79 { 80 return Reference< 81 XInterface >(0); 82 } 83 84 85 Reference< 86 XInterface > SAL_CALL 87 Test_MultiServiceFactory::createInstanceWithArguments( 88 const ::rtl::OUString& ServiceSpecifier, 89 const Sequence 90 < Any >& Arguments 91 ) 92 throw ( 93 Exception, 94 RuntimeException 95 ) 96 { 97 return Reference< 98 XInterface >(0); 99 } 100 101 Sequence< ::rtl::OUString > SAL_CALL 102 Test_MultiServiceFactory::getAvailableServiceNames( 103 ) 104 throw ( 105 RuntimeException 106 ) 107 { 108 return Sequence< ::rtl::OUString >(0); 109 } 110