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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __com_sun_star_deployment_XUpdateInformationProvider_idl__
21 #define __com_sun_star_deployment_XUpdateInformationProvider_idl__
23 #include
<com
/sun
/star
/uno
/XInterface.idl
>
24 #include
<com
/sun
/star
/uno
/Exception.idl
>
26 module com
{ module sun
{ module star
{ module container
{
27 interface XEnumeration
;
30 module com
{ module sun
{ module star
{ module task
{
31 interface XInteractionHandler
;
34 module com
{ module sun
{ module star
{ module xml
{ module dom
{
38 module com
{ module sun
{ module star
{ module deployment
{
40 /** Objects implementing this interface provide access to the xml root of
41 one or more update information files for a given set of URLs.
45 interface XUpdateInformationProvider
47 /** get update information for a specific extension or all available
48 information from a repository.
51 a repository and its mirrors.
53 the unique identifier of an extension. If it is not empty and
54 the update document is an atom feed, only items whose "term"
55 attribute of the atom:category tag matches extensionId are returned.
58 sequence
< com
::sun
::star
::xml
::dom
::XElement
> getUpdateInformation
(
59 [in] sequence
< string > repositories
,
60 [in] string extensionId
61 ) raises
( com
::sun
::star
::uno
::Exception
);
63 /** interrupts a getUpdateInformation call and let's it return immediately.
67 /** Sets an interaction handler to be used for further operations.
70 A default interaction handler is available as service
71 com::sun::star::task::InteractionHandler.
72 The documentation of this service also contains further
73 information about the interaction handler concept.
76 @see com::sun::star::task::InteractionHandler
79 The interaction handler to be set
81 void setInteractionHandler
( [in] com
::sun
::star
::task
::XInteractionHandler handler
);
83 /** get update information for a specific extension or all available
84 information from a repository.
87 a repository and its mirrors.
89 the unique identifier of an extension. If it is not empty and
90 the update document is an atom feed, only items whose "term"
91 attribute of the atom:category tag matches extensionId are returned.
94 an enumeration of UpdateInformationEntry.
96 com
::sun
::star
::container
::XEnumeration getUpdateInformationEnumeration
(
97 [in] sequence
< string > repositories
,
98 [in] string extensionId
99 ) raises
( com
::sun
::star
::uno
::Exception
);
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */