diff options
Diffstat (limited to 'mobile_src/Content/IEventFind.h')
-rwxr-xr-x | mobile_src/Content/IEventFind.h | 193 |
1 files changed, 193 insertions, 0 deletions
diff --git a/mobile_src/Content/IEventFind.h b/mobile_src/Content/IEventFind.h new file mode 100755 index 0000000..2f301dd --- /dev/null +++ b/mobile_src/Content/IEventFind.h @@ -0,0 +1,193 @@ +// +// Tizen Web Device API +// Copyright (c) 2012 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + + +#ifndef _ABSTRACT_LAYER_IEVENT_BROWSE_FOLDER_H_ +#define _ABSTRACT_LAYER_IEVENT_BROWSE_FOLDER_H_ + +#include <vector> +#include <Commons/IEvent.h> +#include <IFilter.h> +#include <SortMode.h> + +#include <dpl/shared_ptr.h> +#include "ContentMedia.h" + +using namespace DeviceAPI::Tizen; + +namespace DeviceAPI { +namespace Content { + +class IEventBrowseFolder : public WrtDeviceApis::Commons::IEvent<IEventBrowseFolder> +{ + + public: + + IEventBrowseFolder() + { + m_result = false; + m_filterIsSet = false; + m_sortModesIsSet = false; + m_limitIsSet = false; + m_offsetIsSet = false; + m_folderIdIsSet = false; + + } + + + virtual ~IEventBrowseFolder(){} + + void addMedia(MediacontentMedia *value) + { + MediacontentMediaPtr mediaItem(value); + m_media.push_back(mediaItem); + } + + vector<MediacontentMediaPtr> getMedia() + { + return m_media; + } + + + void setLimit(const unsigned long value) + { + m_limitIsSet = true; + m_limit = value; + } + void setOffset(const unsigned long value) + { + m_offsetIsSet = true; + m_offset = value; + } + + void setFilter(const DeviceAPI::Tizen::FilterPtr &value) + { + m_filter = value; + m_filterIsSet = true; + } + + void setSortModes(const DeviceAPI::Tizen::SortModeArrayPtr &value) + { + m_sortModes = value; + m_sortModesIsSet = true; + } + + void setSortMode(const DeviceAPI::Tizen::SortModePtr &value) + { + m_sortMode = value; + m_sortModesIsSet = true; + } + + void setFolderID(const string &value) + { + m_folderId = value; + m_folderIdIsSet = true; + } + + string getFolderID() + { + return m_folderId; + } + + + void setResult(bool value) + { + m_result = value; + } + + bool getLimitIsSet() const + { + return m_limitIsSet; + } + + bool getOffsetIsSet() const + { + return m_offsetIsSet; + } + + bool getResult()const + { + return m_result; + } + + bool getFilterIsSet()const + { + return m_filterIsSet; + } + + bool getFolderIdIsSet()const + { + return m_folderIdIsSet; + } + + bool getSortModesIsSet()const + { + return m_sortModesIsSet; + } + + unsigned long getLimit() const + { + return m_limit; + } + + unsigned long getOffset() const + { + return m_offset; + } + + FilterPtr getFilter() const + { + return m_filter; + } + + SortModeArrayPtr getSortModes() const + { + return m_sortModes; + } + + SortModePtr getSortMode() const + { + return m_sortMode; + } + + private: + bool m_filterIsSet; + bool m_sortModesIsSet; + + bool m_result; //OUTPUT: operation result + bool m_limitIsSet; + bool m_offsetIsSet; + bool m_folderIdIsSet; + + unsigned long m_limit; + unsigned long m_offset; + FilterPtr m_filter; + SortModeArrayPtr m_sortModes; + SortModePtr m_sortMode; + + string m_folderId; + + vector<MediacontentMediaPtr> m_media; + +}; + +typedef DPL::SharedPtr<IEventBrowseFolder> IEventBrowseFolderPtr; + +} +} + +#endif /* _ABSTRACT_LAYER_IEVENT_BROWSE_FOLDER_H_ */ |