LibreOffice Module extensions (master) 1
WinUserInfoBe.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#pragma once
11
12#include <com/sun/star/beans/XPropertySet.hpp>
13#include <com/sun/star/lang/XServiceInfo.hpp>
15#include <memory>
16
17namespace com
18{
19namespace sun
20{
21namespace star
22{
23namespace uno
24{
25class XComponentContext;
26}
27}
28}
29}
30
31namespace extensions
32{
33namespace config
34{
35namespace WinUserInfo
36{
37class WinUserInfoBe_Impl;
38
39typedef cppu::WeakComponentImplHelper<css::beans::XPropertySet, css::lang::XServiceInfo>
41
43{
44 osl::Mutex mMutex;
45};
52{
53public:
54 explicit WinUserInfoBe();
55 virtual ~WinUserInfoBe() override;
56
57 // XServiceInfo
58 virtual OUString SAL_CALL getImplementationName() override;
59
60 virtual sal_Bool SAL_CALL supportsService(const OUString& aServiceName) override;
61
62 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
63
64 // XPropertySet
65 virtual css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override
66 {
67 return css::uno::Reference<css::beans::XPropertySetInfo>();
68 }
69
70 virtual void SAL_CALL setPropertyValue(OUString const&, css::uno::Any const&) override;
71
72 virtual css::uno::Any SAL_CALL getPropertyValue(OUString const& PropertyName) override;
73
74 virtual void SAL_CALL addPropertyChangeListener(
75 OUString const&, css::uno::Reference<css::beans::XPropertyChangeListener> const&) override
76 {
77 }
78
79 virtual void SAL_CALL removePropertyChangeListener(
80 OUString const&, css::uno::Reference<css::beans::XPropertyChangeListener> const&) override
81 {
82 }
83
84 virtual void SAL_CALL addVetoableChangeListener(
85 OUString const&, css::uno::Reference<css::beans::XVetoableChangeListener> const&) override
86 {
87 }
88
89 virtual void SAL_CALL removeVetoableChangeListener(
90 OUString const&, css::uno::Reference<css::beans::XVetoableChangeListener> const&) override
91 {
92 }
93
94private:
95 std::unique_ptr<WinUserInfoBe_Impl> m_pImpl;
96};
97}
98}
99}
100
101/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Implements the PlatformBackend service, a specialization of the XPropertySet service for retrieving A...
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL removePropertyChangeListener(OUString const &, css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
virtual void SAL_CALL setPropertyValue(OUString const &, css::uno::Any const &) override
virtual css::uno::Any SAL_CALL getPropertyValue(OUString const &PropertyName) override
virtual void SAL_CALL addVetoableChangeListener(OUString const &, css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL addPropertyChangeListener(OUString const &, css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
virtual void SAL_CALL removeVetoableChangeListener(OUString const &, css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
virtual sal_Bool SAL_CALL supportsService(const OUString &aServiceName) override
std::unique_ptr< WinUserInfoBe_Impl > m_pImpl
cppu::WeakComponentImplHelper< css::beans::XPropertySet, css::lang::XServiceInfo > BackendBase
config
unsigned char sal_Bool