xref: /trunk/main/ucb/source/ucp/ftp/test_multiservicefac.cxx (revision 45c5a00162811bd03b87fcb4fe9996782f2b59ec)
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_ftp.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 {
45     Any aRet = ::cppu::queryInterface(rType,
46                                       SAL_STATIC_CAST( XMultiServiceFactory*,
47                                                        this ));
48 
49     return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
50 
51 }
52 
53 
54 void SAL_CALL Test_MultiServiceFactory::acquire( void ) throw()
55 {
56     OWeakObject::acquire();
57 }
58 
59 
60 void SAL_CALL Test_MultiServiceFactory::release( void ) throw()
61 {
62     OWeakObject::release();
63 }
64 
65         // XMultiServiceFactory
66 
67  Reference<
68 XInterface > SAL_CALL
69 Test_MultiServiceFactory::createInstance(
70     const ::rtl::OUString& aServiceSpecifier
71 )
72 {
73     return Reference<
74         XInterface >(0);
75 }
76 
77 
78 Reference<
79 XInterface > SAL_CALL
80 Test_MultiServiceFactory::createInstanceWithArguments(
81     const ::rtl::OUString& ServiceSpecifier,
82     const Sequence
83     < Any >& Arguments
84 )
85 {
86     return Reference<
87         XInterface >(0);
88 }
89 
90 Sequence< ::rtl::OUString > SAL_CALL
91 Test_MultiServiceFactory::getAvailableServiceNames(
92 )
93 {
94     return Sequence< ::rtl::OUString >(0);
95 }
96