update credits
[LibreOffice.git] / ucb / source / ucp / ftp / test_multiservicefac.hxx
blobc767ba824a1d93633e3e668f57e4822e1e4840e3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 /**************************************************************************
21 TODO
22 **************************************************************************
24 *************************************************************************/
25 #ifndef _TEST_MULTISERVICEFAC_HXX_
26 #define _TEST_MULTISERVICEFAC_HXX_
28 #include <cppuhelper/weak.hxx>
29 #include <cppuhelper/queryinterface.hxx>
30 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
33 namespace test_ftp {
35 class Test_MultiServiceFactory
36 : public cppu::OWeakObject,
37 public com::sun::star::lang::XMultiServiceFactory
39 public:
41 // XInterface
43 virtual com::sun::star::uno::Any SAL_CALL
44 queryInterface( const com::sun::star::uno::Type& rType )
45 throw( com::sun::star::uno::RuntimeException );
48 virtual void SAL_CALL acquire( void ) throw();
50 virtual void SAL_CALL release( void ) throw();
52 // XMultiServiceFactory
54 virtual ::com::sun::star::uno::Reference<
55 ::com::sun::star::uno::XInterface > SAL_CALL
56 createInstance(
57 const OUString& aServiceSpecifier
59 throw (
60 ::com::sun::star::uno::Exception,
61 ::com::sun::star::uno::RuntimeException
64 virtual
65 ::com::sun::star::uno::Reference<
66 ::com::sun::star::uno::XInterface > SAL_CALL
67 createInstanceWithArguments(
68 const OUString& ServiceSpecifier,
69 const ::com::sun::star::uno::Sequence
70 < ::com::sun::star::uno::Any >& Arguments
72 throw (
73 ::com::sun::star::uno::Exception,
74 ::com::sun::star::uno::RuntimeException
77 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL
78 getAvailableServiceNames(
80 throw (
81 ::com::sun::star::uno::RuntimeException
87 #endif
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */