2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 #ifndef WRTDEVICEAPIS_VCONF_NODE_H_
17 #define WRTDEVICEAPIS_VCONF_NODE_H_
21 #include <dpl/noncopyable.h>
22 #include <dpl/shared_ptr.h>
24 namespace WrtDeviceApis {
28 class Node : private DPL::Noncopyable
38 TYPE_BOOL = VCONF_TYPE_BOOL, //!< TYPE_BOOL
39 TYPE_INT = VCONF_TYPE_INT, //!< TYPE_INT
40 TYPE_DOUBLE = VCONF_TYPE_DOUBLE, //!< TYPE_DOUBLE
41 TYPE_STRING = VCONF_TYPE_STRING //!< TYPE_STRING
47 * @return Node's name.
49 std::string getName() const;
53 * @return Node's type.
58 explicit Node(keynode_t* node);
61 mutable keynode_t* m_node;
62 std::string m_name; ///< Name of the node.
63 Type m_type; ///< Type of the node.
66 typedef DPL::SharedPtr<Node> NodePtr;
69 #endif /* WRTDEVICEAPIS_VCONF_NODE_H_ */