LibreOffice Module extensions (master) 1
Functions
updateprotocol.cxx File Reference
#include <config_folders.h>
#include <com/sun/star/xml/xpath/XPathAPI.hpp>
#include <com/sun/star/xml/xpath/XPathException.hpp>
#include "updateprotocol.hxx"
#include "updatecheckconfig.hxx"
#include <com/sun/star/deployment/UpdateInformationEntry.hpp>
#include <com/sun/star/deployment/XPackageInformationProvider.hpp>
#include <rtl/ref.hxx>
#include <rtl/bootstrap.hxx>
#include <osl/diagnose.h>
Include dependency graph for updateprotocol.cxx:

Go to the source code of this file.

Functions

static bool getBootstrapData (uno::Sequence< OUString > &rRepositoryList, OUString &rGitID, OUString &rInstallSetID)
 
bool checkForUpdates (UpdateInfo &o_rUpdateInfo, uno::Reference< uno::XComponentContext > const &rxContext, uno::Reference< task::XInteractionHandler > const &rxInteractionHandler, const uno::Reference< deployment::XUpdateInformationProvider > &rUpdateInfoProvider)
 
bool checkForUpdates (UpdateInfo &o_rUpdateInfo, const uno::Reference< uno::XComponentContext > &rxContext, const uno::Reference< task::XInteractionHandler > &rxInteractionHandler, const uno::Reference< deployment::XUpdateInformationProvider > &rUpdateInfoProvider, std::u16string_view rOS, std::u16string_view rArch, const uno::Sequence< OUString > &rRepositoryList, std::u16string_view rGitID, const OUString &rInstallSetID)
 
bool storeExtensionUpdateInfos (const uno::Reference< uno::XComponentContext > &rxContext, const uno::Sequence< uno::Sequence< OUString > > &rUpdateInfos)
 
bool checkForExtensionUpdates (const uno::Reference< uno::XComponentContext > &rxContext)
 
bool checkForPendingUpdates (const uno::Reference< uno::XComponentContext > &rxContext)
 

Function Documentation

◆ checkForExtensionUpdates()

bool checkForExtensionUpdates ( const uno::Reference< uno::XComponentContext > &  rxContext)

Definition at line 255 of file updateprotocol.cxx.

References storeExtensionUpdateInfos().

◆ checkForPendingUpdates()

bool checkForPendingUpdates ( const uno::Reference< uno::XComponentContext > &  rxContext)

Definition at line 282 of file updateprotocol.cxx.

References UpdateCheckConfig::get(), and i.

Referenced by UpdateCheck::initialize().

◆ checkForUpdates() [1/2]

bool checkForUpdates ( UpdateInfo o_rUpdateInfo,
const uno::Reference< uno::XComponentContext > &  rxContext,
const uno::Reference< task::XInteractionHandler > &  rxInteractionHandler,
const uno::Reference< deployment::XUpdateInformationProvider > &  rUpdateInfoProvider,
std::u16string_view  rOS,
std::u16string_view  rArch,
const uno::Sequence< OUString > &  rRepositoryList,
std::u16string_view  rGitID,
const OUString &  rInstallSetID 
)

◆ checkForUpdates() [2/2]

bool checkForUpdates ( UpdateInfo o_rUpdateInfo,
uno::Reference< uno::XComponentContext > const &  rxContext,
uno::Reference< task::XInteractionHandler > const &  rxInteractionHandler,
const uno::Reference< deployment::XUpdateInformationProvider > &  rUpdateInfoProvider 
)

Definition at line 73 of file updateprotocol.cxx.

References checkForUpdates(), and getBootstrapData().

Referenced by checkForUpdates(), and SAL_IMPLEMENT_MAIN().

◆ getBootstrapData()

static bool getBootstrapData ( uno::Sequence< OUString > &  rRepositoryList,
OUString &  rGitID,
OUString &  rInstallSetID 
)
static

Definition at line 44 of file updateprotocol.cxx.

References SAL_CONFIGFILE.

Referenced by checkForUpdates().

◆ storeExtensionUpdateInfos()

bool storeExtensionUpdateInfos ( const uno::Reference< uno::XComponentContext > &  rxContext,
const uno::Sequence< uno::Sequence< OUString > > &  rUpdateInfos 
)

Definition at line 235 of file updateprotocol.cxx.

References UpdateCheckConfig::get(), and i.

Referenced by checkForExtensionUpdates().