2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file CallISettingsEventListener.h
19 * @brief This is the header file for the %ISettingsEventListener class.
21 * This header file contains the declarations for %ISettingsEventListener class.
23 #ifndef _PHN_I_SETTINGS_EVENT_LISTENER_H_
24 #define _PHN_I_SETTINGS_EVENT_LISTENER_H_
26 #include "CallSettingsConstants.h"
29 * @class ISettingsEventListener
30 * @brief This interface is used to listen to events from Telephony Manager.
33 class ISettingsEventListener
36 virtual ~ISettingsEventListener(void){};
38 //Handle the response for getCallWaiting request
39 virtual void HandleGetCallWaitingResponse(bool isCallSuccessful, bool callWaitingActivated) = 0;
40 //Handle the response for setCallWaiting request
41 virtual void HandleSetCallWaitingResponse(bool isCallSuccessful, bool isCallWaitingEnabled) = 0;
42 //Handle the response for getCallForwarding request
43 virtual void HandleGetCallForwardResponse(bool isCallSuccessful, CallForwardCondition callFwdCondition, const Tizen::Base::String& callFwdNumber, bool callForwardActivated, int noReplyWaitTime) = 0;
44 //Handle the response for setCallForwarding request
45 virtual void HandleSetCallForwardResponse(bool isCallSuccessful, CallForwardCondition callFwdCondition, const Tizen::Base::String& callFwdNumber, bool isCallForwardActivated, int noReplyWaitTime) = 0;
46 //Handle the response for setcallBarring request
47 virtual void HandleSetCallBarringResponse(bool isCallSuccessful, CallBarringType callBarringType, bool isBarringActivated) = 0;
48 //Handle the response for getCallBarring request
49 virtual void HandleGetCallBarringResponse(bool isCallSuccessful, CallBarringType callBarringType, bool isBarringActivated) = 0;
50 //Handle flight mode change
51 virtual void HandleFlightMode(bool isFlightModeActivated) = 0;
54 #endif // _PHN_I_SETTINGS_EVENT_LISTENER_H_