2 // Open Service Platform
3 // Copyright (c) 2012-2013 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 * @file FTel_CallInfoImpl.cpp
19 * @brief This is the implementation file for _CallInfoImpl class.
22 #include <FBaseString.h>
23 #include <FTelTypes.h>
24 #include <FTelCallInfo.h>
25 #include "FTel_CallInfoImpl.h"
27 using namespace Tizen::Base;
29 namespace Tizen { namespace Telephony
33 _CallInfoImpl::_CallInfoImpl(void)
34 : __callType(TYPE_UNDEFINED_CALL)
38 _CallInfoImpl::_CallInfoImpl(const _CallInfoImpl& callInfo)
39 : __callType(callInfo.__callType)
40 , __number(callInfo.__number)
44 _CallInfoImpl::_CallInfoImpl(CallType type, const String& number)
50 _CallInfoImpl::~_CallInfoImpl(void)
55 _CallInfoImpl::operator =(const _CallInfoImpl& rhs)
59 __callType = rhs.__callType;
60 __number = rhs.__number;
67 _CallInfoImpl::GetCallType(void) const
73 _CallInfoImpl::GetNumber(void) const
79 _CallInfoImpl::SetCallType(CallType callType)
81 __callType = callType;
85 _CallInfoImpl::SetNumber(const String& number)
91 _CallInfoImpl::Equals(const Object& obj) const
93 const _CallInfoImpl* pOther = dynamic_cast<const _CallInfoImpl*>(&obj);
96 ||__callType != pOther->__callType
97 ||!__number.Equals(pOther->__number))
106 _CallInfoImpl::GetHashCode(void) const
108 return __callType ^ __number.GetHashCode();
112 _CallInfoImpl::GetInstance(CallInfo& callInfo)
114 return callInfo.__pCallInfoImpl;
118 _CallInfoImpl::GetInstance(const CallInfo& callInfo)
120 return callInfo.__pCallInfoImpl;
123 }} // Tizen::Telephony