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 FTelCallInfo.h
19 * @brief This is the header file for the %CallInfo class.
21 * This header file contains the declarations of the %CallInfo class.
23 #ifndef _FTEL_CALL_INFO_H_
24 #define _FTEL_CALL_INFO_H_
27 #include <FTelTypes.h>
29 namespace Tizen { namespace Telephony
35 * @brief This class provides methods to obtain detailed information about a call.
39 * The %CallInfo class provides methods to obtain detailed call information, such as the call type and number.
41 class _OSP_EXPORT_ CallInfo
42 : public Tizen::Base::Object
46 * This is the default constructor for this class.
53 * Copying of objects using this copy constructor is allowed.
57 * @param[in] rhs The call information
59 CallInfo(const CallInfo& rhs);
62 * This destructor overrides Tizen::Base::Object::~Object().
66 virtual ~CallInfo(void);
69 * Gets the call type of a call.
73 * @return The current call type
74 * @see Tizen::Telephony::CallType
76 CallType GetCallType(void) const;
79 * Gets the correspondent's phone number.
83 * @return The phone number
84 * @remarks This information is valid only for an incoming event.
86 Tizen::Base::String GetNumber(void) const;
89 * Checks whether the specified instance of %CallInfo equals the current instance.
93 * @return @c true if the specified instance equals the current instance, @n
95 * @param[in] obj An instance of %CallInfo
96 * @remarks The method returns @c false if the specified object is not %CallInfo.
98 virtual bool Equals(const Tizen::Base::Object& obj) const;
101 * Gets the hash value of the current instance.
105 * @return The hash value of the current instance
107 virtual int GetHashCode(void) const;
110 * Copying of objects using this copy assignment operator is allowed.
114 * @return The reference of this instance
115 * @param[in] rhs An instance of %CallInfo to copy
117 CallInfo& operator=(const CallInfo& rhs);
121 * This constructor is intentionally declared as private so that only the platform can create an instance.
123 * @param[in] type The call type
124 * @param[in] number The phone number @n
126 CallInfo(CallType type, const Tizen::Base::String& number);
129 _CallInfoImpl* __pCallInfoImpl;
131 friend class _CallInfoImpl;
134 } } // Tizen::Telephony
135 #endif // _FTEL_CALL_INFO_H_