1 #ifndef __DALI_TOOLKIT_INTERNAL_SCRIPT_H__
2 #define __DALI_TOOLKIT_INTERNAL_SCRIPT_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 #include <dali/public-api/object/base-object.h>
24 #include <dali-toolkit/devel-api/scripting/script.h>
25 #include <dali-toolkit/devel-api/scripting/script-plugin.h>
40 * @copydoc Toolkit::Script
42 class Script : public Dali::BaseObject
52 * @copydoc Toolkit::Script::ExecuteFile
54 bool ExecuteFile( const std::string& filename );
59 * @brief virtual destructor
66 * @brief Undefined copy constructor
68 Script(const Script&);
71 * @brief Undefined assignment operator
73 Script& operator=(const Script& rhs);
77 ScriptPlugin* mPlugin; ///< plugin
81 } // namespace Internal
83 inline Internal::Script& GetImpl(Dali::Toolkit::Script& obj)
85 DALI_ASSERT_ALWAYS(obj);
87 Dali::BaseObject& handle = obj.GetBaseObject();
89 return static_cast<Internal::Script&>(handle);
92 inline const Internal::Script& GetImpl(const Dali::Toolkit::Script& obj)
94 DALI_ASSERT_ALWAYS(obj);
96 const Dali::BaseObject& handle = obj.GetBaseObject();
98 return static_cast<const Internal::Script&>(handle);
102 } // namespace Toolkit
106 #endif // __DALI_TOOLKIT_INTERNAL_SCRIPT_H__