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