Update change log and spec for wrt-plugins-tizen_0.4.46
[platform/framework/web/wrt-plugins-tizen.git] / src / Callhistory / EventFindCallHistory.h
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18
19 #ifndef TIZENAPIS_API_CALL_EVENT_FIND_CALLHISTORY_H_
20 #define TIZENAPIS_API_CALL_EVENT_FIND_CALLHISTORY_H_
21
22 #include <Commons/IEvent.h>
23 #include <dpl/shared_ptr.h>
24 #include <vector>
25 #include <IFilter.h>
26 #include <SortMode.h>
27 #include "CallHistoryEntryProperties.h"
28
29 namespace DeviceAPI {
30 namespace CallHistory {
31
32 class EventFindCallHistory : public WrtDeviceApis::Commons::IEvent<EventFindCallHistory>
33 {
34   private:
35         CallHistoryEntryListPtr m_callEntries;
36         DeviceAPI::Tizen::FilterPtr m_filter;
37         DeviceAPI::Tizen::SortModePtr m_sortModes;
38         unsigned long m_limit;
39         unsigned long m_offset;
40         bool m_filterIsSet;
41         bool m_sortModesIsSet;
42         bool m_limitIsSet;
43         bool m_offsetIsSet;
44
45   public:
46         void setFilter(const DeviceAPI::Tizen::FilterPtr &filter);
47         void setSortMode(const DeviceAPI::Tizen::SortModePtr &sortMode);
48         void setLimit(const unsigned long limit);
49         void setOffset(const unsigned long offset);
50         void setResult(const CallHistoryEntryListPtr &callEntries);
51
52         DeviceAPI::Tizen::FilterPtr getFilter() const;
53         DeviceAPI::Tizen::SortModePtr getSortMode() const;
54         unsigned long getLimit() const;
55         unsigned long getOffset() const;
56         bool getFilterIsSet() const;
57         bool getSortModesIsSet() const;
58         bool getLimitIsSet() const;
59         bool getOffsetIsSet() const;
60         CallHistoryEntryListPtr getResult() const;
61
62         EventFindCallHistory();
63 };
64
65 typedef DPL::SharedPtr<EventFindCallHistory> EventFindCallHistoryPtr;
66
67 }
68
69 #endif