Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_DEPLOYMENT_XPACKAGE_HDL
2 : #define INCLUDED_COM_SUN_STAR_DEPLOYMENT_XPACKAGE_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/uno/RuntimeException.hdl"
7 : #include "com/sun/star/ucb/CommandAbortedException.hdl"
8 : #include "com/sun/star/beans/Ambiguous.hdl"
9 : namespace com { namespace sun { namespace star { namespace graphic { class XGraphic; } } } }
10 : #include "com/sun/star/deployment/ExtensionRemovedException.hdl"
11 : #include "com/sun/star/beans/Optional.hdl"
12 : #include "com/sun/star/lang/XComponent.hdl"
13 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
14 : namespace com { namespace sun { namespace star { namespace task { class XAbortChannel; } } } }
15 : namespace com { namespace sun { namespace star { namespace deployment { class XPackage; } } } }
16 : #include "com/sun/star/deployment/DeploymentException.hdl"
17 : namespace com { namespace sun { namespace star { namespace deployment { class XPackageTypeInfo; } } } }
18 : namespace com { namespace sun { namespace star { namespace ucb { class XCommandEnvironment; } } } }
19 : #include "com/sun/star/util/XModifyBroadcaster.hdl"
20 : #include "com/sun/star/ucb/CommandFailedException.hdl"
21 : #include "com/sun/star/beans/StringPair.hdl"
22 : #include "com/sun/star/uno/Reference.h"
23 : #include "com/sun/star/uno/Sequence.h"
24 : #include "cppu/macros.hxx"
25 : #include "rtl/ustring.hxx"
26 : #include "sal/types.h"
27 :
28 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
29 :
30 : namespace com { namespace sun { namespace star { namespace deployment {
31 :
32 0 : class SAL_NO_VTABLE XPackage : public css::lang::XComponent, public css::util::XModifyBroadcaster
33 : {
34 : public:
35 :
36 : // Methods
37 : virtual ::com::sun::star::uno::Reference< css::task::XAbortChannel > SAL_CALL createAbortChannel() = 0;
38 : virtual ::sal_Int32 SAL_CALL checkPrerequisites( const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv, ::sal_Bool alreadyInstalled ) = 0;
39 : virtual ::sal_Bool SAL_CALL checkDependencies( const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) = 0;
40 : virtual css::beans::Optional< css::beans::Ambiguous< ::sal_Bool > > SAL_CALL isRegistered( const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) = 0;
41 : virtual void SAL_CALL registerPackage( ::sal_Bool startup, const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) = 0;
42 : virtual void SAL_CALL revokePackage( ::sal_Bool startup, const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) = 0;
43 : virtual ::sal_Bool SAL_CALL isBundle() = 0;
44 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::deployment::XPackage > > SAL_CALL getBundle( const ::com::sun::star::uno::Reference< css::task::XAbortChannel >& xAbortChannel, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) = 0;
45 : virtual ::rtl::OUString SAL_CALL getName() = 0;
46 : virtual css::beans::Optional< ::rtl::OUString > SAL_CALL getIdentifier() = 0;
47 : virtual ::rtl::OUString SAL_CALL getVersion() = 0;
48 : virtual ::rtl::OUString SAL_CALL getURL() = 0;
49 : virtual ::rtl::OUString SAL_CALL getDisplayName() = 0;
50 : virtual ::rtl::OUString SAL_CALL getDescription() = 0;
51 : virtual ::rtl::OUString SAL_CALL getLicenseText() = 0;
52 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getUpdateInformationURLs() = 0;
53 : virtual css::beans::StringPair SAL_CALL getPublisherInfo() = 0;
54 : virtual ::com::sun::star::uno::Reference< css::deployment::XPackageTypeInfo > SAL_CALL getPackageType() = 0;
55 : virtual void SAL_CALL exportTo( const ::rtl::OUString& destFolderURL, const ::rtl::OUString& newTitle, ::sal_Int32 nameClashAction, const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) = 0;
56 : virtual ::com::sun::star::uno::Reference< css::graphic::XGraphic > SAL_CALL getIcon( ::sal_Bool highContrast ) = 0;
57 : virtual ::rtl::OUString SAL_CALL getRepositoryName() = 0;
58 : virtual css::beans::Optional< ::rtl::OUString > SAL_CALL getRegistrationDataURL() = 0;
59 : virtual ::sal_Bool SAL_CALL isRemoved() = 0;
60 :
61 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
62 :
63 : protected:
64 0 : ~XPackage() throw () {} // avoid warnings about virtual members and non-virtual dtor
65 : };
66 :
67 :
68 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::deployment::XPackage const *);
69 : } } } }
70 :
71 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::deployment::XPackage > *) SAL_THROW(());
72 :
73 : #endif
|