xref: /AOO41X/main/desktop/source/deployment/inc/dp_dependencies.hxx (revision 0a1e2f0e76583da2559a4bad1f4bfca3ca810f57)
1*0a1e2f0eSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*0a1e2f0eSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*0a1e2f0eSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*0a1e2f0eSAndrew Rist  * distributed with this work for additional information
6*0a1e2f0eSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*0a1e2f0eSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*0a1e2f0eSAndrew Rist  * "License"); you may not use this file except in compliance
9*0a1e2f0eSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*0a1e2f0eSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*0a1e2f0eSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*0a1e2f0eSAndrew Rist  * software distributed under the License is distributed on an
15*0a1e2f0eSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*0a1e2f0eSAndrew Rist  * KIND, either express or implied.  See the License for the
17*0a1e2f0eSAndrew Rist  * specific language governing permissions and limitations
18*0a1e2f0eSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*0a1e2f0eSAndrew Rist  *************************************************************/
21*0a1e2f0eSAndrew Rist 
22*0a1e2f0eSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_INC_DP_DEPENDENCIES_HXX
25cdf0e10cSrcweir #define INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_INC_DP_DEPENDENCIES_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "sal/config.h"
28cdf0e10cSrcweir #include "com/sun/star/uno/Reference.hxx"
29cdf0e10cSrcweir #include "com/sun/star/uno/Sequence.hxx"
30cdf0e10cSrcweir #include "dp_misc_api.hxx"
31cdf0e10cSrcweir 
32cdf0e10cSrcweir /// @HTML
33cdf0e10cSrcweir 
34cdf0e10cSrcweir namespace com { namespace sun { namespace star { namespace xml { namespace dom {
35cdf0e10cSrcweir     class XElement;
36cdf0e10cSrcweir } } } } }
37cdf0e10cSrcweir namespace dp_misc { class DescriptionInfoset; }
38cdf0e10cSrcweir namespace rtl { class OUString; }
39cdf0e10cSrcweir 
40cdf0e10cSrcweir namespace dp_misc {
41cdf0e10cSrcweir 
42cdf0e10cSrcweir /**
43cdf0e10cSrcweir    Dependency handling.
44cdf0e10cSrcweir */
45cdf0e10cSrcweir namespace Dependencies {
46cdf0e10cSrcweir     /**
47cdf0e10cSrcweir        Check for unsatisfied dependencies.
48cdf0e10cSrcweir 
49cdf0e10cSrcweir        @param infoset
50cdf0e10cSrcweir        the infoset containing the dependencies to check
51cdf0e10cSrcweir 
52cdf0e10cSrcweir        @return
53cdf0e10cSrcweir        a list of the unsatisfied dependencies from <code>infoset</code> (in no
54cdf0e10cSrcweir        specific order)
55cdf0e10cSrcweir     */
56cdf0e10cSrcweir     DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
57cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference<
58cdf0e10cSrcweir         ::com::sun::star::xml::dom::XElement > >
59cdf0e10cSrcweir     check(::dp_misc::DescriptionInfoset const & infoset);
60cdf0e10cSrcweir 
61cdf0e10cSrcweir     /**
62cdf0e10cSrcweir        Obtain the (human-readable) error message of a failed dependency.
63cdf0e10cSrcweir 
64cdf0e10cSrcweir        @param dependency
65cdf0e10cSrcweir        a dependency represented as a non-null XML element
66cdf0e10cSrcweir 
67cdf0e10cSrcweir        @return
68cdf0e10cSrcweir        the name of the dependency; will never be empty, as a localized
69cdf0e10cSrcweir        &ldquo;unknown&rdquo; is substituted for an empty/missing name
70cdf0e10cSrcweir      */
71cdf0e10cSrcweir     DESKTOP_DEPLOYMENTMISC_DLLPUBLIC ::rtl::OUString getErrorText(
72cdf0e10cSrcweir         ::com::sun::star::uno::Reference<
73cdf0e10cSrcweir             ::com::sun::star::xml::dom::XElement > const & dependency);
74cdf0e10cSrcweir }
75cdf0e10cSrcweir 
76cdf0e10cSrcweir }
77cdf0e10cSrcweir 
78cdf0e10cSrcweir #endif
79