bb5437aac69b4dbda67d19b8ca14eb11181706ca
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Call / CallHistoryEntryProperties.cpp
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 #include "CallHistoryEntryProperties.h"
18
19 namespace TizenApis {
20 namespace Api {
21 namespace Call {
22 CallHistoryEntryProperties::CallHistoryEntryProperties() :
23                 m_entryId(0),
24                 m_accountId(""),
25                 m_callType(""),
26                 m_remoteParty(""),
27                 m_contactId(""),
28                 m_contactDetails(""),
29                 m_forwardedFrom(""),
30                 m_startTime(0),
31                 m_duration(0),
32                 m_endReason(""),
33                 m_kind(""),
34                 m_direction(""),
35                 m_cost(0),
36                 m_currency(""),
37                 m_filterMark(false)
38 {
39         m_usedCapabilities = stringArrayPtr(new stringArray());
40         m_recording = stringArrayPtr(new stringArray());
41 }
42
43 void CallHistoryEntryProperties::setEntryId(const unsigned long EntryId)
44 {
45         m_entryId = EntryId;
46 }
47
48 void CallHistoryEntryProperties::setAccountId(const std::string AccountId)
49 {
50         m_accountId = AccountId;
51 }
52
53 void CallHistoryEntryProperties::setCallType(const std::string CallType)
54 {
55         m_callType = CallType;
56 }
57
58 void CallHistoryEntryProperties::setRemoteParty(const std::string RemoteParty)
59 {
60         m_remoteParty = RemoteParty;
61 }
62
63 void CallHistoryEntryProperties::setContactId(const std::string ContactId)
64 {
65         m_contactId = ContactId;
66 }
67
68 void CallHistoryEntryProperties::setContactDetails(const std::string ContactDetails)
69 {
70         m_contactDetails = ContactDetails;
71 }
72
73 void CallHistoryEntryProperties::setForwardedFrom(const std::string ForwardedFrom)
74 {
75         m_forwardedFrom = ForwardedFrom;
76 }
77
78 void CallHistoryEntryProperties::setStartTime(const time_t StartTime)
79 {
80         m_startTime = StartTime;
81 }
82
83 void CallHistoryEntryProperties::setDuration(const unsigned long Duration)
84 {
85         m_duration = Duration;
86 }
87
88 void CallHistoryEntryProperties::setEndReason(const std::string EndReason)
89 {
90         m_endReason = EndReason;
91 }
92
93 void CallHistoryEntryProperties::setUsedCapabilities(const stringArrayPtr &UsedCapabilities)
94 {
95         m_usedCapabilities = UsedCapabilities;
96 }
97
98 void CallHistoryEntryProperties::setKind(const std::string Kind)
99 {
100         m_kind = Kind;
101 }
102
103 void CallHistoryEntryProperties::setDirection(const std::string Direction)
104 {
105         m_direction = Direction;
106 }
107
108 void CallHistoryEntryProperties::setRecording(const stringArrayPtr &Recording)
109 {
110         m_recording = Recording;
111 }
112
113 void CallHistoryEntryProperties::setCost(const unsigned long Cost)
114 {
115         m_cost = Cost;
116 }
117
118 void CallHistoryEntryProperties::setCurrency(const std::string Currency)
119 {
120         m_currency = Currency;
121 }
122
123
124 void CallHistoryEntryProperties::setFilterMark(const bool Mark)
125 {
126         m_filterMark = Mark;
127 }
128
129 unsigned long CallHistoryEntryProperties::getEntryId() const
130 {
131         return m_entryId;
132 }
133
134 std::string CallHistoryEntryProperties::getAccountId() const
135 {
136         return m_accountId;
137 }
138
139 std::string CallHistoryEntryProperties::getCallType() const
140 {
141         return m_callType;
142 }
143
144 std::string CallHistoryEntryProperties::getRemoteParty() const
145 {
146         return m_remoteParty;
147 }
148
149 std::string CallHistoryEntryProperties::getContactId() const
150 {
151         return m_contactId;
152 }
153
154 std::string CallHistoryEntryProperties::getContactDetails() const
155 {
156         return m_contactDetails;
157 }
158
159 std::string CallHistoryEntryProperties::getForwardedFrom() const
160 {
161         return m_forwardedFrom;
162 }
163
164 time_t CallHistoryEntryProperties::getStartTime() const
165 {
166         return m_startTime;
167 }
168
169 unsigned long CallHistoryEntryProperties::getDuration() const
170 {
171         return m_duration;
172 }
173
174 std::string CallHistoryEntryProperties::getEndReason() const
175 {
176         return m_endReason;
177 }
178
179 stringArrayPtr CallHistoryEntryProperties::getUsedCapabilities() const
180 {
181         return m_usedCapabilities;
182 }
183
184 std::string CallHistoryEntryProperties::getKind() const
185 {
186         return m_kind;
187 }
188
189 std::string CallHistoryEntryProperties::getDirection() const
190 {
191         return m_direction;
192 }
193
194 stringArrayPtr CallHistoryEntryProperties::getRecording() const
195 {
196         return m_recording;
197 }
198
199 unsigned long CallHistoryEntryProperties::getCost() const
200 {
201         return m_cost;
202 }
203
204 std::string CallHistoryEntryProperties::getCurrency() const
205 {
206         return m_currency;
207 }
208
209 bool CallHistoryEntryProperties::getFilterMark() const
210 {
211         return m_filterMark;
212 }
213
214 }
215 }
216 }