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 the 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 to copy
59 CallInfo(const CallInfo& rhs);
62 * This destructor overrides Tizen::Base::Object::~Object().
66 virtual ~CallInfo(void);
73 * @return The current call type
75 CallType GetCallType(void) const;
78 * Gets the phone number.
82 * @return The phone number
83 * @remarks This information is valid only for an incoming event.
85 Tizen::Base::String GetNumber(void) const;
88 * Checks whether the specified instance of %CallInfo equals the current instance.
92 * @return @c true if the specified instance equals the current instance, @n
94 * @param[in] obj An instance of %CallInfo
95 * @remarks This method returns @c false if the specified object is not %CallInfo.
97 virtual bool Equals(const Tizen::Base::Object& obj) const;
100 * Gets the hash value of the current instance.
104 * @return The hash value of the current instance
106 virtual int GetHashCode(void) const;
109 * Copying of objects using this copy assignment operator is allowed.
113 * @return A reference to this instance
114 * @param[in] rhs An instance of %CallInfo to copy
116 CallInfo& operator=(const CallInfo& rhs);
120 * This constructor is intentionally declared as private so that only the platform can create an instance.
122 * @param[in] type The call type
123 * @param[in] number The phone number @n
125 CallInfo(CallType type, const Tizen::Base::String& number);
128 _CallInfoImpl* __pCallInfoImpl;
130 friend class _CallInfoImpl;
133 } } // Tizen::Telephony
134 #endif // _FTEL_CALL_INFO_H_