#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.
*
*/
-#include <dali-toolkit/public-api/scripting/script-plugin.h>
+#include <dali-toolkit/devel-api/scripting/script-plugin.h>
namespace Dali
{
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
bool IsInitialized() const;
private:
+
+ ScriptPluginProxy( const ScriptPluginProxy& ); ///< Undefined
+ ScriptPluginProxy& operator=( const ScriptPluginProxy& ); ///< Undefined
+
/**
* @brief Dynamically loads the script plugin.
*/