Update git submodules
[LibreOffice.git] / extensions / source / config / WinUserInfo / WinUserInfoBe.hxx
blob30ca088c3aca7e9dc989b92359c5e5d8001ccca3
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 #pragma once
12 #include <com/sun/star/beans/XPropertySet.hpp>
13 #include <com/sun/star/lang/XServiceInfo.hpp>
14 #include <cppuhelper/compbase.hxx>
15 #include <memory>
17 namespace com
19 namespace sun
21 namespace star
23 namespace uno
25 class XComponentContext;
31 namespace extensions
33 namespace config
35 namespace WinUserInfo
37 class WinUserInfoBe_Impl;
39 typedef cppu::WeakComponentImplHelper<css::beans::XPropertySet, css::lang::XServiceInfo>
40 BackendBase;
42 struct WinUserInfoMutexHolder
44 osl::Mutex mMutex;
46 /**
47 Implements the PlatformBackend service, a specialization of the
48 XPropertySet service for retrieving Active Directory user profile
49 configuration settings.
51 class WinUserInfoBe : private WinUserInfoMutexHolder, public BackendBase
53 public:
54 explicit WinUserInfoBe();
55 virtual ~WinUserInfoBe() override;
57 // XServiceInfo
58 virtual OUString SAL_CALL getImplementationName() override;
60 virtual sal_Bool SAL_CALL supportsService(const OUString& aServiceName) override;
62 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
64 // XPropertySet
65 virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override
67 return css::uno::Reference<css::beans::XPropertySetInfo>();
70 virtual void SAL_CALL setPropertyValue(OUString const&, css::uno::Any const&) override;
72 virtual css::uno::Any SAL_CALL getPropertyValue(OUString const& PropertyName) override;
74 virtual void SAL_CALL addPropertyChangeListener(
75 OUString const&, css::uno::Reference<css::beans::XPropertyChangeListener> const&) override
79 virtual void SAL_CALL removePropertyChangeListener(
80 OUString const&, css::uno::Reference<css::beans::XPropertyChangeListener> const&) override
84 virtual void SAL_CALL addVetoableChangeListener(
85 OUString const&, css::uno::Reference<css::beans::XVetoableChangeListener> const&) override
89 virtual void SAL_CALL removeVetoableChangeListener(
90 OUString const&, css::uno::Reference<css::beans::XVetoableChangeListener> const&) override
94 private:
95 std::unique_ptr<WinUserInfoBe_Impl> m_pImpl;
101 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */