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 OString &rDialogId)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString 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, OUString const &sExtension, OUString const &exceptionMessage)
 
void setError (OUString const &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 47 of file dp_gui_updateinstalldialog.hxx.

Member Enumeration Documentation

Enumerator
ERROR_DOWNLOAD 
ERROR_INSTALLATION 
ERROR_LICENSE_DECLINED 

Definition at line 76 of file dp_gui_updateinstalldialog.hxx.

Constructor & Destructor Documentation

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
dp_gui::UpdateInstallDialog::~UpdateInstallDialog ( )
overridevirtual

Definition at line 225 of file dp_gui_updateinstalldialog.cxx.

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

Member Function Documentation

dp_gui::UpdateInstallDialog::DECL_LINK ( cancelHandler  ,
weld::Button ,
void   
)
private
const css::uno::Reference< css::deployment::XExtensionManager >& dp_gui::UpdateInstallDialog::getExtensionManager ( ) const
inlineprivate

Definition at line 84 of file dp_gui_updateinstalldialog.hxx.

References m_xExtensionManager.

UpdateInstallDialog& dp_gui::UpdateInstallDialog::operator= ( UpdateInstallDialog const &  )
privatedelete
short dp_gui::UpdateInstallDialog::run ( )
overridevirtual

Reimplemented from weld::DialogController.

Definition at line 229 of file dp_gui_updateinstalldialog.cxx.

References m_thread.

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

void dp_gui::UpdateInstallDialog::setError ( INSTALL_ERROR  err,
OUString const &  sExtension,
OUString const &  exceptionMessage 
)
private
void dp_gui::UpdateInstallDialog::setError ( OUString const &  exceptionMessage)
private

Definition at line 289 of file dp_gui_updateinstalldialog.cxx.

References m_bError, and m_xMle_info.

void dp_gui::UpdateInstallDialog::updateDone ( )
private

Definition at line 238 of file dp_gui_updateinstalldialog.cxx.

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

Friends And Related Function Documentation

friend class Thread
friend

Definition at line 67 of file dp_gui_updateinstalldialog.hxx.

friend class UpdateCommandEnv
friend

Definition at line 69 of file dp_gui_updateinstalldialog.hxx.

Member Data Documentation

bool dp_gui::UpdateInstallDialog::m_bError
private

Definition at line 90 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError(), and updateDone().

bool dp_gui::UpdateInstallDialog::m_bNoEntry
private

Definition at line 91 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

OUString dp_gui::UpdateInstallDialog::m_sErrorDownload
private

Definition at line 96 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

OUString dp_gui::UpdateInstallDialog::m_sErrorInstallation
private

Definition at line 97 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

OUString dp_gui::UpdateInstallDialog::m_sErrorLicenseDeclined
private

Definition at line 98 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

OUString dp_gui::UpdateInstallDialog::m_sFinished
private

Definition at line 94 of file dp_gui_updateinstalldialog.hxx.

OUString dp_gui::UpdateInstallDialog::m_sInstalling
private

Definition at line 93 of file dp_gui_updateinstalldialog.hxx.

OUString dp_gui::UpdateInstallDialog::m_sNoErrors
private

Definition at line 95 of file dp_gui_updateinstalldialog.hxx.

Referenced by updateDone().

OUString dp_gui::UpdateInstallDialog::m_sNoInstall
private

Definition at line 99 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

OUString dp_gui::UpdateInstallDialog::m_sThisErrorOccurred
private

Definition at line 100 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError().

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

Definition at line 87 of file dp_gui_updateinstalldialog.hxx.

Referenced by run().

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

Definition at line 108 of file dp_gui_updateinstalldialog.hxx.

Referenced by updateDone().

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

Definition at line 88 of file dp_gui_updateinstalldialog.hxx.

Referenced by getExtensionManager().

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

Definition at line 102 of file dp_gui_updateinstalldialog.hxx.

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

Definition at line 104 of file dp_gui_updateinstalldialog.hxx.

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

Definition at line 106 of file dp_gui_updateinstalldialog.hxx.

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

Definition at line 105 of file dp_gui_updateinstalldialog.hxx.

Referenced by setError(), and updateDone().

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

Definition at line 107 of file dp_gui_updateinstalldialog.hxx.

Referenced by updateDone().

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

Definition at line 103 of file dp_gui_updateinstalldialog.hxx.


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