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_SIMPLEREGISTRY_TEXTUALSERVICES_HXX
25 #define INCLUDED_STOC_SOURCE_SIMPLEREGISTRY_TEXTUALSERVICES_HXX
26 
27 #include "sal/config.h"
28 
29 #include <memory>
30 
31 #include "boost/noncopyable.hpp"
32 #include "com/sun/star/uno/Reference.hxx"
33 #include "rtl/ref.hxx"
34 #include "rtl/ustring.hxx"
35 
36 namespace com { namespace sun { namespace star { namespace registry {
37     class XRegistryKey;
38 } } } }
39 
40 namespace stoc { namespace simpleregistry {
41 
42 class Data;
43 
44 class TextualServices: private boost::noncopyable {
45 public:
46     explicit TextualServices(rtl::OUString const & uri);
47         // throws com::sun::star::registry::InvalidRegistryException
48 
49     virtual ~TextualServices();
50 
getUri()51     inline rtl::OUString getUri() { return uri_; }
52 
53     com::sun::star::uno::Reference< com::sun::star::registry::XRegistryKey >
54     getRootKey();
55 
56 private:
57     rtl::OUString uri_;
58     rtl::Reference< Data > data_;
59 };
60 
61 } }
62 
63 #endif
64