1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_SHELL_SOURCE_SESSIONINSTALL_SYNCDBUSSESSIONHELPER_HXX
11 #define INCLUDED_SHELL_SOURCE_SESSIONINSTALL_SYNCDBUSSESSIONHELPER_HXX
13 #include <com/sun/star/uno/XComponentContext.hpp>
14 #include <com/sun/star/lang/XServiceInfo.hpp>
15 #include <org/freedesktop/PackageKit/SyncDbusSessionHelper.hpp>
16 #include <cppuhelper/implbase.hxx>
18 namespace shell::sessioninstall
20 class SyncDbusSessionHelper
: public ::cppu::WeakImplHelper
< ::org::freedesktop::PackageKit::XSyncDbusSessionHelper
, css::lang::XServiceInfo
>
23 SyncDbusSessionHelper(css::uno::Reference
< css::uno::XComponentContext
> const&);
26 virtual OUString SAL_CALL
getImplementationName() override
;
27 virtual sal_Bool SAL_CALL
supportsService(const OUString
& ServiceName
) override
;
28 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames () override
;
31 virtual void SAL_CALL
InstallPackageFiles( const css::uno::Sequence
< OUString
>& files
, const OUString
& interaction
) override
;
33 virtual void SAL_CALL
InstallProvideFiles( const css::uno::Sequence
< OUString
>& files
, const OUString
& interaction
) override
;
35 virtual void SAL_CALL
InstallCatalogs( const css::uno::Sequence
< OUString
>& files
, const OUString
& interaction
) override
;
37 virtual void SAL_CALL
InstallPackageNames( const css::uno::Sequence
< OUString
>& packages
, const OUString
& interaction
) override
;
39 virtual void SAL_CALL
InstallMimeTypes( const css::uno::Sequence
< OUString
>& mimeTypes
, const OUString
& interaction
) override
;
41 virtual void SAL_CALL
InstallFontconfigResources( const css::uno::Sequence
< OUString
>& resources
, const OUString
& interaction
) override
;
43 virtual void SAL_CALL
InstallGStreamerResources( const css::uno::Sequence
< OUString
>& resources
, const OUString
& interaction
) override
;
45 virtual void SAL_CALL
InstallResources( const css::uno::Sequence
< OUString
>& /* types */, const css::uno::Sequence
< OUString
>& /* resources */, const OUString
& /* interaction */ ) override
46 { throw css::uno::RuntimeException("InstallResources is not implemented"); } // not implemented
48 virtual void SAL_CALL
RemovePackageByFiles( const css::uno::Sequence
< OUString
>& files
, const OUString
& interaction
) override
;
50 virtual void SAL_CALL
InstallPrinterDrivers( const css::uno::Sequence
< OUString
>& files
, const OUString
& interaction
) override
;
53 virtual void SAL_CALL
IsInstalled( const OUString
& /* package_name */, const OUString
& /* interaction */, sal_Bool
& /* installed */ ) override
;
55 virtual void SAL_CALL
SearchFile( const OUString
& /* file_name */, const OUString
& /* interaction */, sal_Bool
& /* installed */, OUString
& /* package_name */ ) override
56 { throw css::uno::RuntimeException("SearchFile is not implemented"); } // not implemented
59 SyncDbusSessionHelper( const SyncDbusSessionHelper
& ) = delete;
60 SyncDbusSessionHelper
& operator=( const SyncDbusSessionHelper
& ) = delete;
64 #endif // INCLUDED_SHELL_SOURCE_SESSIONINSTALL_SYNCDBUSSESSIONHELPER_HXX
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */