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