LibreOffice Module desktop (master) 1
dp_gui_extensioncmdqueue.hxx
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 http://mozilla.org/MPL/2.0/.
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 http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <sal/config.h>
23
24#include <com/sun/star/uno/Reference.hxx>
25#include <rtl/ref.hxx>
26
27#include <vector>
28
29#include "dp_gui_updatedata.hxx"
30
32
33namespace com::sun::star {
34 namespace task { class XInteractionRequest; }
35 namespace uno { class XComponentContext; }
36}
37
38namespace dp_gui {
39
40class DialogHelper;
41class TheExtensionManager;
42
58
59public:
64 TheExtensionManager *pManager,
65 const css::uno::Reference< css::uno::XComponentContext > & rContext);
66
68
69 void addExtension( const OUString &rExtensionURL,
70 const OUString &rRepository,
71 const bool bWarnUser );
72 void removeExtension( const css::uno::Reference< css::deployment::XPackage > &rPackage );
73 void enableExtension( const css::uno::Reference< css::deployment::XPackage > &rPackage,
74 const bool bEnable );
75 void checkForUpdates( std::vector< css::uno::Reference< css::deployment::XPackage > > && vList );
76 void acceptLicense( const css::uno::Reference< css::deployment::XPackage > &rPackage );
77 static void syncRepositories( const css::uno::Reference< css::uno::XComponentContext > & xContext );
78
79 bool isBusy();
80private:
83
84 class Thread;
85
87};
88
89void handleInteractionRequest( const css::uno::Reference< css::uno::XComponentContext > & xContext,
90 const css::uno::Reference< css::task::XInteractionRequest > & xRequest );
91
92}
93
94/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Manages installing of extensions in the GUI mode.
static void syncRepositories(const css::uno::Reference< css::uno::XComponentContext > &xContext)
void enableExtension(const css::uno::Reference< css::deployment::XPackage > &rPackage, const bool bEnable)
void acceptLicense(const css::uno::Reference< css::deployment::XPackage > &rPackage)
void addExtension(const OUString &rExtensionURL, const OUString &rRepository, const bool bWarnUser)
ExtensionCmdQueue & operator=(ExtensionCmdQueue const &)=delete
void checkForUpdates(std::vector< css::uno::Reference< css::deployment::XPackage > > &&vList)
ExtensionCmdQueue(DialogHelper *pDialogHelper, TheExtensionManager *pManager, const css::uno::Reference< css::uno::XComponentContext > &rContext)
Create an instance.
rtl::Reference< Thread > m_thread
ExtensionCmdQueue(ExtensionCmdQueue const &)=delete
void removeExtension(const css::uno::Reference< css::deployment::XPackage > &rPackage)
static uno::Reference< css::uno::XComponentContext > xContext
Definition: init.cxx:2642
Definition: dp_gui.h:22
void handleInteractionRequest(const uno::Reference< uno::XComponentContext > &xContext, const uno::Reference< task::XInteractionRequest > &xRequest)