* limitations under the License.
*/
/**
- * @author Zbigniew Kostrzewa (z.kostrzewa@samsung.com)
+ * @file js_object.h
+ * @author Grzegorz Krawczyk (g.krawczyk@samgsung.com)
+ * @version
+ * @brief
*/
-#ifndef WRTDEVICEAPIS_FILESYSTEM_REMOVECOMMAND_H_
-#define WRTDEVICEAPIS_FILESYSTEM_REMOVECOMMAND_H_
+#ifndef WRT_SRC_PLUGIN_SERVICE_JS_OBJECT_H_
+#define WRT_SRC_PLUGIN_SERVICE_JS_OBJECT_H_
-#include "Command.h"
-#include <Filesystem/IPath.h>
+#include <dpl/noncopyable.h>
+#include <dpl/shared_ptr.h>
-namespace WrtDeviceApis {
-namespace Filesystem {
-
-class RemoveCommand : public Command
+class JSObject : private DPL::Noncopyable
{
public:
- explicit RemoveCommand(const Api::IPathPtr& path);
- void setRecursive(bool recursive);
- void setForce(bool force);
+ typedef void* RealObject;
+
+ public:
+ explicit JSObject(RealObject object);
+
+ /**
+ * returns javascript engine object
+ * @throw NullPtrException
+ * */
+ virtual RealObject getObject() const;
- protected:
- std::string prepare();
+ virtual ~JSObject()
+ {
+ }
private:
- Api::IPathPtr m_path;
- bool m_recursive;
- bool m_force;
+ RealObject m_object;
};
-} // Filesystem
-} // WrtDeviceApis
+typedef DPL::SharedPtr<JSObject> JSObjectPtr;
-#endif // WRTDEVICEAPIS_FILESYSTEM_REMOVECOMMAND_H_
+#endif