Initialize Tizen 2.3
[framework/web/wrt-plugins-common.git] / src_wearable / 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 EventMove::EventMove(const IPathPtr& src,
23                      const IPathPtr& dest) :
24     m_src(src),
25     m_dest(dest),
26     m_options(OPT_NONE)
27 {
28     AssertMsg(src, "Source path not set.");
29     AssertMsg(dest, "Destination path not set.");
30 }
31
32 IPathPtr EventMove::getDestination() const
33 {
34     return m_dest;
35 }
36
37 IPathPtr EventMove::getSource() const
38 {
39     return m_src;
40 }
41
42 INodePtr EventMove::getResult() const
43 {
44     return m_result;
45 }
46
47 void EventMove::setResult(const INodePtr& node)
48 {
49     m_result = node;
50 }
51
52 int EventMove::getOptions() const
53 {
54     return m_options;
55 }
56
57 void EventMove::setOptions(int options)
58 {
59     m_options = options;
60 }
61 } // API
62 } // Filesystem
63 } // WrtDeviceApis