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

The modal “Check for Updates” dialog. More...

#include <dp_gui_updatedialog.hxx>

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

Classes

struct  DisabledUpdate
 
struct  IgnoredUpdate
 
struct  Index
 
struct  SpecificError
 
class  Thread
 

Public Member Functions

 UpdateDialog (css::uno::Reference< css::uno::XComponentContext > const &context, weld::Window *parent, std::vector< css::uno::Reference< css::deployment::XPackage > > &&vExtensionList, std::vector< dp_gui::UpdateData > *updateData)
 Create an instance. More...
 
virtual ~UpdateDialog () override
 
virtual short run () override
 
void notifyMenubar (bool bPrepareOnly, bool bRecheckOnly)
 
- 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
 

Static Public Member Functions

static void createNotifyJob (bool bPrepareOnly, css::uno::Sequence< css::uno::Sequence< OUString > > const &rItemList)
 
- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 

Private Member Functions

 UpdateDialog (UpdateDialog const &)=delete
 
UpdateDialogoperator= (UpdateDialog const &)=delete
 
void insertItem (const UpdateDialog::Index *pIndex, bool bEnableCheckBox)
 
void addAdditional (const UpdateDialog::Index *pIndex, bool bEnableCheckBox)
 
bool isIgnoredUpdate (UpdateDialog::Index *pIndex)
 
void addEnabledUpdate (OUString const &name, dp_gui::UpdateData const &data)
 
void addDisabledUpdate (UpdateDialog::DisabledUpdate const &data)
 
void addSpecificError (UpdateDialog::SpecificError const &data)
 
void checkingDone ()
 
void enableOk ()
 
void getIgnoredUpdates ()
 
void initDescription ()
 
void clearDescription ()
 
bool showDescription (css::uno::Reference< css::deployment::XPackage > const &aExtension)
 
bool showDescription (std::pair< OUString, OUString > const &pairPublisher, OUString const &sReleaseNotes)
 
bool showDescription (css::uno::Reference< css::xml::dom::XNode > const &aUpdateInfo)
 
bool showDescription (const OUString &rDescription)
 
 DECL_LINK (selectionHandler, weld::TreeView &, void)
 
 DECL_LINK (allHandler, weld::Toggleable &, void)
 
 DECL_LINK (okHandler, weld::Button &, void)
 
 DECL_LINK (closeHandler, weld::Button &, void)
 
 DECL_LINK (entryToggled, const weld::TreeView::iter_col &, void)
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_context
 
OUString m_none
 
OUString m_noInstallable
 
OUString m_failure
 
OUString m_unknownError
 
OUString m_noDescription
 
OUString m_noInstall
 
OUString m_noDependency
 
OUString m_noDependencyCurVer
 
OUString m_browserbased
 
OUString m_version
 
OUString m_ignoredUpdate
 
std::vector< dp_gui::UpdateDatam_enabledUpdates
 
std::vector< UpdateDialog::DisabledUpdatem_disabledUpdates
 
std::vector< UpdateDialog::SpecificErrorm_specificErrors
 
std::vector< std::unique_ptr< UpdateDialog::IgnoredUpdate > > m_ignoredUpdates
 
std::vector< std::unique_ptr< Index > > m_ListboxEntries
 
std::vector< dp_gui::UpdateData > & m_updateData
 
rtl::Reference< UpdateDialog::Threadm_thread
 
css::uno::Reference< css::deployment::XExtensionManager > m_xExtensionManager
 
std::unique_ptr< weld::Labelm_xChecking
 
std::unique_ptr< weld::Spinnerm_xThrobber
 
std::unique_ptr< weld::Labelm_xUpdate
 
std::unique_ptr< weld::TreeViewm_xUpdates
 
std::unique_ptr< weld::CheckButtonm_xAll
 
std::unique_ptr< weld::Labelm_xDescription
 
std::unique_ptr< weld::Labelm_xPublisherLabel
 
std::unique_ptr< weld::LinkButtonm_xPublisherLink
 
std::unique_ptr< weld::Labelm_xReleaseNotesLabel
 
