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