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#include <com/sun/star/uno/XInterface.idl>
25#include <com/sun/star/uno/Exception.idl>
26
27module com { module sun { module star { module deployment {
28
29/** Objects implementing this interface provide an URL to the root of
30    an installed package.
31
32    @since OpenOffice 2.3
33*/
34published interface XPackageInformationProvider
35{
36    /** get Package information for a specific extension.
37
38        @param extensionId
39               the unique identifier of an extension. The service looks for
40               an installed package with the given id and returns the URL to
41               the root of the package. If the service can not find a matching
42               package, an empty string will be returned.
43    */
44    string getPackageLocation( [in] string extensionId );
45
46    /** check if there are updates available for an extension.
47
48        @param extensionId
49               the unique identifier of an extension. When the extensionId is empty,
50               the service looks checks all installed extensions for a newer version,
51               otherwise the service looks for updates for an installed package with
52               the given id.
53       If the service finds an update for an extension, a sequence containing the name
54            and the version will be returned for each extension which has an update.
55       If the service can not find a matching package, an empty sequence is returned.
56    */
57    sequence< sequence< string > > isUpdateAvailable( [in] string extensionId );
58
59    /** returns a list of all installed extension with their version.
60    */
61    sequence< sequence< string > > getExtensionList();
62};
63
64}; }; }; };
65
66