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 module com
{ module sun
{ module star
{ module container
{
21 interface XEnumeration
;
24 module com
{ module sun
{ module star
{ module task
{
25 interface XInteractionHandler
;
28 module com
{ module sun
{ module star
{ module xml
{ module dom
{
32 module com
{ module sun
{ module star
{ module deployment
{
34 /** Objects implementing this interface provide access to the xml root of
35 one or more update information files for a given set of URLs.
39 interface XUpdateInformationProvider
41 /** get update information for a specific extension or all available
42 information from a repository.
45 a repository and its mirrors.
47 the unique identifier of an extension. If it is not empty and
48 the update document is an atom feed, only items whose "term"
49 attribute of the atom:category tag matches extensionId are returned.
52 sequence
< com
::sun
::star
::xml
::dom
::XElement
> getUpdateInformation
(
53 [in] sequence
< string > repositories
,
54 [in] string extensionId
55 ) raises
( com
::sun
::star
::uno
::Exception
);
57 /** interrupts a getUpdateInformation call and let's it return immediately.
61 /** Sets an interaction handler to be used for further operations.
64 A default interaction handler is available as service
65 com::sun::star::task::InteractionHandler.
66 The documentation of this service also contains further
67 information about the interaction handler concept.
70 @see com::sun::star::task::InteractionHandler
73 The interaction handler to be set
75 void setInteractionHandler
( [in] com
::sun
::star
::task
::XInteractionHandler handler
);
77 /** get update information for a specific extension or all available
78 information from a repository.
81 a repository and its mirrors.
83 the unique identifier of an extension. If it is not empty and
84 the update document is an atom feed, only items whose "term"
85 attribute of the atom:category tag matches extensionId are returned.
88 an enumeration of UpdateInformationEntry.
90 com
::sun
::star
::container
::XEnumeration getUpdateInformationEnumeration
(
91 [in] sequence
< string > repositories
,
92 [in] string extensionId
93 ) raises
( com
::sun
::star
::uno
::Exception
);
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */