tizen beta release
[framework/web/wrt-plugins-common.git] / src / modules / API / Filesystem / EventMove.cpp
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 #include "EventMove.h"
17 #include <dpl/assert.h>
18
19 namespace WrtDeviceApis {
20 namespace Filesystem {
21 namespace Api {
22
23 EventMove::EventMove(const IPathPtr& src,
24                      const IPathPtr& dest) :
25     m_src(src),
26     m_dest(dest),
27     m_options(OPT_NONE)
28 {
29     Assert(src && "Source path not set.");
30     Assert(dest && "Destination path not set.");
31 }
32
33 IPathPtr EventMove::getDestination() const
34 {
35     return m_dest;
36 }
37
38 IPathPtr EventMove::getSource() const
39 {
40     return m_src;
41 }
42
43 INodePtr EventMove::getResult() const
44 {
45     return m_result;
46 }
47
48 void EventMove::setResult(const INodePtr& node)
49 {
50     m_result = node;
51 }
52
53 int EventMove::getOptions() const
54 {
55     return m_options;
56 }
57
58 void EventMove::setOptions(int options)
59 {
60     m_options = options;
61 }
62
63 } // API
64 } // Filesystem
65 } // WrtDeviceApis