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 {
26 void Object::AddChild(const IObjectPtr& child)
29 m_children = IObjectsListPtr(new IObjectsList);
31 m_children->push_back(child);
34 void Object::setBoolOption(IObjectOption option, bool value)
37 m_options = ObjectOptionPtr(new ObjectOption);
41 case IObjectOption::Overlayed:
42 m_options->overlayedMode = value;
49 IObjectsListPtr Object::GetChildren() const
54 ClassRef Object::GetClass() const
59 ClassRef Object::GetClassConstructor() const
61 return m_constructorRef;
64 const char* Object::GetInterfaceName() const
66 return m_interfaceName;
69 const char* Object::GetName() const
74 IObjectType Object::GetType() const
79 const char* Object::GetParentName() const
84 ObjectOptionPtr Object::GetOptions() const
89 Object::Object(const char* name,
101 Object::Object(const char* name,
103 const char* parentName,
107 m_parentName(parentName),
114 Object::Object(const char* name,
115 ClassRef interfaceRef,
116 const char* interfaceName,
117 ClassRef constructorRef,
118 const char* parentName,
121 m_parentName(parentName),
123 m_interfaceRef(interfaceRef),
124 m_interfaceName(interfaceName),
125 m_constructorRef(constructorRef)