Initialize Tizen 2.3
[framework/web/wrt-plugins-common.git] / src_wearable / modules / API / Filesystem / NodeFilter.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 /**
17  * @author          Zbigniew Kostrzewa (z.kostrzewa@samsung.com)
18  */
19
20 #include "NodeFilter.h"
21
22 namespace WrtDeviceApis {
23 namespace Filesystem {
24 namespace Api {
25 OptionalString NodeFilter::getName() const
26 {
27     return m_name;
28 }
29
30 void NodeFilter::setName(const OptionalString& name)
31 {
32     m_name = name;
33 }
34
35 OptionalDate NodeFilter::getMinCreated() const
36 {
37     return m_created.min;
38 }
39
40 void NodeFilter::setMinCreated(const OptionalDate& date)
41 {
42     m_created.min = date;
43 }
44
45 OptionalDate NodeFilter::getMaxCreated() const
46 {
47     return m_created.max;
48 }
49
50 void NodeFilter::setMaxCreated(const OptionalDate& date)
51 {
52     m_created.max = date;
53 }
54
55 void NodeFilter::setCreated(const OptionalDate& date)
56 {
57     m_created.min = m_created.max = date;
58 }
59
60 OptionalDate NodeFilter::getMinModified() const
61 {
62     return m_modified.min;
63 }
64
65 void NodeFilter::setMinModified(const OptionalDate& date)
66 {
67     m_modified.min = date;
68 }
69
70 OptionalDate NodeFilter::getMaxModified() const
71 {
72     return m_modified.max;
73 }
74
75 void NodeFilter::setMaxModified(const OptionalDate& date)
76 {
77     m_modified.max = date;
78 }
79
80 void NodeFilter::setModified(const OptionalDate& date)
81 {
82     m_modified.min = m_modified.max = date;
83 }
84
85 OptionalSize NodeFilter::getMinSize() const
86 {
87     return m_size.min;
88 }
89
90 void NodeFilter::setMinSize(const OptionalSize& size)
91 {
92     m_size.min = size;
93 }
94
95 OptionalSize NodeFilter::getMaxSize() const
96 {
97     return m_size.max;
98 }
99
100 void NodeFilter::setMaxSize(const OptionalSize& size)
101 {
102     m_size.max = size;
103 }
104
105 void NodeFilter::setSize(const OptionalSize& size)
106 {
107     m_size.min = m_size.max = size;
108 }
109 } // API
110 } // Filesystem
111 } // WrtDeviceApis