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;
51 virtual ~IEventBrowseFolder(){}
53 void addMedia(MediacontentMedia *value)
55 MediacontentMediaPtr mediaItem(value);
56 m_media.push_back(mediaItem);
59 vector<MediacontentMediaPtr> getMedia()
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 void setFolderID(const string &value)
99 void setResult(bool value)
104 bool getLimitIsSet() const
109 bool getOffsetIsSet() const
111 return m_offsetIsSet;
114 bool getResult()const
119 bool getFilterIsSet()const
121 return m_filterIsSet;
124 bool getSortModesIsSet()const
126 return m_sortModesIsSet;
129 unsigned long getLimit() const
134 unsigned long getOffset() const
139 FilterPtr getFilter() const
144 SortModeArrayPtr getSortModes() const
153 bool m_sortModesIsSet;
155 bool m_result; //OUTPUT: operation result
159 unsigned long m_limit;
160 unsigned long m_offset;
162 SortModeArrayPtr m_sortModes;
166 vector<MediacontentMediaPtr> m_media;
170 typedef DPL::SharedPtr<IEventBrowseFolder> IEventBrowseFolderPtr;
175 #endif /* _ABSTRACT_LAYER_IEVENT_BROWSE_FOLDER_H_ */