Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / extensions / source / config / WinUserInfo / WinUserInfoBe.hxx
blob766b88c412276bf6da2e9949c1a2f662f7770af3
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/.
8 */
10 #ifndef INCLUDED_EXTENSIONS_SOURCE_CONFIG_WINUSERINFO_WINUSERINFOBE_HXX
11 #define INCLUDED_EXTENSIONS_SOURCE_CONFIG_WINUSERINFO_WINUSERINFOBE_HXX
13 #include <com/sun/star/beans/XPropertySet.hpp>
14 #include <com/sun/star/lang/XServiceInfo.hpp>
15 #include <cppuhelper/compbase.hxx>
16 #include <memory>
18 namespace com
20 namespace sun
22 namespace star
24 namespace uno
26 class XComponentContext;
32 namespace extensions
34 namespace config
36 namespace WinUserInfo
38 class WinUserInfoBe_Impl;
40 typedef cppu::WeakComponentImplHelper<css::beans::XPropertySet, css::lang::XServiceInfo>
41 BackendBase;
43 struct WinUserInfoMutexHolder
45 osl::Mutex mMutex;
47 /**
48 Implements the PlatformBackend service, a specialization of the
49 XPropertySet service for retrieving Active Directory user profile
50 configuration settings.
52 class WinUserInfoBe : private WinUserInfoMutexHolder, public BackendBase
54 public:
55 explicit WinUserInfoBe(const css::uno::Reference<css::uno::XComponentContext>& xContext);
56 virtual ~WinUserInfoBe() override;
58 // XServiceInfo
59 virtual OUString SAL_CALL getImplementationName() override;
61 virtual sal_Bool SAL_CALL supportsService(const OUString& aServiceName) override;
63 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
65 // XPropertySet
66 virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override
68 return css::uno::Reference<css::beans::XPropertySetInfo>();
71 virtual void SAL_CALL setPropertyValue(OUString const&, css::uno::Any const&) override;
73 virtual css::uno::Any SAL_CALL getPropertyValue(OUString const& PropertyName) override;
75 virtual void SAL_CALL addPropertyChangeListener(
76 OUString const&, css::uno::Reference<css::beans::XPropertyChangeListener> const&) override
80 virtual void SAL_CALL removePropertyChangeListener(
81 OUString const&, css::uno::Reference<css::beans::XPropertyChangeListener> const&) override
85 virtual void SAL_CALL addVetoableChangeListener(
86 OUString const&, css::uno::Reference<css::beans::XVetoableChangeListener> const&) override
90 virtual void SAL_CALL removeVetoableChangeListener(
91 OUString const&, css::uno::Reference<css::beans::XVetoableChangeListener> const&) override
95 /**
96 Provides the implementation name.
97 @return implementation name
99 static OUString getWinUserInfoBeName();
101 Provides the supported services names
102 @return service names
104 static css::uno::Sequence<OUString> getWinUserInfoBeServiceNames();
106 private:
107 std::unique_ptr<WinUserInfoBe_Impl> m_pImpl;
113 #endif // INCLUDED_EXTENSIONS_SOURCE_CONFIG_WINUSERINFO_WINUSERINFOBE_HXX
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */