xref: /AOO41X/main/stoc/source/registry_tdprovider/methoddescription.hxx (revision 1c4c525fc257ee1d0c01dbc843c3faad74aa66e9)
1*1c4c525fSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*1c4c525fSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*1c4c525fSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*1c4c525fSAndrew Rist  * distributed with this work for additional information
6*1c4c525fSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*1c4c525fSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*1c4c525fSAndrew Rist  * "License"); you may not use this file except in compliance
9*1c4c525fSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*1c4c525fSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*1c4c525fSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*1c4c525fSAndrew Rist  * software distributed under the License is distributed on an
15*1c4c525fSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*1c4c525fSAndrew Rist  * KIND, either express or implied.  See the License for the
17*1c4c525fSAndrew Rist  * specific language governing permissions and limitations
18*1c4c525fSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*1c4c525fSAndrew Rist  *************************************************************/
21*1c4c525fSAndrew Rist 
22*1c4c525fSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef INCLUDED_stoc_source_registry_tdprovider_methoddescription_hxx
25cdf0e10cSrcweir #define INCLUDED_stoc_source_registry_tdprovider_methoddescription_hxx
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "functiondescription.hxx"
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include "com/sun/star/uno/Reference.hxx"
30cdf0e10cSrcweir #include "com/sun/star/uno/Sequence.hxx"
31cdf0e10cSrcweir #include "rtl/ustring.hxx"
32cdf0e10cSrcweir #include "sal/types.h"
33cdf0e10cSrcweir 
34cdf0e10cSrcweir namespace com { namespace sun { namespace star {
35cdf0e10cSrcweir     namespace container {
36cdf0e10cSrcweir         class XHierarchicalNameAccess;
37cdf0e10cSrcweir     }
38cdf0e10cSrcweir     namespace reflection {
39cdf0e10cSrcweir         class XParameter;
40cdf0e10cSrcweir     }
41cdf0e10cSrcweir } } }
42cdf0e10cSrcweir namespace typereg { class Reader; }
43cdf0e10cSrcweir 
44cdf0e10cSrcweir namespace stoc { namespace registry_tdprovider {
45cdf0e10cSrcweir 
46cdf0e10cSrcweir class MethodDescription: public FunctionDescription {
47cdf0e10cSrcweir public:
48cdf0e10cSrcweir     MethodDescription(
49cdf0e10cSrcweir         com::sun::star::uno::Reference<
50cdf0e10cSrcweir             com::sun::star::container::XHierarchicalNameAccess > const &
51cdf0e10cSrcweir             manager,
52cdf0e10cSrcweir         rtl::OUString const & name,
53cdf0e10cSrcweir         com::sun::star::uno::Sequence< sal_Int8 > const & bytes,
54cdf0e10cSrcweir         sal_uInt16 index);
55cdf0e10cSrcweir 
56cdf0e10cSrcweir     ~MethodDescription();
57cdf0e10cSrcweir 
getName() const58cdf0e10cSrcweir     rtl::OUString getName() const { return m_name; }
59cdf0e10cSrcweir 
60cdf0e10cSrcweir     com::sun::star::uno::Sequence<
61cdf0e10cSrcweir         com::sun::star::uno::Reference<
62cdf0e10cSrcweir             com::sun::star::reflection::XParameter > >
63cdf0e10cSrcweir     getParameters() const;
64cdf0e10cSrcweir 
65cdf0e10cSrcweir private:
66cdf0e10cSrcweir     MethodDescription(MethodDescription &); // not implemented
67cdf0e10cSrcweir     void operator =(MethodDescription); // not implemented
68cdf0e10cSrcweir 
69cdf0e10cSrcweir     rtl::OUString m_name;
70cdf0e10cSrcweir     mutable com::sun::star::uno::Sequence<
71cdf0e10cSrcweir         com::sun::star::uno::Reference<
72cdf0e10cSrcweir             com::sun::star::reflection::XParameter > > m_parameters;
73cdf0e10cSrcweir     mutable bool m_parametersInit;
74cdf0e10cSrcweir };
75cdf0e10cSrcweir 
76cdf0e10cSrcweir } }
77cdf0e10cSrcweir 
78cdf0e10cSrcweir #endif
79