2 * Copyright (c) 2012 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.
18 * @author Grzegorz Krawczyk (g.krawczyk@samgsung.com)
25 namespace WrtPluginsApi
28 void Object::AddChild(const IObjectPtr& child)
32 m_children = IObjectsListPtr(new IObjectsList);
34 m_children->push_back(child);
37 void Object::setBoolOption(IObjectOption option, bool value)
41 m_options = ObjectOptionPtr(new ObjectOption);
46 case IObjectOption::Overlayed:
47 m_options->overlayedMode = value;
54 IObjectsListPtr Object::GetChildren() const
59 ClassRef Object::GetClass() const
64 ClassRef Object::GetClassConstructor() const
66 return m_constructorRef;
69 const char* Object::GetInterfaceName() const
71 return m_interfaceName;
74 const char* Object::GetName() const
79 IObjectType Object::GetType() const
84 const char* Object::GetParentName() const
89 ObjectOptionPtr Object::GetOptions() const
94 Object::Object(const char* name,
107 Object::Object(const char* name,
109 const char* parentName,
113 m_parentName(parentName),
121 Object::Object(const char* name,
122 ClassRef interfaceRef,
123 const char* interfaceName,
124 ClassRef constructorRef,
125 const char* parentName,
128 m_parentName(parentName),
130 m_interfaceRef(interfaceRef),
131 m_interfaceName(interfaceName),
132 m_constructorRef(constructorRef)