2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 #include "CallHistoryEntryProperties.h"
21 namespace CallHistory {
23 CallHistoryEntryProperties::CallHistoryEntryProperties() :
35 m_tags = StringArrayPtr(new StringArray());
36 m_remoteParties = RemotePartyListPtr(new RemotePartyList());
37 m_forwardedFrom = RemotePartyPtr(new RemoteParty());
38 m_recording = StringArrayPtr(new StringArray());
41 void CallHistoryEntryProperties::setEntryId(const unsigned long EntryId)
46 void CallHistoryEntryProperties::setServiceId(const std::string ServiceId)
48 m_serviceId = ServiceId;
51 void CallHistoryEntryProperties::setCallType(const std::string CallType)
53 m_callType = CallType;
56 void CallHistoryEntryProperties::setTags(const StringArrayPtr &Tags)
61 void CallHistoryEntryProperties::setRemoteParties(const RemotePartyListPtr &RemoteParties)
63 m_remoteParties = RemoteParties;
66 void CallHistoryEntryProperties::setForwardedFrom(const RemotePartyPtr &ForwardedFrom)
68 m_forwardedFrom = ForwardedFrom;
71 void CallHistoryEntryProperties::setStartTime(const time_t StartTime)
73 m_startTime = StartTime;
76 void CallHistoryEntryProperties::setDuration(const unsigned long Duration)
78 m_duration = Duration;
81 void CallHistoryEntryProperties::setEndReason(const std::string EndReason)
83 m_endReason = EndReason;
86 void CallHistoryEntryProperties::setDirection(const std::string Direction)
88 m_direction = Direction;
91 void CallHistoryEntryProperties::setRecording(const StringArrayPtr &Recording)
93 m_recording = Recording;
96 void CallHistoryEntryProperties::setCost(const unsigned long Cost)
101 void CallHistoryEntryProperties::setCurrency(const std::string Currency)
103 m_currency = Currency;
107 void CallHistoryEntryProperties::setFilterMark(const bool Mark)
112 unsigned long CallHistoryEntryProperties::getEntryId() const
117 std::string CallHistoryEntryProperties::getServiceId() const
122 std::string CallHistoryEntryProperties::getCallType() const
127 StringArrayPtr CallHistoryEntryProperties::getTags() const
132 RemotePartyListPtr CallHistoryEntryProperties::getRemoteParties() const
134 return m_remoteParties;
137 RemotePartyPtr CallHistoryEntryProperties::getForwardedFrom() const
139 return m_forwardedFrom;
142 time_t CallHistoryEntryProperties::getStartTime() const
147 unsigned long CallHistoryEntryProperties::getDuration() const
152 std::string CallHistoryEntryProperties::getEndReason() const
157 std::string CallHistoryEntryProperties::getDirection() const
162 StringArrayPtr CallHistoryEntryProperties::getRecording() const
167 unsigned long CallHistoryEntryProperties::getCost() const
172 std::string CallHistoryEntryProperties::getCurrency() const
177 bool CallHistoryEntryProperties::getFilterMark() const