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.
19 #ifndef _ABSTRACT_LAYER_IEVENT_FIND_FOLDER_H_
20 #define _ABSTRACT_LAYER_IEVENT_FIND_FOLDER_H_
23 #include <Commons/IEvent.h>
24 #include <dpl/shared_ptr.h>
25 #include <API/Filter/IFilter.h>
26 #include <API/Filter/SortMode.h>
27 #include "MediacontentFolder.h"
34 namespace Mediacontent {
36 class IEventFindFolder : public WrtDeviceApis::Commons::IEvent<IEventFindFolder>
42 m_filterIsSet = false;
43 m_sortModesIsSet = false;
45 m_offsetIsSet = false;
50 void addFolder(MediacontentFolderPtr value)
52 m_folder.push_back(value);
55 void setResult(bool value)
60 vector<MediacontentFolderPtr> getFolder()
65 void setLimit(const unsigned long value)
70 void setOffset(const unsigned long value)
76 void setFilter(const Tizen::FilterPtr &value)
82 void setSortModes(const Tizen::SortModeArrayPtr &value)
85 m_sortModesIsSet = true;
88 bool getLimitIsSet() const
93 bool getOffsetIsSet() const
103 bool getFilterIsSet()const
105 return m_filterIsSet;
108 bool getSortModesIsSet()const
110 return m_sortModesIsSet;
113 unsigned long getLimit() const
118 unsigned long getOffset() const
123 FilterPtr getFilter() const
128 SortModeArrayPtr getSortModes() const
135 virtual void clearOnCancel(){;}
140 bool m_sortModesIsSet;
142 bool m_result; //OUTPUT: operation result
147 unsigned long m_limit;
148 unsigned long m_offset;
150 SortModeArrayPtr m_sortModes;
151 vector<MediacontentFolderPtr> m_folder; //OUTPUT: result list
157 typedef DPL::SharedPtr<IEventFindFolder> IEventFindFolderPtr;
162 #endif /* _ABSTRACT_LAYER_IEVENT_FIND_FOLDER_H_ */