X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fscripting%2Fscript-plugin-proxy.h;h=eff47e3e0f214b820b93099bee618a5c9fd21637;hp=05da08f4137f147219b4c693ab41a5fbf9ffd663;hb=7c4829108a1196e07f0eb93207ea234e3741642b;hpb=1c5674a11a51310ee689d6daf4e6b7d94dec607e diff --git a/dali-toolkit/internal/scripting/script-plugin-proxy.h b/dali-toolkit/internal/scripting/script-plugin-proxy.h index 05da08f..eff47e3 100644 --- a/dali-toolkit/internal/scripting/script-plugin-proxy.h +++ b/dali-toolkit/internal/scripting/script-plugin-proxy.h @@ -2,7 +2,7 @@ #define __DALI_INTERNAL_SCRIPT_PLUGIN_PROXY_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -56,18 +56,21 @@ public: virtual void SetFlags( const std::string& flags ); /** - * @brief Exececute the buffer contents as a script + * @brief Exececute the buffer contents as a script * @param [in] buffer script file contents * @param [in] filename a nominal name for the buffer contents. - * (NB filename extension may be used to disambiguate script language) + * @note filename extension may be used to disambiguate script language + * @return true on success, false on failure + * */ - virtual void ExecuteBuffer( const std::string& buffer, const std::string& filename ); + virtual bool ExecuteBuffer( const std::string& buffer, const std::string& filename ); /** * @brief execture the file as a script * @param [in] filename the filename to read and execute + * @return true on success, false on failure */ - virtual void ExecuteFile( const std::string& fileName ); + virtual bool ExecuteFile( const std::string& fileName ); /** * @brief check if the plugin is initialized @@ -76,6 +79,10 @@ public: bool IsInitialized() const; private: + + ScriptPluginProxy( const ScriptPluginProxy& ); ///< Undefined + ScriptPluginProxy& operator=( const ScriptPluginProxy& ); ///< Undefined + /** * @brief Dynamically loads the script plugin. */