2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #include "CallHistoryEntryProperties.h"
22 CallHistoryEntryProperties::CallHistoryEntryProperties() :
34 m_tags = StringArrayPtr(new StringArray());
35 m_remoteParties = RemotePartyListPtr(new RemotePartyList());
36 m_forwardedFrom = RemotePartyPtr(new RemoteParty());
37 m_recording = StringArrayPtr(new StringArray());
40 void CallHistoryEntryProperties::setEntryId(const unsigned long EntryId)
45 void CallHistoryEntryProperties::setServiceId(const std::string ServiceId)
47 m_serviceId = ServiceId;
50 void CallHistoryEntryProperties::setCallType(const std::string CallType)
52 m_callType = CallType;
55 void CallHistoryEntryProperties::setTags(const StringArrayPtr &Tags)
60 void CallHistoryEntryProperties::setRemoteParties(const RemotePartyListPtr &RemoteParties)
62 m_remoteParties = RemoteParties;
65 void CallHistoryEntryProperties::setForwardedFrom(const RemotePartyPtr &ForwardedFrom)
67 m_forwardedFrom = ForwardedFrom;
70 void CallHistoryEntryProperties::setStartTime(const time_t StartTime)
72 m_startTime = StartTime;
75 void CallHistoryEntryProperties::setDuration(const unsigned long Duration)
77 m_duration = Duration;
80 void CallHistoryEntryProperties::setEndReason(const std::string EndReason)
82 m_endReason = EndReason;
85 void CallHistoryEntryProperties::setDirection(const std::string Direction)
87 m_direction = Direction;
90 void CallHistoryEntryProperties::setRecording(const StringArrayPtr &Recording)
92 m_recording = Recording;
95 void CallHistoryEntryProperties::setCost(const unsigned long Cost)
100 void CallHistoryEntryProperties::setCurrency(const std::string Currency)
102 m_currency = Currency;
106 void CallHistoryEntryProperties::setFilterMark(const bool Mark)
111 unsigned long CallHistoryEntryProperties::getEntryId() const
116 std::string CallHistoryEntryProperties::getServiceId() const
121 std::string CallHistoryEntryProperties::getCallType() const
126 StringArrayPtr CallHistoryEntryProperties::getTags() const
131 RemotePartyListPtr CallHistoryEntryProperties::getRemoteParties() const
133 return m_remoteParties;
136 RemotePartyPtr CallHistoryEntryProperties::getForwardedFrom() const
138 return m_forwardedFrom;
141 time_t CallHistoryEntryProperties::getStartTime() const
146 unsigned long CallHistoryEntryProperties::getDuration() const
151 std::string CallHistoryEntryProperties::getEndReason() const
156 std::string CallHistoryEntryProperties::getDirection() const
161 StringArrayPtr CallHistoryEntryProperties::getRecording() const
166 unsigned long CallHistoryEntryProperties::getCost() const
171 std::string CallHistoryEntryProperties::getCurrency() const
176 bool CallHistoryEntryProperties::getFilterMark() const