LibreOffice Module desktop (master) 1
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
dp_gui::UpdateInstallDialog Class Reference

The modal “Download and Installation” dialog. More...

#include <dp_gui_updateinstalldialog.hxx>

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

Classes

class  Thread
 

Public Member Functions

 UpdateInstallDialog (weld::Window *parent, std::vector< UpdateData > &aVecUpdateData, css::uno::Reference< css::uno::XComponentContext > const &xCtx)
 Create an instance. More...
 
virtual ~UpdateInstallDialog () override
 
virtual short run () 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
 

Private Types

enum  INSTALL_ERROR {
  ERROR_DOWNLOAD ,
  ERROR_INSTALLATION ,
  ERROR_LICENSE_DECLINED
}
 

Private Member Functions

 UpdateInstallDialog (UpdateInstallDialog const &)=delete
 
UpdateInstallDialogoperator= (UpdateInstallDialog const &)=delete
 
 DECL_LINK (cancelHandler, weld::Button &, void)
 
void updateDone ()
 
void setError (INSTALL_ERROR err, std::u16string_view sExtension, std::u16string_view exceptionMessage)
 
void setError (std::u16string_view exceptionMessage)
 
const css::uno::Reference< css::deployment::XExtensionManager > & getExtensionManager () const
 

Private Attributes

rtl::Reference< Threadm_thread
 
css::uno::Reference< css::deployment::XExtensionManager > m_xExtensionManager
 
bool m_bError
 
bool m_bNoEntry
 
OUString m_sInstalling
 
OUString m_sFinished
 
OUString m_sNoErrors
 
OUString m_sErrorDownload
 
OUString m_sErrorInstallation
 
OUString m_sErrorLicenseDeclined
 
OUString m_sNoInstall
 
OUString m_sThisErrorOccurred
 
std::unique_ptr< weld::Labelm_xFt_action
 
std::unique_ptr< weld::ProgressBarm_xStatusbar
 
std::unique_ptr< weld::Labelm_xFt_extension_name
 
std::unique_ptr< weld::TextViewm_xMle_info
 
std::unique_ptr< weld::Buttonm_xHelp
 
std::unique_ptr< weld::Buttonm_xOk
 
std::unique_ptr< weld::Buttonm_xCancel
 

Friends

class Thread
 
class UpdateCommandEnv
 

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)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

The modal “Download and Installation” dialog.

Definition at line 46 of file dp_gui_updateinstalldialog.hxx.

Member Enumeration Documentation

◆ INSTALL_ERROR

Enumerator
ERROR_DOWNLOAD 
ERROR_INSTALLATION 
ERROR_LICENSE_DECLINED 

Definition at line 75 of file dp_gui_updateinstalldialog.hxx.

Constructor & Destructor Documentation

◆ UpdateInstallDialog() [1/2]

dp_gui::UpdateInstallDialog::UpdateInstallDialog ( weld::Window parent,
std::vector< UpdateData > &  aVecUpdateData,
css::uno::Reference< css::uno::XComponentContext > const &  xCtx 
)

Create an instance.

Parameters
parentthe parent window, may be null

◆ ~UpdateInstallDialog()

dp_gui::UpdateInstallDialog::~UpdateInstallDialog ( )
overridevirtual

Definition at line 213 of file dp_gui_updateinstalldialog.cxx.

◆ UpdateInstallDialog() [2/2]

dp_gui::UpdateInstallDialog::UpdateInstallDialog ( UpdateInstallDialog const &  )
privatedelete

Member Function Documentation

◆ DECL_LINK()

dp_gui::UpdateInstallDialog::DECL_LINK ( cancelHandler  ,
weld::Button ,
void   
)
private

◆ getExtensionManager()

const css::uno::Reference< css::deployment::XExtensionManager > & dp_gui::UpdateInstallDialog::getExtensionManager ( ) const
inlineprivate

Definition at line 83 of file dp_gui_updateinstalldialog.hxx.

References m_xExtensionManager.

◆ operator=()

UpdateInstallDialog & dp_gui::UpdateInstallDialog::operator= ( UpdateInstallDialog const &  )
privatedelete

◆ run()

short dp_gui::UpdateInstallDialog::run ( )
overridevirtual

Reimplemented from weld::DialogController.

Definition at line 217 of file dp_gui_updateinstalldialog.cxx.

References m_thread.

Referenced by dp_gui::ExtensionCmdQueue::Thread::_checkForUpdates().

◆ setError() [1/2]

