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.
20 * @file FTelITelephonyCallForwardListener.h
21 * @brief This is the header file for the %ITelephonyCallForwardListener interface.
24 * This header file contains the declarations of the %ITelephonyCallForwardListener interface.
28 #ifndef _FTEL_ITELEPHONY_CALL_FORWARD_LISTENER_H_
29 #define _FTEL_ITELEPHONY_CALL_FORWARD_LISTENER_H_
35 namespace Tizen { namespace Telephony
38 * @if VISPARTNER-OPERATOR
40 * @interface ITelephonyCallForwardListener
41 * @brief This interface provides methods to listen to the results of the call forwarding request.
45 * @visibility partner-operator
47 * The %ITelephonyCallForwardListener interface provides methods to listen to the results of the call forwarding request.
51 class _OSP_EXPORT_ ITelephonyCallForwardListener
52 : virtual public Tizen::Base::Runtime::IEventListener
56 * @if VISPARTNER-OPERATOR
57 * This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes are called when the destructor of this interface is called.
61 * @visibility partner-operator
65 virtual ~ITelephonyCallForwardListener(void) {}
68 * @if VISPARTNER-OPERATOR
69 * Called when a response of the call forwarding request is received.
73 * @visibility partner-operator
75 * @param[in] phoneNumber The phone number
76 * @param[in] r The result of the call forwarding request
77 * @exception E_SUCCESS The method is successful.
78 * @exception E_NOT_RESPONDING The server on the telephony network is not responding.
79 * @exception E_SYSTEM A system error has occurred.
82 virtual void OnTelephonyCallForwardResponseReceived(const Tizen::Base::String& phoneNumber, result r) = 0;
85 * @if VISPARTNER-OPERATOR
86 * Called when a response of the call forwarding stop request is received.
90 * @visibility partner-operator
92 * @param[in] phoneNumber The phone number
93 * @param[in] r The result of the call forwarding request
94 * @exception E_SUCCESS The method is successful.
95 * @exception E_NOT_RESPONDING The server on the telephony network is not responding.
96 * @exception E_SYSTEM A system error has occurred.
99 virtual void OnTelephonyCallForwardStopped(const Tizen::Base::String& phoneNumber, result r) = 0;
102 * @if VISPARTNER-OPERATOR
103 * Called when a query for the call forwarding number is completed.
107 * @visibility partner-operator
109 * @param[in] phoneNumber The phone number
110 * @param[in] r The result of the query request
111 * @exception E_SUCCESS The method is successful.
112 * @exception E_NOT_RESPONDING The server on the telephony network is not responding.
113 * @exception E_SERVICE_DEACTIVATED The call forwarding service is not enabled.
114 * @exception E_SYSTEM A system error has occurred.
117 virtual void OnTelephonyCallForwardNumberReceived(const Tizen::Base::String& phoneNumber, result r) = 0;
121 // This method is for internal use only. Using this method can cause behavioral, security-related,
122 // and consistency-related issues in the application.
124 // This method is reserved and may change its name at any time without prior notice.
128 virtual void ITelephonyCallForwardListener_Reserved1(void) {}
131 // This method is for internal use only. Using this method can cause behavioral, security-related,
132 // and consistency-related issues in the application.
134 // This method is reserved and may change its name at any time without prior notice.
138 virtual void ITelephonyCallForwardListener_Reserved2(void) {}
141 // This method is for internal use only. Using this method can cause behavioral, security-related,
142 // and consistency-related issues in the application.
144 // This method is reserved and may change its name at any time without prior notice.
148 virtual void ITelephonyCallForwardListener_Reserved3(void) {}
149 }; // ITelephonyCallForwardListener
151 }} // Tizen::Telephony
152 #endif // _FTEL_ITELEPHONY_CALL_FORWARD_LISTENER_H_