1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dp_dependencies.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_INC_DP_DEPENDENCIES_HXX
32 #define INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_INC_DP_DEPENDENCIES_HXX
34 #include "sal/config.h"
35 #include "com/sun/star/uno/Reference.hxx"
36 #include "com/sun/star/uno/Sequence.hxx"
37 #include "dp_misc_api.hxx"
41 namespace com
{ namespace sun
{ namespace star
{ namespace xml
{ namespace dom
{
44 namespace dp_misc
{ class DescriptionInfoset
; }
45 namespace rtl
{ class OUString
; }
52 namespace Dependencies
{
54 Check for unsatisfied dependencies.
57 the infoset containing the dependencies to check
60 a list of the unsatisfied dependencies from <code>infoset</code> (in no
63 DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
64 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Reference
<
65 ::com::sun::star::xml::dom::XElement
> >
66 check(::dp_misc::DescriptionInfoset
const & infoset
);
69 Obtain the (human-readable) name of a dependency.
72 a dependency represented as a non-null XML element
75 the name of the dependency; will never be empty, as a localized
76 “unknown” is substituted for an empty/missing name
78 DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString
name(
79 ::com::sun::star::uno::Reference
<
80 ::com::sun::star::xml::dom::XElement
> const & dependency
);
83 Obtain the (human-readable) error message of a failed dependency.
86 a dependency represented as a non-null XML element
89 the name of the dependency; will never be empty, as a localized
90 “unknown” is substituted for an empty/missing name
92 DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString
getErrorText(
93 ::com::sun::star::uno::Reference
<
94 ::com::sun::star::xml::dom::XElement
> const & dependency
);