tizen beta release
[framework/web/wrt-plugins-common.git] / src / modules / tizen / Filesystem / MoveCommand.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 /**
17  * @author          Zbigniew Kostrzewa (z.kostrzewa@samsung.com)
18  */
19
20 #ifndef WRTDEVICEAPIS_FILESYSTEM_MOVECOMMAND_H_
21 #define WRTDEVICEAPIS_FILESYSTEM_MOVECOMMAND_H_
22
23 #include "Command.h"
24 #include <Filesystem/IPath.h>
25
26 namespace WrtDeviceApis {
27 namespace Filesystem {
28
29 class MoveCommand : public Command
30 {
31   public:
32     MoveCommand(const Api::IPathPtr& src,
33                 const Api::IPathPtr& dest);
34     void setForce(bool force);
35
36   protected:
37     std::string prepare();
38
39   private:
40     Api::IPathPtr m_src;
41     Api::IPathPtr m_dest;
42     bool m_force;
43 };
44
45 }
46 }
47
48 #endif // WRTDEVICEAPIS_FILESYSTEM_MOVECOMMAND_H_