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 TIZENAPIS_API_CALL_EVENT_FIND_CALLHISTORY_H_
19 #define TIZENAPIS_API_CALL_EVENT_FIND_CALLHISTORY_H_
21 #include <Commons/IEvent.h>
22 #include <dpl/shared_ptr.h>
24 #include <API/Filter/IFilter.h>
25 #include <API/Filter/SortMode.h>
26 #include "CallHistoryEntryProperties.h"
31 class EventFindCallHistory : public WrtDeviceApis::Commons::IEvent<EventFindCallHistory>
34 CallHistoryEntryListPtr m_callEntries;
35 Tizen::FilterPtr m_filter;
36 Tizen::SortModePtr m_sortModes;
37 unsigned long m_limit;
38 unsigned long m_offset;
40 bool m_sortModesIsSet;
45 void setFilter(const Tizen::FilterPtr &filter);
46 void setSortMode(const Tizen::SortModePtr &sortMode);
47 void setLimit(const unsigned long limit);
48 void setOffset(const unsigned long offset);
49 void setResult(const CallHistoryEntryListPtr &callEntries);
51 Tizen::FilterPtr getFilter() const;
52 Tizen::SortModePtr getSortMode() const;
53 unsigned long getLimit() const;
54 unsigned long getOffset() const;
55 bool getFilterIsSet() const;
56 bool getSortModesIsSet() const;
57 bool getLimitIsSet() const;
58 bool getOffsetIsSet() const;
59 CallHistoryEntryListPtr getResult() const;
61 EventFindCallHistory();
64 typedef DPL::SharedPtr<EventFindCallHistory> EventFindCallHistoryPtr;