void dp_gui::UpdateInstallDialog::setError ( INSTALL_ERROR  err,
std::u16string_view  sExtension,
std::u16string_view  exceptionMessage 
)
private

◆ setError() [2/2]

void dp_gui::UpdateInstallDialog::setError ( std::u16string_view  exceptionMessage)
private

Definition at line 277 of file dp_gui_updateinstalldialog.cxx.

References m_bError, and m_xMle_info.

◆ updateDone()

void dp_gui::UpdateInstallDialog::updateDone ( )
private

Definition at line 226 of file dp_gui_updateinstalldialog.cxx.

References m_bError, m_sNoErrors, m_xCancel, m_xMle_info, and m_xOk.

Friends And Related Function Documentation

◆ Thread

friend class Thread
friend

Definition at line 67 of file dp_gui_updateinstalldialog.hxx.

◆ UpdateCommandEnv

friend class UpdateCommandEnv
friend

Definition at line 68 of file dp_gui_updateinstalldialog.hxx.

Member Data Documentation

◆ m_bError

bool dp_gui::UpdateInstallDialog::m_bError
private

Definition at line 89 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError(), and updateDone().

◆ m_bNoEntry

bool dp_gui::UpdateInstallDialog::m_bNoEntry
private

Definition at line 90 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

◆ m_sErrorDownload

OUString dp_gui::UpdateInstallDialog::m_sErrorDownload
private

Definition at line 95 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

◆ m_sErrorInstallation

OUString dp_gui::UpdateInstallDialog::m_sErrorInstallation
private

Definition at line 96 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

◆ m_sErrorLicenseDeclined

OUString dp_gui::UpdateInstallDialog::m_sErrorLicenseDeclined
private

Definition at line 97 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

◆ m_sFinished

OUString dp_gui::UpdateInstallDialog::m_sFinished
private

Definition at line 93 of file dp_gui_updateinstalldialog.hxx.

◆ m_sInstalling

OUString dp_gui::UpdateInstallDialog::m_sInstalling
private

Definition at line 92 of file dp_gui_updateinstalldialog.hxx.

◆ m_sNoErrors

OUString dp_gui::UpdateInstallDialog::m_sNoErrors
private

Definition at line 94 of file dp_gui_updateinstalldialog.hxx.

Referenced by updateDone().

◆ m_sNoInstall

OUString dp_gui::UpdateInstallDialog::m_sNoInstall
private

Definition at line 98 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

◆ m_sThisErrorOccurred

OUString dp_gui::UpdateInstallDialog::m_sThisErrorOccurred
private

Definition at line 99 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

◆ m_thread

rtl::Reference< Thread > dp_gui::UpdateInstallDialog::m_thread
private

Definition at line 86 of file dp_gui_updateinstalldialog.hxx.

Referenced by run().

◆ m_xCancel

std::unique_ptr<weld::Button> dp_gui::UpdateInstallDialog::m_xCancel
private

Definition at line 107 of file dp_gui_updateinstalldialog.hxx.

Referenced by updateDone().

◆ m_xExtensionManager

css::uno::Reference< css::deployment::XExtensionManager > dp_gui::UpdateInstallDialog::m_xExtensionManager
private

Definition at line 87 of file dp_gui_updateinstalldialog.hxx.

Referenced by getExtensionManager().

◆ m_xFt_action

std::unique_ptr<weld::Label> dp_gui::UpdateInstallDialog::m_xFt_action
private

Definition at line 101 of file dp_gui_updateinstalldialog.hxx.

◆ m_xFt_extension_name

std::unique_ptr<weld::Label> dp_gui::UpdateInstallDialog::m_xFt_extension_name
private

Definition at line 103 of file dp_gui_updateinstalldialog.hxx.

◆ m_xHelp

std::unique_ptr<weld::Button> dp_gui::UpdateInstallDialog::m_xHelp
private

Definition at line 105 of file dp_gui_updateinstalldialog.hxx.

◆ m_xMle_info

std::unique_ptr<weld::TextView> dp_gui::UpdateInstallDialog::m_xMle_info
private

Definition at line 104 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError(), and updateDone().

◆ m_xOk

std::unique_ptr<weld::Button> dp_gui::UpdateInstallDialog::m_xOk
private

Definition at line 106 of file dp_gui_updateinstalldialog.hxx.

Referenced by updateDone().

◆ m_xStatusbar

std::unique_ptr<weld::ProgressBar> dp_gui::UpdateInstallDialog::m_xStatusbar
private

Definition at line 102 of file dp_gui_updateinstalldialog.hxx.


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