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/lang/XMultiServiceFactory.hpp>
14 #include <com/sun/star/uno/XComponentContext.hpp>
15 #include <org/freedesktop/PackageKit/SyncDbusSessionHelper.hpp>
16 #include <cppuhelper/implbase1.hxx>
18 namespace shell
{ namespace sessioninstall
20 class SyncDbusSessionHelper
: public ::cppu::WeakImplHelper1
< ::org::freedesktop::PackageKit::XSyncDbusSessionHelper
>
23 SyncDbusSessionHelper(::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
> const&);
24 virtual ~SyncDbusSessionHelper() {}
27 virtual void SAL_CALL
InstallPackageFiles( ::sal_uInt32 xid
, const ::com::sun::star::uno::Sequence
< OUString
>& files
, const OUString
& interaction
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
29 virtual void SAL_CALL
InstallProvideFiles( ::sal_uInt32 xid
, const ::com::sun::star::uno::Sequence
< OUString
>& files
, const OUString
& interaction
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
31 virtual void SAL_CALL
InstallCatalogs( ::sal_uInt32 xid
, const ::com::sun::star::uno::Sequence
< OUString
>& files
, const OUString
& interaction
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
33 virtual void SAL_CALL
InstallPackageNames( ::sal_uInt32 xid
, const ::com::sun::star::uno::Sequence
< OUString
>& packages
, const OUString
& interaction
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
35 virtual void SAL_CALL
InstallMimeTypes( ::sal_uInt32 xid
, const ::com::sun::star::uno::Sequence
< OUString
>& mimeTypes
, const OUString
& interaction
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
37 virtual void SAL_CALL
InstallFontconfigResources( ::sal_uInt32 xid
, const ::com::sun::star::uno::Sequence
< OUString
>& resources
, const OUString
& interaction
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
39 virtual void SAL_CALL
InstallGStreamerResources( ::sal_uInt32 xid
, const ::com::sun::star::uno::Sequence
< OUString
>& resources
, const OUString
& interaction
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
41 virtual void SAL_CALL
InstallResources( ::sal_uInt32
/* xid */, const ::com::sun::star::uno::Sequence
< OUString
>& /* types */, const ::com::sun::star::uno::Sequence
< OUString
>& /* resources */, const OUString
& /* interaction */ ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
42 { throw ::com::sun::star::uno::RuntimeException(); } // not implemented
44 virtual void SAL_CALL
RemovePackageByFiles( ::sal_uInt32 xid
, const ::com::sun::star::uno::Sequence
< OUString
>& files
, const OUString
& interaction
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
46 virtual void SAL_CALL
InstallPrinterDrivers( ::sal_uInt32 xid
, const ::com::sun::star::uno::Sequence
< OUString
>& files
, const OUString
& interaction
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
49 virtual void SAL_CALL
IsInstalled( const OUString
& /* package_name */, const OUString
& /* interaction */, sal_Bool
& /* installed */ ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
51 virtual void SAL_CALL
SearchFile( const OUString
& /* file_name */, const OUString
& /* interaction */, sal_Bool
& /* installed */, OUString
& /* package_name */ ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
52 { throw ::com::sun::star::uno::RuntimeException(); } // not implemented
55 SyncDbusSessionHelper( const SyncDbusSessionHelper
& ) SAL_DELETED_FUNCTION
;
56 SyncDbusSessionHelper
& operator=( const SyncDbusSessionHelper
& ) SAL_DELETED_FUNCTION
;
60 #endif // INCLUDED_SHELL_SOURCE_SESSIONINSTALL_SYNCDBUSSESSIONHELPER_HXX
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */