2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * @author Zbigniew Kostrzewa (z.kostrzewa@samsung.com)
20 #include "NodeFilter.h"
22 namespace WrtDeviceApis {
23 namespace Filesystem {
26 OptionalString NodeFilter::getName() const
31 void NodeFilter::setName(const OptionalString& name)
36 OptionalDate NodeFilter::getMinCreated() const
41 void NodeFilter::setMinCreated(const OptionalDate& date)
46 OptionalDate NodeFilter::getMaxCreated() const
51 void NodeFilter::setMaxCreated(const OptionalDate& date)
56 void NodeFilter::setCreated(const OptionalDate& date)
58 m_created.min = m_created.max = date;
61 OptionalDate NodeFilter::getMinModified() const
63 return m_modified.min;
66 void NodeFilter::setMinModified(const OptionalDate& date)
68 m_modified.min = date;
71 OptionalDate NodeFilter::getMaxModified() const
73 return m_modified.max;
76 void NodeFilter::setMaxModified(const OptionalDate& date)
78 m_modified.max = date;
81 void NodeFilter::setModified(const OptionalDate& date)
83 m_modified.min = m_modified.max = date;
86 OptionalSize NodeFilter::getMinSize() const
91 void NodeFilter::setMinSize(const OptionalSize& size)
96 OptionalSize NodeFilter::getMaxSize() const
101 void NodeFilter::setMaxSize(const OptionalSize& size)
106 void NodeFilter::setSize(const OptionalSize& size)
108 m_size.min = m_size.max = size;