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 {
25 OptionalString NodeFilter::getName() const
30 void NodeFilter::setName(const OptionalString& name)
35 OptionalDate NodeFilter::getMinCreated() const
40 void NodeFilter::setMinCreated(const OptionalDate& date)
45 OptionalDate NodeFilter::getMaxCreated() const
50 void NodeFilter::setMaxCreated(const OptionalDate& date)
55 void NodeFilter::setCreated(const OptionalDate& date)
57 m_created.min = m_created.max = date;
60 OptionalDate NodeFilter::getMinModified() const
62 return m_modified.min;
65 void NodeFilter::setMinModified(const OptionalDate& date)
67 m_modified.min = date;
70 OptionalDate NodeFilter::getMaxModified() const
72 return m_modified.max;
75 void NodeFilter::setMaxModified(const OptionalDate& date)
77 m_modified.max = date;
80 void NodeFilter::setModified(const OptionalDate& date)
82 m_modified.min = m_modified.max = date;
85 OptionalSize NodeFilter::getMinSize() const
90 void NodeFilter::setMinSize(const OptionalSize& size)
95 OptionalSize NodeFilter::getMaxSize() const
100 void NodeFilter::setMaxSize(const OptionalSize& size)
105 void NodeFilter::setSize(const OptionalSize& size)
107 m_size.min = m_size.max = size;