LibreOffice Module desktop (master)  1
Classes | Public Member Functions | Static Public Member Functions | Private Types | 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, const 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 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
 

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 Types

typedef std::pair< int, introw_col
 

Private Member Functions

 UpdateDialog (UpdateDialog const &)=delete
 
UpdateDialogoperator= (UpdateDialog const &)=delete
 
sal_uInt16 insertItem (UpdateDialog::Index *pIndex, bool bEnableCheckBox)
 
void addAdditional (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::ToggleButton &, void)
 
 DECL_LINK (okHandler, weld::Button &, void)
 
 DECL_LINK (closeHandler, weld::Button &, void)
 
 DECL_LINK (entryToggled, const row_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 53 of file dp_gui_updatedialog.hxx.

Member Typedef Documentation

typedef std::pair<int, int> dp_gui::UpdateDialog::row_col
private

Definition at line 130 of file dp_gui_updatedialog.hxx.

Constructor & Destructor Documentation

dp_gui::UpdateDialog::UpdateDialog ( css::uno::Reference< css::uno::XComponentContext > const &  context,
weld::Window parent,
const 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 ( )
overridevirtual

Definition at line 510 of file dp_gui_updatedialog.cxx.

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

Member Function Documentation

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

Definition at line 553 of file dp_gui_updatedialog.cxx.

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

Definition at line 566 of file dp_gui_updatedialog.cxx.

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

Definition at line 611 of file dp_gui_updatedialog.cxx.

void UpdateDialog::clearDescription ( )
private

Definition at line 747 of file dp_gui_updatedialog.cxx.

void UpdateDialog::createNotifyJob ( bool  bPrepareOnly,
css::uno::Sequence< css::uno::Sequence< OUString > > const &  rItemList 
)
static
dp_gui::UpdateDialog::DECL_LINK ( selectionHandler  ,
weld::TreeView ,
void   
)
private
dp_gui::UpdateDialog::DECL_LINK ( allHandler  ,
weld::ToggleButton ,
void   
)
private
dp_gui::UpdateDialog::DECL_LINK ( okHandler  ,
weld::Button ,
void   
)
private
dp_gui::UpdateDialog::DECL_LINK ( closeHandler  ,
weld::Button ,
void   
)
private
dp_gui::UpdateDialog::DECL_LINK ( entryToggled  ,
const row_col ,
void   
)
private
void UpdateDialog::enableOk ( )
private

Definition at line 630 of file dp_gui_updatedialog.cxx.

References i, and TRISTATE_TRUE.

void UpdateDialog::getIgnoredUpdates ( )
private

Definition at line 811 of file dp_gui_updatedialog.cxx.

References args, getPropertyValue(), i, IGNORED_UPDATES, and PROPERTY_VERSION.

void UpdateDialog::initDescription ( )
private

Definition at line 739 of file dp_gui_updatedialog.cxx.

sal_uInt16 UpdateDialog::insertItem ( UpdateDialog::Index pIndex,
bool  bEnableCheckBox 
)
private
bool UpdateDialog::isIgnoredUpdate ( UpdateDialog::Index pIndex)
private
void UpdateDialog::notifyMenubar ( bool  bPrepareOnly,
bool  bRecheckOnly 
)
UpdateDialog& dp_gui::UpdateDialog::operator= ( UpdateDialog const &  )
privatedelete
short UpdateDialog::run ( )
overridevirtual

Reimplemented from weld::DialogController.

Definition at line 514 of file dp_gui_updatedialog.cxx.

bool dp_gui::UpdateDialog::showDescription ( css::uno::Reference< css::deployment::XPackage > const &  aExtension)
private
bool UpdateDialog::showDescription ( std::pair< OUString, OUString > const &  pairPublisher,
OUString const &  sReleaseNotes 
)
private

Definition at line 774 of file dp_gui_updatedialog.cxx.

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

Definition at line 801 of file dp_gui_updatedialog.cxx.

Friends And Related Function Documentation

friend class CheckListBox
friend

Definition at line 100 of file dp_gui_updatedialog.hxx.

friend struct Index
friend

Definition at line 95 of file dp_gui_updatedialog.hxx.

friend class Thread
friend

Definition at line 97 of file dp_gui_updatedialog.hxx.

Member Data Documentation

OUString dp_gui::UpdateDialog::m_browserbased
private

Definition at line 142 of file dp_gui_updatedialog.hxx.

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

Definition at line 133 of file dp_gui_updatedialog.hxx.

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

Definition at line 146 of file dp_gui_updatedialog.hxx.

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

Definition at line 145 of file dp_gui_updatedialog.hxx.

OUString dp_gui::UpdateDialog::m_failure
private

Definition at line 136 of file dp_gui_updatedialog.hxx.

OUString dp_gui::UpdateDialog::m_ignoredUpdate
private

Definition at line 144 of file dp_gui_updatedialog.hxx.

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

Definition at line 148 of file dp_gui_updatedialog.hxx.

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

Definition at line 149 of file dp_gui_updatedialog.hxx.

OUString dp_gui::UpdateDialog::m_noDependency
private

Definition at line 140 of file dp_gui_updatedialog.hxx.

OUString dp_gui::UpdateDialog::m_noDependencyCurVer
private

Definition at line 141 of file dp_gui_updatedialog.hxx.

OUString dp_gui::UpdateDialog::m_noDescription
private

Definition at line 138 of file dp_gui_updatedialog.hxx.

OUString dp_gui::UpdateDialog::m_noInstall
private

Definition at line 139 of file dp_gui_updatedialog.hxx.

OUString dp_gui::UpdateDialog::m_noInstallable
private

Definition at line 135 of file dp_gui_updatedialog.hxx.

OUString dp_gui::UpdateDialog::m_none
private

Definition at line 134 of file dp_gui_updatedialog.hxx.

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

Definition at line 147 of file dp_gui_updatedialog.hxx.

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

Definition at line 151 of file dp_gui_updatedialog.hxx.

OUString dp_gui::UpdateDialog::m_unknownError
private

Definition at line 137 of file dp_gui_updatedialog.hxx.

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

Definition at line 150 of file dp_gui_updatedialog.hxx.

OUString dp_gui::UpdateDialog::m_version
private

Definition at line 143 of file dp_gui_updatedialog.hxx.

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

Definition at line 158 of file dp_gui_updatedialog.hxx.

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

Definition at line 154 of file dp_gui_updatedialog.hxx.

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

Definition at line 166 of file dp_gui_updatedialog.hxx.

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

Definition at line 159 of file dp_gui_updatedialog.hxx.

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

Definition at line 164 of file dp_gui_updatedialog.hxx.

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

Definition at line 152 of file dp_gui_updatedialog.hxx.

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

Definition at line 167 of file dp_gui_updatedialog.hxx.

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

Definition at line 165 of file dp_gui_updatedialog.hxx.

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

Definition at line 160 of file dp_gui_updatedialog.hxx.

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

Definition at line 161 of file dp_gui_updatedialog.hxx.

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

Definition at line 162 of file dp_gui_updatedialog.hxx.

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

Definition at line 163 of file dp_gui_updatedialog.hxx.

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

Definition at line 155 of file dp_gui_updatedialog.hxx.

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

Definition at line 156 of file dp_gui_updatedialog.hxx.

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

Definition at line 157 of file dp_gui_updatedialog.hxx.


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