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 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_desktop.hxx"
26 
27 #include "rtl/string.h"
28 #include "com/sun/star/uno/XComponentContext.hpp"
29 #include "dp_misc.h"
30 #include "dp_executablebackenddb.hxx"
31 
32 
33 namespace css = ::com::sun::star;
34 using namespace ::com::sun::star::uno;
35 using ::rtl::OUString;
36 
37 #define EXTENSION_REG_NS "http://openoffice.org/extensionmanager/executable-registry/2010"
38 #define NS_PREFIX "exe"
39 #define ROOT_ELEMENT_NAME "executable-backend-db"
40 #define ENTRY_NAME "executable"
41 
42 namespace dp_registry {
43 namespace backend {
44 namespace executable {
45 
ExecutableBackendDb(Reference<XComponentContext> const & xContext,::rtl::OUString const & url)46 ExecutableBackendDb::ExecutableBackendDb(
47     Reference<XComponentContext> const &  xContext,
48     ::rtl::OUString const & url):RegisteredDb(xContext, url)
49 {
50 
51 }
52 
getDbNSName()53 OUString ExecutableBackendDb::getDbNSName()
54 {
55     return OUSTR(EXTENSION_REG_NS);
56 }
57 
getNSPrefix()58 OUString ExecutableBackendDb::getNSPrefix()
59 {
60     return OUSTR(NS_PREFIX);
61 }
62 
getRootElementName()63 OUString ExecutableBackendDb::getRootElementName()
64 {
65     return OUSTR(ROOT_ELEMENT_NAME);
66 }
67 
getKeyElementName()68 OUString ExecutableBackendDb::getKeyElementName()
69 {
70     return OUSTR(ENTRY_NAME);
71 }
72 
73 
74 } // namespace executable
75 } // namespace backend
76 } // namespace dp_registry
77 
78