LibreOffice 7.2 SDK API Reference
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
20 #ifndef _com_sun_star_deployment_XPackageManager_idl
21 #define _com_sun_star_deployment_XPackageManager_idl
35 module com { module sun { module star { module deployment {
66 interface XPackageManager
67 {
83  string getContext();
90  sequence<XPackageTypeInfo> getSupportedPackageTypes();
120  XPackage addPackage( [in] string url,
121  [in] sequence<com::sun::star::beans::NamedValue> properties,
122  [in] string mediaType,
123  [in] com::sun::star::task::XAbortChannel xAbortChannel,
125  raises (DeploymentException,
147  [in] com::sun::star::task::XAbortChannel xAbortChannel,
149  raises (DeploymentException,
166  void removePackage( [in] string identifier,
167  [in] string fileName,
168  [in] com::sun::star::task::XAbortChannel xAbortChannel,
170  raises (DeploymentException,
187  [in] string identifier,
188  [in] string fileName,
190  raises (DeploymentException,
204  sequence<XPackage> getDeployedPackages(
205  [in] com::sun::star::task::XAbortChannel xAbortChannel,
207  raises (DeploymentException,
228  [in] boolean force,
229  [in] com::sun::star::task::XAbortChannel xAbortChannel,
231  raises (DeploymentException,
249  boolean isReadOnly();
268  raises (DeploymentException,
288  raises (DeploymentException);
299  [in] XPackage extension,
300  [in] com::sun::star::task::XAbortChannel xAbortChannel,
302  raises (DeploymentException,
307 };
309 }; }; }; };
311 #endif
313 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
A DeploymentException reflects a deployment error.
Definition: DeploymentException.idl:33
This exception is thrown to indicate that a method has passed an illegal or inappropriate argument.
Definition: IllegalArgumentException.idl:31
This exception is thrown to indicate that a command was aborted.
Definition: CommandAbortedException.idl:34
This exception is thrown if an exception situation occurred during the processing of a command and an...
Definition: CommandFailedException.idl:40
This exception is thrown to indicate that the creation of a UCB content failed.
Definition: ContentCreationException.idl:34
The XPackageManager interface is used to add or remove packages to a specific repository.
Definition: XPackageManager.idl:67
XPackage getDeployedPackage([in] string identifier, [in] string fileName, [in] com::sun::star::ucb::XCommandEnvironment xCmdEnv)
gets a deployed package.
XPackage importExtension([in] XPackage extension, [in] com::sun::star::task::XAbortChannel xAbortChannel, [in] com::sun::star::ucb::XCommandEnvironment xCmdEnv)
adds an extension.
long checkPrerequisites([in] XPackage extension, [in] com::sun::star::task::XAbortChannel xAbortChannel, [in] com::sun::star::ucb::XCommandEnvironment xCmdEnv)
checks if the extension can be used.
XPackage addPackage([in] string url, [in] sequence< com::sun::star::beans::NamedValue > properties, [in] string mediaType, [in] com::sun::star::task::XAbortChannel xAbortChannel, [in] com::sun::star::ucb::XCommandEnvironment xCmdEnv)
adds a UNO package.
sequence< XPackage > getDeployedPackages([in] com::sun::star::task::XAbortChannel xAbortChannel, [in] com::sun::star::ucb::XCommandEnvironment xCmdEnv)
gets all currently deployed packages.
void removePackage([in] string identifier, [in] string fileName, [in] com::sun::star::task::XAbortChannel xAbortChannel, [in] com::sun::star::ucb::XCommandEnvironment xCmdEnv)
removes a UNO package.
sequence< XPackage > getExtensionsWithUnacceptedLicenses([in] com::sun::star::ucb::XCommandEnvironment xCmdEnv)
returns all extensions which are currently not in use because the user did not accept the license.
void reinstallDeployedPackages([in] boolean force, [in] com::sun::star::task::XAbortChannel xAbortChannel, [in] com::sun::star::ucb::XCommandEnvironment xCmdEnv)
Expert feature: erases the underlying registry cache and reinstalls all previously added packages.
boolean isReadOnly()
indicates that this implementation cannot be used for tasks which require write access to the locatio...
sequence< XPackageTypeInfo > getSupportedPackageTypes()
gets the supported XPackageTypeInfos.
com::sun::star::task::XAbortChannel createAbortChannel()
creates a command channel to be used to asynchronously abort a command.
boolean synchronize([in] com::sun::star::task::XAbortChannel xAbortChannel, [in] com::sun::star::ucb::XCommandEnvironment xCmdEnv)
synchronizes the extension database with the contents of the extensions folder.
string getContext()
returns the underlying deployment context, that is, the name of the repository.
Objects of this interface reflect a bound package and are issued by a PackageRegistryBackend.
Definition: XPackage.idl:47
allows to explicitly free resources and break cyclic references.
Definition: XComponent.idl:43
Use this interface to abort a command asynchronously.
Definition: XAbortChannel.idl:31
defines the environment for a command.
Definition: XCommandEnvironment.idl:36
broadcasts each modification made on the date data of the object which supports this interface.
Definition: XModifyBroadcaster.idl:38
Definition: Ambiguous.idl:22