bump product version to 5.0.4.1
[LibreOffice.git] / ucb / source / core / ucbprops.hxx
blob3708f06fb05faf34c1e5b5ad0358db5001625797
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 #ifndef INCLUDED_UCB_SOURCE_CORE_UCBPROPS_HXX
21 #define INCLUDED_UCB_SOURCE_CORE_UCBPROPS_HXX
23 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
24 #include <com/sun/star/lang/XTypeProvider.hpp>
25 #include <com/sun/star/lang/XServiceInfo.hpp>
26 #include <com/sun/star/beans/XPropertySetInfo.hpp>
27 #include <cppuhelper/weak.hxx>
28 #include <osl/mutex.hxx>
29 #include <ucbhelper/macros.hxx>
30 #include <cppuhelper/implbase2.hxx>
34 #define PROPERTIES_MANAGER_SERVICE_NAME "com.sun.star.ucb.PropertiesManager"
38 // class UcbPropertiesManager.
42 class UcbPropertiesManager : public cppu::WeakImplHelper2 <
43 css::lang::XServiceInfo,
44 css::beans::XPropertySetInfo >
46 css::uno::Sequence< css::beans::Property >* m_pProps;
47 osl::Mutex m_aMutex;
49 private:
50 bool queryProperty( const OUString& rName,
51 com::sun::star::beans::Property& rProp );
53 public:
54 UcbPropertiesManager( const com::sun::star::uno::Reference<
55 com::sun::star::lang::XMultiServiceFactory >&
56 rxSMgr );
57 virtual ~UcbPropertiesManager();
59 // XServiceInfo
60 virtual OUString SAL_CALL getImplementationName()
61 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
62 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
63 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
64 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
65 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
67 static OUString getImplementationName_Static();
68 static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
70 static css::uno::Reference< css::lang::XSingleServiceFactory >
71 createServiceFactory( const css::uno::Reference<
72 css::lang::XMultiServiceFactory >& rxServiceMgr );
74 // XPropertySetInfo
75 virtual com::sun::star::uno::Sequence<
76 com::sun::star::beans::Property > SAL_CALL
77 getProperties()
78 throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
79 virtual com::sun::star::beans::Property SAL_CALL
80 getPropertyByName( const OUString& aName )
81 throw( com::sun::star::beans::UnknownPropertyException,
82 com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
83 virtual sal_Bool SAL_CALL
84 hasPropertyByName( const OUString& Name )
85 throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
88 #endif // INCLUDED_UCB_SOURCE_CORE_UCBPROPS_HXX
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */