24#include <condition_variable>
27#include <com/sun/star/beans/NamedValue.hpp>
28#include <com/sun/star/beans/XPropertySet.hpp>
29#include <com/sun/star/task/XInteractionHandler.hpp>
30#include <com/sun/star/uno/XComponentContext.hpp>
32#include <osl/conditn.hxx>
33#include <osl/thread.hxx>
34#include <rtl/instance.hxx>
61 public rtl::StaticWithInit< rtl::Reference< UpdateCheck >, UpdateCheckInitData >
71 void initialize(
const css::uno::Sequence<css::beans::NamedValue>& rValues,
72 const css::uno::Reference<css::uno::XComponentContext>& xContext);
102 virtual void downloadStarted(
const OUString& rLocalFileName, sal_Int64 nFileSize)
override;
120 void pause()
override;
rtl::Reference< UpdateCheck > operator()() const
void enableDownload(bool enable, bool paused=false)
rtl::Reference< UpdateHandler > getUpdateHandler()
void showDialog(bool forceCheck=false)
css::uno::Reference< css::beans::XPropertySet > m_xMenuBarUI
void enableAutoCheck(bool enable)
virtual ~UpdateCheck() override
virtual bool downloadTargetExists(const OUString &rFileName) override
bool shouldShowExtUpdDlg() const
bool m_bHasExtensionUpdate
virtual void downloadFinished(const OUString &rLocalFileName) override
virtual void downloadStarted(const OUString &rLocalFileName, sal_Int64 nFileSize) override
css::uno::Reference< css::task::XInteractionHandler > getInteractionHandler() const
void showReleaseNote(const OUString &rURL) const
bool isDialogShowing() const
void waitForUpdateCheckFinished()
bool hasOfficeUpdate() const
void notifyUpdateCheckFinished()
void initialize(const css::uno::Sequence< css::beans::NamedValue > &rValues, const css::uno::Reference< css::uno::XComponentContext > &xContext)
std::recursive_mutex m_aMutex
void handleMenuBarUI(const rtl::Reference< UpdateHandler > &rUpdateHandler, UpdateState &eState, bool suppressBubble)
void setCheckFailedState()
static UpdateState getUIState(const UpdateInfo &rInfo)
virtual void downloadProgressAt(sal_Int8 nProcent) override
osl::Condition m_aCondition
virtual bool checkDownloadDestination(const OUString &rFile) override
std::condition_variable_any m_updateCheckFinished
void setUpdateInfo(const UpdateInfo &aInfo)
static bool storeReleaseNote(sal_Int8 nNum, const OUString &rURL)
void closeAfterFailure() override
rtl::Reference< UpdateHandler > m_aUpdateHandler
void setHasExtensionUpdates(bool bHasUpdates)
css::uno::Reference< css::uno::XComponentContext > m_xContext
UpdateState m_eUpdateState
virtual void autoCheckIntervalChanged() override
void shutdownThread(bool join)
virtual void autoCheckStatusChanged(bool enabled) override
void showExtensionDialog()
bool m_updateCheckRunning
void setUIState(UpdateState eState, bool suppressBubble=false)
virtual void downloadStalled(const OUString &rErrorMessage) override