25327c6f7612d93e3a584595eeaa9aa8ec0f3002
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Call / EventFindCallHistory.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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. 
15  */
16
17
18 #ifndef TIZENAPIS_API_CALL_EVENT_FIND_CALLHISTORY_H_
19 #define TIZENAPIS_API_CALL_EVENT_FIND_CALLHISTORY_H_
20
21 #include <Commons/IEvent.h>
22 #include <dpl/shared_ptr.h>
23 #include <vector>
24 #include <API/Filter/IFilter.h>
25 #include <API/Filter/SortMode.h>
26 #include "CallHistoryEntryProperties.h"
27
28 namespace TizenApis {
29 namespace Api {
30 namespace Call {
31 class EventFindCallHistory : public WrtDeviceApis::Commons::IEvent<EventFindCallHistory>
32 {
33   private:
34         CallHistoryEntryListPtr m_callEntries;
35         Tizen::FilterPtr m_filter;
36         Tizen::SortModeArrayPtr m_sortModes;
37         unsigned long m_limit;
38         unsigned long m_offset;
39         bool m_filterIsSet;
40         bool m_sortModesIsSet;
41         bool m_limitIsSet;
42         bool m_offsetIsSet;
43
44   public:
45         void setFilter(const Tizen::FilterPtr &filter);
46         void setSortMode(const Tizen::SortModeArrayPtr &sortMode);
47         void setLimit(const unsigned long limit);
48         void setOffset(const unsigned long offset);
49         void setResult(const CallHistoryEntryListPtr &callEntries);
50
51         Tizen::FilterPtr getFilter() const;
52         Tizen::SortModeArrayPtr 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;
60
61         EventFindCallHistory();
62 };
63
64 typedef DPL::SharedPtr<EventFindCallHistory> EventFindCallHistoryPtr;
65
66 }
67 }
68
69 #endif