Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_DEPLOYMENT_XPACKAGEMANAGER_HDL
2 : #define INCLUDED_COM_SUN_STAR_DEPLOYMENT_XPACKAGEMANAGER_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/beans/NamedValue.hdl"
7 : #include "com/sun/star/deployment/DeploymentException.hdl"
8 : namespace com { namespace sun { namespace star { namespace deployment { class XPackage; } } } }
9 : namespace com { namespace sun { namespace star { namespace deployment { class XPackageTypeInfo; } } } }
10 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
11 : #include "com/sun/star/lang/XComponent.hdl"
12 : namespace com { namespace sun { namespace star { namespace task { class XAbortChannel; } } } }
13 : #include "com/sun/star/ucb/CommandAbortedException.hdl"
14 : #include "com/sun/star/ucb/CommandFailedException.hdl"
15 : namespace com { namespace sun { namespace star { namespace ucb { class XCommandEnvironment; } } } }
16 : #include "com/sun/star/uno/RuntimeException.hdl"
17 : #include "com/sun/star/util/XModifyBroadcaster.hdl"
18 : #include "com/sun/star/uno/Reference.h"
19 : #include "com/sun/star/uno/Sequence.h"
20 : #include "cppu/macros.hxx"
21 : #include "rtl/ustring.hxx"
22 : #include "sal/types.h"
23 :
24 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
25 :
26 : namespace com { namespace sun { namespace star { namespace deployment {
27 :
28 224 : class SAL_NO_VTABLE XPackageManager : public css::lang::XComponent, public css::util::XModifyBroadcaster
29 : {
30 : public:
31 :
32 : // Methods
33 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual ::rtl::OUString SAL_CALL getContext() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
34 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::deployment::XPackageTypeInfo > > SAL_CALL getSupportedPackageTypes() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
35 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual ::com::sun::star::uno::Reference< css::task::XAbortChannel > SAL_CALL createAbortChannel() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
36 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual ::com::sun::star::uno::Reference< css::deployment::XPackage > SAL_CALL addPackage( const ::rtl::OUString& url, const ::com::sun::star::uno::Sequence< css::beans::NamedValue >& properties, const ::rtl::OUString& mediaType, const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) /* throw (css::deployment::DeploymentException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
37 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual ::com::sun::star::uno::Reference< css::deployment::XPackage > SAL_CALL importExtension( const ::com::sun::star::uno::Reference< css::deployment::XPackage >& extension, const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) /* throw (css::deployment::DeploymentException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
38 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual void SAL_CALL removePackage( const ::rtl::OUString& identifier, const ::rtl::OUString& fileName, const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) /* throw (css::deployment::DeploymentException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
39 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual ::com::sun::star::uno::Reference< css::deployment::XPackage > SAL_CALL getDeployedPackage( const ::rtl::OUString& identifier, const ::rtl::OUString& fileName, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) /* throw (css::deployment::DeploymentException, css::ucb::CommandFailedException, css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
40 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::deployment::XPackage > > SAL_CALL getDeployedPackages( const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) /* throw (css::deployment::DeploymentException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
41 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual void SAL_CALL reinstallDeployedPackages( ::sal_Bool force, const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) /* throw (css::deployment::DeploymentException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
42 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual ::sal_Bool SAL_CALL isReadOnly() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
43 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual ::sal_Bool SAL_CALL synchronize( const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) /* throw (css::deployment::DeploymentException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, ::com::sun::star::uno::RuntimeException) */ = 0;
44 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::deployment::XPackage > > SAL_CALL getExtensionsWithUnacceptedLicenses( const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) /* throw (css::deployment::DeploymentException, ::com::sun::star::uno::RuntimeException) */ = 0;
45 : SAL_DEPRECATED_INTERNAL("marked @deprecated in UNOIDL") virtual ::sal_Int32 SAL_CALL checkPrerequisites( const ::com::sun::star::uno::Reference< css::deployment::XPackage >& extension, const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) /* throw (css::deployment::DeploymentException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
46 :
47 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
48 :
49 : protected:
50 224 : ~XPackageManager() throw () {} // avoid warnings about virtual members and non-virtual dtor
51 : };
52 :
53 :
54 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::deployment::XPackageManager const *);
55 : } } } }
56 :
57 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::deployment::XPackageManager > *) SAL_THROW(());
58 :
59 : #endif
|