1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24
25#include <com/sun/star/uno/XInterface.idl>
26#include <com/sun/star/uno/Exception.idl>
27
28module com { module sun { module star { module deployment {
29
30/** Objects implementing this interface provide an URL to the root of
31    an installed package.
32
33    @since OpenOffice 2.3
34*/
35published interface XPackageInformationProvider
36{
37    /** get Package information for a specific extension.
38
39        @param extensionId
40               the unique identifier of an extension. The service looks for
41               an installed package with the given id and returns the URL to
42               the root of the package. If the service can not find a matching
43               package, an emty string will be returned.
44    */
45    string getPackageLocation( [in] string extensionId );
46
47    /** check if there are updates available for an extention.
48
49        @param extensionId
50               the unique identifier of an extension. When the extensionId is empty,
51               the service looks checks all installed extensions for a newer version,
52               otherwise the service looks for updates for an installed package with
53               the given id.
54       If the service finds an update for an extension, a sequence containing the name
55            and the version will be returned for each extension which has an update.
56       If the service can not find a matching package, an empty sequence is returned.
57    */
58    sequence< sequence< string > > isUpdateAvailable( [in] string extensionId );
59
60    /** returns a list of all installed extention with their version.
61    */
62    sequence< sequence< string > > getExtensionList();
63};
64
65}; }; }; };
66
67