LibreOffice Module desktop (master) 1
Functions
dp_misc::Dependencies Namespace Reference

Dependency handling. More...

Functions

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC css::uno::Sequence< css::uno::Reference< css::xml::dom::XElement > > check (dp_misc::DescriptionInfoset const &infoset)
 Check for unsatisfied dependencies. More...
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString getErrorText (css::uno::Reference< css::xml::dom::XElement > const &dependency)
 Obtain the (human-readable) error message of a failed dependency. More...
 

Detailed Description

Dependency handling.

Function Documentation

◆ check()

css::uno::Sequence< css::uno::Reference< css::xml::dom::XElement > > dp_misc::Dependencies::check ( dp_misc::DescriptionInfoset const &  infoset)

Check for unsatisfied dependencies.

Parameters
infosetthe infoset containing the dependencies to check
Returns
a list of the unsatisfied dependencies from infoset (in no specific order)

Definition at line 101 of file dp_dependencies.cxx.

References dp_misc::DescriptionInfoset::getDependencies(), i, and n.

Referenced by dp_gui::UpdateDialog::Thread::prepareUpdateData().

◆ getErrorText()

OUString dp_misc::Dependencies::getErrorText ( css::uno::Reference< css::xml::dom::XElement > const &  dependency)

Obtain the (human-readable) error message of a failed dependency.

Parameters
dependencya dependency represented as a non-null XML element
Returns
the name of the dependency; will never be empty, as a localized “unknown” is substituted for an empty/missing name

Definition at line 158 of file dp_dependencies.cxx.

References DpResId().

Referenced by dp_gui::Entry_Impl::checkDependencies(), and dp_gui::UpdateDialog::Thread::prepareUpdateData().