std::unique_ptr< weld::LinkButtonm_xReleaseNotesLink
 
std::unique_ptr< weld::TextViewm_xDescriptions
 
std::unique_ptr< weld::Buttonm_xOk
 
std::unique_ptr< weld::Buttonm_xClose
 
std::unique_ptr< weld::Buttonm_xHelp
 

Friends

struct Index
 
class Thread
 
class CheckListBox
 

Additional Inherited Members

- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

The modal “Check for Updates” dialog.

Definition at line 51 of file dp_gui_updatedialog.hxx.

Constructor & Destructor Documentation

◆ UpdateDialog() [1/2]

dp_gui::UpdateDialog::UpdateDialog ( css::uno::Reference< css::uno::XComponentContext > const &  context,
weld::Window parent,
std::vector< css::uno::Reference< css::deployment::XPackage > > &&  vExtensionList,
std::vector< dp_gui::UpdateData > *  updateData 
)

Create an instance.

Exactly one of selectedPackages and packageManagers must be non-null.

Parameters
contexta non-null component context
parentthe parent window, may be null
vExtensionListcheck for updates for the contained extensions. There must only be one extension with a particular identifier. If one extension is installed in several repositories, then the one with the highest version must be used, because it contains the latest known update information.

◆ ~UpdateDialog()

UpdateDialog::~UpdateDialog ( )
overridevirtual

Definition at line 477 of file dp_gui_updatedialog.cxx.

◆ UpdateDialog() [2/2]

dp_gui::UpdateDialog::UpdateDialog ( UpdateDialog const &  )
privatedelete

Member Function Documentation

◆ addAdditional()

void UpdateDialog::addAdditional ( const UpdateDialog::Index pIndex,
bool  bEnableCheckBox 
)
private

Definition at line 508 of file dp_gui_updatedialog.cxx.

References index.

◆ addDisabledUpdate()

void UpdateDialog::addDisabledUpdate ( UpdateDialog::DisabledUpdate const &  data)
private

Definition at line 543 of file dp_gui_updatedialog.cxx.

References dp_gui::UpdateDialog::DisabledUpdate::name, and nIndex.

◆ addEnabledUpdate()

void UpdateDialog::addEnabledUpdate ( OUString const &  name,
dp_gui::UpdateData const &  data 
)
private

Definition at line 521 of file dp_gui_updatedialog.cxx.

References name, and nIndex.

◆ addSpecificError()

void UpdateDialog::addSpecificError ( UpdateDialog::SpecificError const &  data)
private

Definition at line 555 of file dp_gui_updatedialog.cxx.

References dp_gui::UpdateDialog::SpecificError::name, and nIndex.

◆ checkingDone()

void UpdateDialog::checkingDone ( )
private

Definition at line 566 of file dp_gui_updatedialog.cxx.

◆ clearDescription()

void UpdateDialog::clearDescription ( )
private

Definition at line 695 of file dp_gui_updatedialog.cxx.

◆ createNotifyJob()

void UpdateDialog::createNotifyJob ( bool  bPrepareOnly,
css::uno::Sequence< css::uno::Sequence< OUString > > const &  rItemList 
)
static

◆ DECL_LINK() [1/5]

dp_gui::UpdateDialog::DECL_LINK ( allHandler  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/5]

dp_gui::UpdateDialog::DECL_LINK ( closeHandler  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/5]

dp_gui::UpdateDialog::DECL_LINK ( entryToggled  ,
const weld::TreeView::iter_col ,
void   
)
private

◆ DECL_LINK() [4/5]

