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.
21 * @file EventQueryMessage.h
22 * @author Pawel Misiak (p.misiak@samsung.com)
26 #ifndef EVENTQUERYMESSAGES_H
27 #define EVENTQUERYMESSAGES_H
30 #include <dpl/shared_ptr.h>
31 #include <Commons/IEvent.h>
32 #include <API/Filter/SortMode.h>
40 class EventQueryMessages;
42 typedef DPL::SharedPtr<EventQueryMessages> EventQueryMessagesPtr;
44 class EventQueryMessages :
45 public WrtDeviceApis::Commons::IEvent<EventQueryMessages>
48 Api::Tizen::FilterPtr m_filter;
49 Api::Tizen::SortModePtr m_sortMode;
56 EventQueryMessages() : m_limit(0), m_offset(0), m_index(-1), m_type(-1){
59 std::vector<MessageType> messageTypes;
60 std::vector<FolderType> folderTypes;
63 std::vector<Api::Messaging::IMessagePtr> msgs;
66 void setFilter(const Api::Tizen::FilterPtr& filter) {
70 Api::Tizen::FilterPtr getFilter() {
74 void setSortMode(const Api::Tizen::SortModePtr& sortMode) {
75 m_sortMode = sortMode;
78 Api::Tizen::SortModePtr getSortMode() {
82 void setLimit(long limit){
90 void setOffset(long offset){
98 void setIndex(long index){
106 void setType(int type){
114 virtual void clearOnCancel()