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.
18 #ifndef _ABSTRACT_LAYER_IEVENT_BROWSE_FOLDER_H_
19 #define _ABSTRACT_LAYER_IEVENT_BROWSE_FOLDER_H_
22 #include <Commons/IEvent.h>
23 #include <API/Filter/IFilter.h>
24 #include <API/Filter/SortMode.h>
26 #include <dpl/shared_ptr.h>
27 #include "MediacontentMedia.h"
29 using namespace TizenApis::Api::Tizen;
33 namespace Mediacontent {
35 class IEventBrowseFolder : public WrtDeviceApis::Commons::IEvent<IEventBrowseFolder>
43 m_filterIsSet = false;
44 m_sortModesIsSet = false;
46 m_offsetIsSet = false;
47 m_folderIdIsSet = false;
52 virtual ~IEventBrowseFolder(){}
54 void addMedia(MediacontentMedia *value)
56 MediacontentMediaPtr mediaItem(value);
57 m_media.push_back(mediaItem);
60 vector<MediacontentMediaPtr> getMedia()
66 void setLimit(const long value)
71 void setOffset(const long value)
77 void setFilter(const Tizen::FilterPtr &value)
83 void setSortModes(const Tizen::SortModeArrayPtr &value)
86 m_sortModesIsSet = true;
89 void setSortMode(const Tizen::SortModePtr &value)
92 m_sortModesIsSet = true;
95 void setFolderID(const string &value)
98 m_folderIdIsSet = true;
107 void setResult(bool value)
112 bool getLimitIsSet() const
117 bool getOffsetIsSet() const
119 return m_offsetIsSet;
122 bool getResult()const
127 bool getFilterIsSet()const
129 return m_filterIsSet;
132 bool getFolderIdIsSet()const
134 return m_folderIdIsSet;
137 bool getSortModesIsSet()const
139 return m_sortModesIsSet;
142 long getLimit() const
147 long getOffset() const
152 FilterPtr getFilter() const
157 SortModeArrayPtr getSortModes() const
162 SortModePtr getSortMode() const
169 bool m_sortModesIsSet;
171 bool m_result; //OUTPUT: operation result
174 bool m_folderIdIsSet;
179 SortModeArrayPtr m_sortModes;
180 SortModePtr m_sortMode;
184 vector<MediacontentMediaPtr> m_media;
188 typedef DPL::SharedPtr<IEventBrowseFolder> IEventBrowseFolderPtr;
193 #endif /* _ABSTRACT_LAYER_IEVENT_BROWSE_FOLDER_H_ */