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.h
19 * @brief This is the header file for the %_CallInfoImpl class.
21 * This header file contains the declarations of the %_CallInfoImpl class.
23 #ifndef _FTEL_INTERNAL_CALL_INFO_IMPL_H_
24 #define _FTEL_INTERNAL_CALL_INFO_IMPL_H_
27 #include <FBaseObject.h>
28 #include <FBaseString.h>
29 #include <FTelTypes.h>
32 namespace Tizen { namespace Telephony
37 * @class _CallInfoImpl
38 * @brief This class provides methods to obtain detailed information about a call.
41 * The %_CallInfoImpl class provides methods to obtain detailed call information, such as the call type and number.
44 : public Tizen::Base::Object
48 * This is the default constructor for this class.
55 * This is the copy constructor for the %_CallInfoImpl class.
59 * @param[in] rhs The call information
61 _CallInfoImpl(const _CallInfoImpl& rhs);
64 * Initializes this instance of %_CallInfoImpl with the specified call type and the phone number.
66 * @param[in] type The call type
67 * @param[in] number The phone number @n
69 _CallInfoImpl(CallType type, const Tizen::Base::String& number);
72 * This is the destructor for this class.
76 virtual ~_CallInfoImpl(void);
79 * @see CallInfo::GetCallType()
81 CallType GetCallType(void) const;
84 * @see CallInfo::GetNumber()
86 Tizen::Base::String GetNumber(void) const;
93 void SetCallType(CallType callType);
96 * Sets the phone number.
100 void SetNumber(const Tizen::Base::String& number);
103 * Checks whether the the specified instance of %_CallInfoImpl equals the current instance.
105 * @return @c true if the specified instance equals the current instance, @n
107 * @param[in] obj An instance of %_CallInfoImpl
108 * @remarks The method returns @c false if the specified object is not %_CallInfoImpl.
110 virtual bool Equals(const Tizen::Base::Object& obj) const;
113 * Gets the hash value of the current instance.
115 * @return The hash value of the current instance
117 virtual int GetHashCode(void) const;
120 * Gets the Impl instance.
123 * @return The pointer to _CallInfoImpl
124 * @param[in] callInfo An instance of CallInfo
126 static _CallInfoImpl* GetInstance(CallInfo& callInfo);
129 * Gets the Impl instance.static int OnCallStatusChanged(const TelTapiEvent_t* pTapiEvent, void* pUserData);
133 * @return The pointer to _CallInfoImpl
134 * @param[in] callInfo An instance of CallInfo
136 static const _CallInfoImpl* GetInstance(const CallInfo& callInfo);
139 * This is the assignment operator.
141 * @param[in] rhs An instance of %_CallInfoImpl
143 _CallInfoImpl& operator =(const _CallInfoImpl& rhs);
147 Tizen::Base::String __number;
151 }} // Tizen::Telephony
152 #endif // _FTEL_INTERNAL_CALL_INFO_IMPL_H_