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

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 99 of file dp_dependencies.cxx.

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

Referenced by dp_info::PackageInformationProvider::isUpdateAvailable(), and dp_gui::UpdateDialog::Thread::prepareUpdateData().

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 152 of file dp_dependencies.cxx.

References DpResId().

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