dp_gui::UpdateDialog::DECL_LINK ( okHandler  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [5/5]

dp_gui::UpdateDialog::DECL_LINK ( selectionHandler  ,
weld::TreeView ,
void   
)
private

◆ enableOk()

void UpdateDialog::enableOk ( )
private

Definition at line 585 of file dp_gui_updatedialog.cxx.

References i, nCount, and TRISTATE_TRUE.

◆ getIgnoredUpdates()

void UpdateDialog::getIgnoredUpdates ( )
private

Definition at line 759 of file dp_gui_updatedialog.cxx.

References args, pData, and PROPERTY_VERSION.

◆ initDescription()

void UpdateDialog::initDescription ( )
private

Definition at line 687 of file dp_gui_updatedialog.cxx.

◆ insertItem()

void UpdateDialog::insertItem ( const UpdateDialog::Index pIndex,
bool  bEnableCheckBox 
)
private

◆ isIgnoredUpdate()

bool UpdateDialog::isIgnoredUpdate ( UpdateDialog::Index pIndex)
private

◆ notifyMenubar()

void UpdateDialog::notifyMenubar ( bool  bPrepareOnly,
bool  bRecheckOnly 
)

◆ operator=()

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

◆ run()

short UpdateDialog::run ( )
overridevirtual

Reimplemented from weld::DialogController.

Definition at line 481 of file dp_gui_updatedialog.cxx.

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

◆ showDescription() [1/4]

bool UpdateDialog::showDescription ( const OUString &  rDescription)
private

Definition at line 749 of file dp_gui_updatedialog.cxx.

◆ showDescription() [2/4]

bool dp_gui::UpdateDialog::showDescription ( css::uno::Reference< css::deployment::XPackage > const &  aExtension)
private

◆ showDescription() [3/4]

bool dp_gui::UpdateDialog::showDescription ( css::uno::Reference< css::xml::dom::XNode > const &  aUpdateInfo)
private

◆ showDescription() [4/4]

bool UpdateDialog::showDescription ( std::pair< OUString, OUString > const &  pairPublisher,
OUString const &  sReleaseNotes 
)
private

Definition at line 722 of file dp_gui_updatedialog.cxx.

Friends And Related Function Documentation

◆ CheckListBox

friend class CheckListBox
friend

Definition at line 97 of file dp_gui_updatedialog.hxx.

◆ Index

friend struct Index
friend

Definition at line 93 of file dp_gui_updatedialog.hxx.

◆ Thread

friend class Thread
friend

Definition at line 95 of file dp_gui_updatedialog.hxx.

Member Data Documentation

◆ m_browserbased

OUString dp_gui::UpdateDialog::m_browserbased
private

Definition at line 138 of file dp_gui_updatedialog.hxx.

◆ m_context

css::uno::Reference< css::uno::XComponentContext > dp_gui::UpdateDialog::m_context
private

Definition at line 129 of file dp_gui_updatedialog.hxx.

◆ m_disabledUpdates

std::vector< UpdateDialog::DisabledUpdate > dp_gui::UpdateDialog::m_disabledUpdates
private

Definition at line 142 of file dp_gui_updatedialog.hxx.

◆ m_enabledUpdates

std::vector< dp_gui::UpdateData > dp_gui::UpdateDialog::m_enabledUpdates
private

Definition at line 141 of file dp_gui_updatedialog.hxx.

◆ m_failure

OUString dp_gui::UpdateDialog::m_failure
private

Definition at line 132 of file dp_gui_updatedialog.hxx.

◆ m_ignoredUpdate

OUString dp_gui::UpdateDialog::m_ignoredUpdate
private

Definition at line 140 of file dp_gui_updatedialog.hxx.

◆ m_ignoredUpdates

std::vector< std::unique_ptr<UpdateDialog::IgnoredUpdate> > dp_gui::UpdateDialog::m_ignoredUpdates
private

Definition at line 144 of file dp_gui_updatedialog.hxx.

◆ m_ListboxEntries

std::vector< std::unique_ptr<Index> > dp_gui::UpdateDialog::m_ListboxEntries
private

Definition at line 145 of file dp_gui_updatedialog.hxx.

◆ m_noDependency

OUString dp_gui::UpdateDialog::m_noDependency
private

Definition at line 136 of file dp_gui_updatedialog.hxx.

◆ m_noDependencyCurVer

OUString dp_gui::UpdateDialog::m_noDependencyCurVer
private

Definition at line 137 of file dp_gui_updatedialog.hxx.

◆ m_noDescription

OUString dp_gui::UpdateDialog::m_noDescription
private

Definition at line 134 of file dp_gui_updatedialog.hxx.

◆ m_noInstall

OUString dp_gui::UpdateDialog::m_noInstall
private

Definition at line 135 of file dp_gui_updatedialog.hxx.

◆ m_noInstallable

OUString dp_gui::UpdateDialog::m_noInstallable
private

Definition at line 131 of file dp_gui_updatedialog.hxx.

◆ m_none

OUString dp_gui::UpdateDialog::m_none
private

Definition at line 130 of file dp_gui_updatedialog.hxx.

◆ m_specificErrors

std::vector< UpdateDialog::SpecificError > dp_gui::UpdateDialog::m_specificErrors
private

Definition at line 143 of file dp_gui_updatedialog.hxx.

◆ m_thread

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

Definition at line 147 of file dp_gui_updatedialog.hxx.

◆ m_unknownError

OUString dp_gui::UpdateDialog::m_unknownError
private

Definition at line 133 of file dp_gui_updatedialog.hxx.

◆ m_updateData

std::vector< dp_gui::UpdateData >& dp_gui::UpdateDialog::m_updateData
private

Definition at line 146 of file dp_gui_updatedialog.hxx.

◆ m_version

OUString dp_gui::UpdateDialog::m_version
private

Definition at line 139 of file dp_gui_updatedialog.hxx.

◆ m_xAll

std::unique_ptr<weld::CheckButton> dp_gui::UpdateDialog::m_xAll
private

Definition at line 154 of file dp_gui_updatedialog.hxx.

◆ m_xChecking

std::unique_ptr<weld::Label> dp_gui::UpdateDialog::m_xChecking
private

Definition at line 150 of file dp_gui_updatedialog.hxx.

◆ m_xClose

std::unique_ptr<weld::Button> dp_gui::UpdateDialog::m_xClose
private

Definition at line 162 of file dp_gui_updatedialog.hxx.

◆ m_xDescription

std::unique_ptr<weld::Label> dp_gui::UpdateDialog::m_xDescription
private

Definition at line 155 of file dp_gui_updatedialog.hxx.

◆ m_xDescriptions

std::unique_ptr<weld::TextView> dp_gui::UpdateDialog::m_xDescriptions
private

Definition at line 160 of file dp_gui_updatedialog.hxx.

◆ m_xExtensionManager

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

Definition at line 148 of file dp_gui_updatedialog.hxx.

◆ m_xHelp

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

Definition at line 163 of file dp_gui_updatedialog.hxx.

◆ m_xOk

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

Definition at line 161 of file dp_gui_updatedialog.hxx.

◆ m_xPublisherLabel

std::unique_ptr<weld::Label> dp_gui::UpdateDialog::m_xPublisherLabel
private

Definition at line 156 of file dp_gui_updatedialog.hxx.

◆ m_xPublisherLink

std::unique_ptr<weld::LinkButton> dp_gui::UpdateDialog::m_xPublisherLink
private

Definition at line 157 of file dp_gui_updatedialog.hxx.

◆ m_xReleaseNotesLabel

std::unique_ptr<weld::Label> dp_gui::UpdateDialog::m_xReleaseNotesLabel
private

Definition at line 158 of file dp_gui_updatedialog.hxx.

◆ m_xReleaseNotesLink

std::unique_ptr<weld::LinkButton> dp_gui::UpdateDialog::m_xReleaseNotesLink
private

Definition at line 159 of file dp_gui_updatedialog.hxx.

◆ m_xThrobber

std::unique_ptr<weld::Spinner> dp_gui::UpdateDialog::m_xThrobber
private

Definition at line 151 of file dp_gui_updatedialog.hxx.

◆ m_xUpdate

std::unique_ptr<weld::Label> dp_gui::UpdateDialog::m_xUpdate
private

Definition at line 152 of file dp_gui_updatedialog.hxx.

◆ m_xUpdates

std::unique_ptr<weld::TreeView> dp_gui::UpdateDialog::m_xUpdates
private

Definition at line 153 of file dp_gui_updatedialog.hxx.


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