2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 #include "EventFindCallHistory.h"
21 using namespace DeviceAPI::Tizen;
24 namespace CallHistory {
26 EventFindCallHistory::EventFindCallHistory() : m_filterIsSet(false),
27 m_sortModesIsSet(false),
33 void EventFindCallHistory::setFilter(const FilterPtr &filter)
39 void EventFindCallHistory::setSortMode(const SortModePtr &sortMode)
41 m_sortModes = sortMode;
42 m_sortModesIsSet = true;
45 void EventFindCallHistory::setLimit(const unsigned long limit)
53 void EventFindCallHistory::setOffset(const unsigned long offset)
61 void EventFindCallHistory::setResult(const CallHistoryEntryListPtr &callEntries)
63 m_callEntries = callEntries;
66 FilterPtr EventFindCallHistory::getFilter() const
71 SortModePtr EventFindCallHistory::getSortMode() const
76 unsigned long EventFindCallHistory::getLimit() const
81 unsigned long EventFindCallHistory::getOffset() const
86 bool EventFindCallHistory::getFilterIsSet() const
91 bool EventFindCallHistory::getSortModesIsSet() const
93 return m_sortModesIsSet;
96 bool EventFindCallHistory::getLimitIsSet() const
101 bool EventFindCallHistory::getOffsetIsSet() const
103 return m_offsetIsSet;
106 CallHistoryEntryListPtr EventFindCallHistory::getResult() const
108 return m_callEntries;