bump product version to 5.0.4.1
[LibreOffice.git] / extensions / source / update / check / updateprotocol.hxx
blob4d407ec10413ef728f59505b1b74f3a1cac66678
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 #ifndef INCLUDED_EXTENSIONS_SOURCE_UPDATE_CHECK_UPDATEPROTOCOL_HXX
21 #define INCLUDED_EXTENSIONS_SOURCE_UPDATE_CHECK_UPDATEPROTOCOL_HXX
23 #include <com/sun/star/uno/XComponentContext.hpp>
24 #include <com/sun/star/task/XInteractionHandler.hpp>
25 #include <com/sun/star/deployment/UpdateInformationProvider.hpp>
27 #include <vector>
28 #include "updateinfo.hxx"
30 // Returns 'true' if successfully connected to the update server
31 bool checkForUpdates(
32 UpdateInfo& o_rUpdateInfo,
33 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext,
34 const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& rxInteractionHandler,
35 const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XUpdateInformationProvider >& rxProvider
38 // The same as above, that does not read the info from bootstrap
39 SAL_DLLPUBLIC_EXPORT bool
40 checkForUpdates(
41 UpdateInfo& o_rUpdateInfo,
42 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & rxContext,
43 const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler > & rxInteractionHandler,
44 const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XUpdateInformationProvider >& rUpdateInfoProvider,
45 const OUString &rOS,
46 const OUString &rArch,
47 const ::com::sun::star::uno::Sequence< OUString > &rRepositoryList,
48 const OUString &rGitID,
49 const OUString &rInstallID
52 // Returns 'true' if there are updates for any extension
53 bool checkForExtensionUpdates(
54 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext
57 bool checkForPendingUpdates(
58 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext
61 bool storeExtensionUpdateInfos(
62 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext,
63 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< OUString > > &rUpdateInfos
66 #endif // INCLUDED_EXTENSIONS_SOURCE_UPDATE_CHECK_UPDATEPROTOCOL_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */