LibreOffice Module desktop (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
dp_gui::UpdateRequiredDialog Class Reference

#include <dp_gui_dialog2.hxx>

Inheritance diagram for dp_gui::UpdateRequiredDialog:
[legend]
Collaboration diagram for dp_gui::UpdateRequiredDialog:
[legend]

Public Member Functions

 UpdateRequiredDialog (weld::Window *pParent, TheExtensionManager *pManager)
 
virtual ~UpdateRequiredDialog () override
 
virtual short run () override
 
virtual void showProgress (bool bStart) override
 
virtual void updateProgress (const OUString &rText, const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel) override
 
virtual void updateProgress (const tools::Long nProgress) override
 
virtual void updatePackageInfo (const css::uno::Reference< css::deployment::XPackage > &xPackage) override
 
virtual void addPackageToList (const css::uno::Reference< css::deployment::XPackage > &, bool bLicenseMissing=false) override
 
virtual void prepareChecking () override
 
virtual void checkEntries () override
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 
- Public Member Functions inherited from dp_gui::DialogHelper
 DialogHelper (const css::uno::Reference< css::uno::XComponentContext > &, weld::Window *pWindow)
 
virtual ~DialogHelper ()
 
void openWebBrowser (const OUString &rURL, const OUString &rTitle)
 
weld::WindowgetFrameWeld () const
 
void PostUserEvent (const Link< void *, void > &rLink, void *pCaller)
 
void clearEventID ()
 
virtual void showProgress (bool bStart)=0
 
virtual void updateProgress (const OUString &rText, const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel)=0
 
virtual void updateProgress (const tools::Long nProgress)=0
 
virtual void updatePackageInfo (const css::uno::Reference< css::deployment::XPackage > &xPackage)=0
 
virtual void addPackageToList (const css::uno::Reference< css::deployment::XPackage > &xPackage, bool bLicenseMissing=false)=0
 
virtual void prepareChecking ()=0
 
virtual void checkEntries ()=0
 
bool continueOnSharedExtension (const css::uno::Reference< css::deployment::XPackage > &, weld::Widget *pParent, TranslateId pResID, bool &bHadWarning)
 
void incBusy ()
 
void decBusy ()
 
bool isBusy () const
 
bool installExtensionWarn (std::u16string_view rExtensionURL)
 
bool installForAllUsers (bool &bInstallForAll)
 

Private Member Functions

 DECL_LINK (HandleUpdateBtn, weld::Button &, void)
 
 DECL_LINK (HandleCloseBtn, weld::Button &, void)
 
 DECL_LINK (HandleCancelBtn, weld::Button &, void)
 
 DECL_LINK (TimeOutHdl, Timer *, void)
 
 DECL_LINK (startProgress, void *, void)
 
bool hasActiveEntries ()
 
void disableAllEntries ()
 

Static Private Member Functions

static bool isEnabled (const css::uno::Reference< css::deployment::XPackage > &xPackage)
 
static bool checkDependencies (const css::uno::Reference< css::deployment::XPackage > &xPackage)
 

Private Attributes

const OUString m_sCloseText
 
OUString m_sProgressText
 
std::mutex m_aMutex
 
bool m_bHasProgress
 
bool m_bProgressChanged
 
bool m_bStartProgress
 
bool m_bStopProgress
 
bool m_bHasLockedEntries
 
tools::Long m_nProgress
 
Idle m_aIdle
 
TheExtensionManagerm_pManager
 
css::uno::Reference< css::task::XAbortChannel > m_xAbortChannel
 
std::unique_ptr< ExtensionBox_Implm_xExtensionBox
 
std::unique_ptr< weld::CustomWeldm_xExtensionBoxWnd
 
std::unique_ptr< weld::Labelm_xUpdateNeeded
 
std::unique_ptr< weld::Buttonm_xUpdateBtn
 
std::unique_ptr< weld::Buttonm_xCloseBtn
 
std::unique_ptr< weld::Buttonm_xCancelBtn
 
std::unique_ptr< weld::Labelm_xProgressText
 
std::unique_ptr< weld::ProgressBarm_xProgressBar
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Static Public Member Functions inherited from dp_gui::DialogHelper
static bool IsSharedPkgMgr (const css::uno::Reference< css::deployment::XPackage > &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 182 of file dp_gui_dialog2.hxx.

Constructor & Destructor Documentation

◆ UpdateRequiredDialog()

dp_gui::UpdateRequiredDialog::UpdateRequiredDialog ( weld::Window pParent,
TheExtensionManager pManager 
)

◆ ~UpdateRequiredDialog()

dp_gui::UpdateRequiredDialog::~UpdateRequiredDialog ( )
overridevirtual

Definition at line 1027 of file dp_gui_dialog2.cxx.

References m_aIdle, and Task::Stop().

Member Function Documentation

◆ addPackageToList()

void dp_gui::UpdateRequiredDialog::addPackageToList ( const css::uno::Reference< css::deployment::XPackage > &  ,
bool  bLicenseMissing = false 
)
overridevirtual

◆ checkDependencies()

bool dp_gui::UpdateRequiredDialog::checkDependencies ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)
staticprivate

Definition at line 1292 of file dp_gui_dialog2.cxx.

Referenced by addPackageToList(), hasActiveEntries(), and updatePackageInfo().

◆ checkEntries()

void dp_gui::UpdateRequiredDialog::checkEntries ( )
overridevirtual

Implements dp_gui::DialogHelper.

Definition at line 1052 of file dp_gui_dialog2.cxx.

References hasActiveEntries(), m_sCloseText, m_xCloseBtn, and m_xExtensionBox.

◆ DECL_LINK() [1/5]

dp_gui::UpdateRequiredDialog::DECL_LINK ( HandleCancelBtn  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/5]

dp_gui::UpdateRequiredDialog::DECL_LINK ( HandleCloseBtn  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/5]

dp_gui::UpdateRequiredDialog::DECL_LINK ( HandleUpdateBtn  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/5]

dp_gui::UpdateRequiredDialog::DECL_LINK ( startProgress  ,
void *  ,
void   
)
private

◆ DECL_LINK() [5/5]

dp_gui::UpdateRequiredDialog::DECL_LINK ( TimeOutHdl  ,
Timer ,
void   
)
private

◆ disableAllEntries()

void dp_gui::UpdateRequiredDialog::disableAllEntries ( )
private

◆ hasActiveEntries()

bool dp_gui::UpdateRequiredDialog::hasActiveEntries ( )
private

◆ isEnabled()

bool dp_gui::UpdateRequiredDialog::isEnabled ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)
staticprivate

Definition at line 1265 of file dp_gui_dialog2.cxx.

References option, and TOOLS_WARN_EXCEPTION.

Referenced by hasActiveEntries(), and updatePackageInfo().

◆ prepareChecking()

void dp_gui::UpdateRequiredDialog::prepareChecking ( )
overridevirtual

Implements dp_gui::DialogHelper.

Definition at line 1046 of file dp_gui_dialog2.cxx.

References m_xExtensionBox.

◆ run()

short dp_gui::UpdateRequiredDialog::run ( )
overridevirtual

◆ showProgress()

void dp_gui::UpdateRequiredDialog::showProgress ( bool  bStart)
overridevirtual

◆ updatePackageInfo()

void dp_gui::UpdateRequiredDialog::updatePackageInfo ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)
overridevirtual

◆ updateProgress() [1/2]

virtual void dp_gui::UpdateRequiredDialog::updateProgress ( const OUString &  rText,
const css::uno::Reference< css::task::XAbortChannel > &  xAbortChannel 
)
overridevirtual

Implements dp_gui::DialogHelper.

◆ updateProgress() [2/2]

void dp_gui::UpdateRequiredDialog::updateProgress ( const tools::Long  nProgress)
overridevirtual

Implements dp_gui::DialogHelper.

Definition at line 1131 of file dp_gui_dialog2.cxx.

References m_aIdle, m_aMutex, m_nProgress, and Idle::Start().

Member Data Documentation

◆ m_aIdle

Idle dp_gui::UpdateRequiredDialog::m_aIdle
private

◆ m_aMutex

std::mutex dp_gui::UpdateRequiredDialog::m_aMutex
private

◆ m_bHasLockedEntries

bool dp_gui::UpdateRequiredDialog::m_bHasLockedEntries
private

Definition at line 192 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), and run().

◆ m_bHasProgress

bool dp_gui::UpdateRequiredDialog::m_bHasProgress
private

Definition at line 188 of file dp_gui_dialog2.hxx.

◆ m_bProgressChanged

bool dp_gui::UpdateRequiredDialog::m_bProgressChanged
private

Definition at line 189 of file dp_gui_dialog2.hxx.

◆ m_bStartProgress

bool dp_gui::UpdateRequiredDialog::m_bStartProgress
private

Definition at line 190 of file dp_gui_dialog2.hxx.

Referenced by showProgress().

◆ m_bStopProgress

bool dp_gui::UpdateRequiredDialog::m_bStopProgress
private

Definition at line 191 of file dp_gui_dialog2.hxx.

Referenced by showProgress().

◆ m_nProgress

tools::Long dp_gui::UpdateRequiredDialog::m_nProgress
private

Definition at line 193 of file dp_gui_dialog2.hxx.

Referenced by showProgress(), and updateProgress().

◆ m_pManager

TheExtensionManager* dp_gui::UpdateRequiredDialog::m_pManager
private

Definition at line 195 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), and disableAllEntries().

◆ m_sCloseText

const OUString dp_gui::UpdateRequiredDialog::m_sCloseText
private

Definition at line 185 of file dp_gui_dialog2.hxx.

Referenced by checkEntries(), disableAllEntries(), and updatePackageInfo().

◆ m_sProgressText

OUString dp_gui::UpdateRequiredDialog::m_sProgressText
private

Definition at line 186 of file dp_gui_dialog2.hxx.

◆ m_xAbortChannel

css::uno::Reference< css::task::XAbortChannel > dp_gui::UpdateRequiredDialog::m_xAbortChannel
private

Definition at line 197 of file dp_gui_dialog2.hxx.

◆ m_xCancelBtn

std::unique_ptr<weld::Button> dp_gui::UpdateRequiredDialog::m_xCancelBtn
private

Definition at line 204 of file dp_gui_dialog2.hxx.

Referenced by UpdateRequiredDialog().

◆ m_xCloseBtn

std::unique_ptr<weld::Button> dp_gui::UpdateRequiredDialog::m_xCloseBtn
private

◆ m_xExtensionBox

std::unique_ptr<ExtensionBox_Impl> dp_gui::UpdateRequiredDialog::m_xExtensionBox
private

◆ m_xExtensionBoxWnd

std::unique_ptr<weld::CustomWeld> dp_gui::UpdateRequiredDialog::m_xExtensionBoxWnd
private

Definition at line 200 of file dp_gui_dialog2.hxx.

◆ m_xProgressBar

std::unique_ptr<weld::ProgressBar> dp_gui::UpdateRequiredDialog::m_xProgressBar
private

Definition at line 206 of file dp_gui_dialog2.hxx.

Referenced by UpdateRequiredDialog().

◆ m_xProgressText

std::unique_ptr<weld::Label> dp_gui::UpdateRequiredDialog::m_xProgressText
private

Definition at line 205 of file dp_gui_dialog2.hxx.

◆ m_xUpdateBtn

std::unique_ptr<weld::Button> dp_gui::UpdateRequiredDialog::m_xUpdateBtn
private

Definition at line 202 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), run(), and UpdateRequiredDialog().

◆ m_xUpdateNeeded

std::unique_ptr<weld::Label> dp_gui::UpdateRequiredDialog::m_xUpdateNeeded
private

Definition at line 201 of file dp_gui_dialog2.hxx.

Referenced by run(), and UpdateRequiredDialog().


The documentation for this class was generated from the following files: