Update change log and spec for wrt-plugins-tizen_0.4.46
[platform/framework/web/wrt-plugins-tizen.git] / src / Callhistory / CallHistoryEntryProperties.cpp
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 #include "CallHistoryEntryProperties.h"
19
20 namespace DeviceAPI {
21 namespace CallHistory {
22
23 CallHistoryEntryProperties::CallHistoryEntryProperties() :
24                 m_entryId(0),
25                 m_serviceId(""),
26                 m_callType(""),
27                 m_startTime(0),
28                 m_duration(0),
29                 m_endReason(""),
30                 m_direction(""),
31                 m_cost(0),
32                 m_currency(""),
33                 m_filterMark(false)
34 {
35         m_tags = StringArrayPtr(new StringArray());
36         m_remoteParties = RemotePartyListPtr(new RemotePartyList());
37         m_forwardedFrom = RemotePartyPtr(new RemoteParty());
38         m_recording = StringArrayPtr(new StringArray());
39 }
40
41 void CallHistoryEntryProperties::setEntryId(const unsigned long EntryId)
42 {
43         m_entryId = EntryId;
44 }
45
46 void CallHistoryEntryProperties::setServiceId(const std::string ServiceId)
47 {
48         m_serviceId = ServiceId;
49 }
50
51 void CallHistoryEntryProperties::setCallType(const std::string CallType)
52 {
53         m_callType = CallType;
54 }
55
56 void CallHistoryEntryProperties::setTags(const StringArrayPtr &Tags)
57 {
58         m_tags = Tags;
59 }
60
61 void CallHistoryEntryProperties::setRemoteParties(const RemotePartyListPtr &RemoteParties)
62 {
63         m_remoteParties = RemoteParties;
64 }
65
66 void CallHistoryEntryProperties::setForwardedFrom(const RemotePartyPtr &ForwardedFrom)
67 {
68         m_forwardedFrom = ForwardedFrom;
69 }
70
71 void CallHistoryEntryProperties::setStartTime(const time_t StartTime)
72 {
73         m_startTime = StartTime;
74 }
75
76 void CallHistoryEntryProperties::setDuration(const unsigned long Duration)
77 {
78         m_duration = Duration;
79 }
80
81 void CallHistoryEntryProperties::setEndReason(const std::string EndReason)
82 {
83         m_endReason = EndReason;
84 }
85
86 void CallHistoryEntryProperties::setDirection(const std::string Direction)
87 {
88         m_direction = Direction;
89 }
90
91 void CallHistoryEntryProperties::setRecording(const StringArrayPtr &Recording)
92 {
93         m_recording = Recording;
94 }
95
96 void CallHistoryEntryProperties::setCost(const unsigned long Cost)
97 {
98         m_cost = Cost;
99 }
100
101 void CallHistoryEntryProperties::setCurrency(const std::string Currency)
102 {
103         m_currency = Currency;
104 }
105
106
107 void CallHistoryEntryProperties::setFilterMark(const bool Mark)
108 {
109         m_filterMark = Mark;
110 }
111
112 unsigned long CallHistoryEntryProperties::getEntryId() const
113 {
114         return m_entryId;
115 }
116
117 std::string CallHistoryEntryProperties::getServiceId() const
118 {
119         return m_serviceId;
120 }
121
122 std::string CallHistoryEntryProperties::getCallType() const
123 {
124         return m_callType;
125 }
126
127 StringArrayPtr CallHistoryEntryProperties::getTags() const
128 {
129         return m_tags;
130 }
131
132 RemotePartyListPtr CallHistoryEntryProperties::getRemoteParties() const
133 {
134         return m_remoteParties;
135 }
136
137 RemotePartyPtr CallHistoryEntryProperties::getForwardedFrom() const
138 {
139         return m_forwardedFrom;
140 }
141
142 time_t CallHistoryEntryProperties::getStartTime() const
143 {
144         return m_startTime;
145 }
146
147 unsigned long CallHistoryEntryProperties::getDuration() const
148 {
149         return m_duration;
150 }
151
152 std::string CallHistoryEntryProperties::getEndReason() const
153 {
154         return m_endReason;
155 }
156
157 std::string CallHistoryEntryProperties::getDirection() const
158 {
159         return m_direction;
160 }
161
162 StringArrayPtr CallHistoryEntryProperties::getRecording() const
163 {
164         return m_recording;
165 }
166
167 unsigned long CallHistoryEntryProperties::getCost() const
168 {
169         return m_cost;
170 }
171
172 std::string CallHistoryEntryProperties::getCurrency() const
173 {
174         return m_currency;
175 }
176
177 bool CallHistoryEntryProperties::getFilterMark() const
178 {
179         return m_filterMark;
180 }
181
182 }
183 }