diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-04-17 21:33:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-04-18 07:38:29 +0200 |
commit | 7c36c5fdfdfeab9d15ea733fe2a831cd4ff25d27 (patch) | |
tree | 5142aa4d6a3a120a443c0248af38203116ee4370 /configmgr | |
parent | 3c4f53bc19ab90a98edb75a2dc554c917e36ab11 (diff) |
Some missing XServiceInfo implementations
Change-Id: I1cf871b40f9f4020147dac0456ebeed3de0438e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150533
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/update.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/configmgr/source/update.cxx b/configmgr/source/update.cxx index 1cc2a06fe2a2..5851a6af05a3 100644 --- a/configmgr/source/update.cxx +++ b/configmgr/source/update.cxx @@ -23,10 +23,12 @@ #include <set> #include <com/sun/star/configuration/XUpdate.hpp> +#include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/XInterface.hpp> #include <cppuhelper/implbase.hxx> +#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/weak.hxx> #include <osl/mutex.hxx> #include <rtl/ref.hxx> @@ -50,7 +52,7 @@ std::set< OUString > seqToSet( } class Service: - public cppu::WeakImplHelper< css::configuration::XUpdate > + public cppu::WeakImplHelper< css::configuration::XUpdate, css::lang::XServiceInfo > { public: explicit Service(const css::uno::Reference< css::uno::XComponentContext >& context): @@ -79,6 +81,18 @@ private: css::uno::Sequence< OUString > const & includedPaths, css::uno::Sequence< OUString > const & excludedPaths) override; + OUString SAL_CALL getImplementationName() override { + return "com.sun.star.comp.configuration.Update"; + } + + sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override { + return cppu::supportsService(this, ServiceName); + } + + css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override { + return {"com.sun.star.configuration.Update_Service"}; + } + std::shared_ptr<osl::Mutex> lock_; css::uno::Reference< css::uno::XComponentContext > context_; }; |