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/beans/Ambiguous.hdl"
7 : #include "com/sun/star/beans/Optional.hdl"
8 : #include "com/sun/star/beans/StringPair.hdl"
9 : #include "com/sun/star/deployment/DeploymentException.hdl"
10 : #include "com/sun/star/deployment/ExtensionRemovedException.hdl"
11 : namespace com { namespace sun { namespace star { namespace deployment { class XPackage; } } } }
12 : namespace com { namespace sun { namespace star { namespace deployment { class XPackageTypeInfo; } } } }
13 : namespace com { namespace sun { namespace star { namespace graphic { class XGraphic; } } } }
14 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
15 : #include "com/sun/star/lang/XComponent.hdl"
16 : namespace com { namespace sun { namespace star { namespace task { class XAbortChannel; } } } }
17 : #include "com/sun/star/ucb/CommandAbortedException.hdl"
18 : #include "com/sun/star/ucb/CommandFailedException.hdl"
19 : namespace com { namespace sun { namespace star { namespace ucb { class XCommandEnvironment; } } } }
20 : #include "com/sun/star/uno/RuntimeException.hdl"
21 : #include "com/sun/star/util/XModifyBroadcaster.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 417 : 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() /* throw (::com::sun::star::uno::RuntimeException) */ = 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 ) /* throw (css::deployment::DeploymentException, css::deployment::ExtensionRemovedException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, ::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual ::sal_Bool SAL_CALL checkDependencies( const ::com::sun::star::uno::Reference< css::ucb::XCommandEnvironment >& xCmdEnv ) /* throw (css::deployment::DeploymentException, css::deployment::ExtensionRemovedException, css::ucb::CommandFailedException, ::com::sun::star::uno::RuntimeException) */ = 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 ) /* throw (css::deployment::DeploymentException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, ::com::sun::star::uno::RuntimeException) */ = 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 ) /* throw (css::deployment::DeploymentException, css::deployment::ExtensionRemovedException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 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 ) /* throw (css::deployment::DeploymentException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual ::sal_Bool SAL_CALL isBundle() /* throw (::com::sun::star::uno::RuntimeException) */ = 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 ) /* throw (css::deployment::DeploymentException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual ::rtl::OUString SAL_CALL getName() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
46 : virtual css::beans::Optional< ::rtl::OUString > SAL_CALL getIdentifier() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
47 : virtual ::rtl::OUString SAL_CALL getVersion() /* throw (css::deployment::ExtensionRemovedException, ::com::sun::star::uno::RuntimeException) */ = 0;
48 : virtual ::rtl::OUString SAL_CALL getURL() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
49 : virtual ::rtl::OUString SAL_CALL getDisplayName() /* throw (css::deployment::ExtensionRemovedException, ::com::sun::star::uno::RuntimeException) */ = 0;
50 : virtual ::rtl::OUString SAL_CALL getDescription() /* throw (css::deployment::ExtensionRemovedException, ::com::sun::star::uno::RuntimeException) */ = 0;
51 : virtual ::rtl::OUString SAL_CALL getLicenseText() /* throw (css::deployment::ExtensionRemovedException, ::com::sun::star::uno::RuntimeException) */ = 0;
52 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getUpdateInformationURLs() /* throw (css::deployment::ExtensionRemovedException, ::com::sun::star::uno::RuntimeException) */ = 0;
53 : virtual css::beans::StringPair SAL_CALL getPublisherInfo() /* throw (css::deployment::ExtensionRemovedException, ::com::sun::star::uno::RuntimeException) */ = 0;
54 : virtual ::com::sun::star::uno::Reference< css::deployment::XPackageTypeInfo > SAL_CALL getPackageType() /* throw (::com::sun::star::uno::RuntimeException) */ = 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 ) /* throw (css::deployment::ExtensionRemovedException, css::ucb::CommandFailedException, css::ucb::CommandAbortedException, ::com::sun::star::uno::RuntimeException) */ = 0;
56 : virtual ::com::sun::star::uno::Reference< css::graphic::XGraphic > SAL_CALL getIcon( ::sal_Bool highContrast ) /* throw (css::deployment::ExtensionRemovedException, ::com::sun::star::uno::RuntimeException) */ = 0;
57 : virtual ::rtl::OUString SAL_CALL getRepositoryName() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
58 : virtual css::beans::Optional< ::rtl::OUString > SAL_CALL getRegistrationDataURL() /* throw (css::deployment::ExtensionRemovedException, ::com::sun::star::uno::RuntimeException) */ = 0;
59 : virtual ::sal_Bool SAL_CALL isRemoved() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
60 :
61 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
62 :
63 : protected:
64 417 : ~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
|