Fix for 45563 45573
[apps/osp/Call.git] / inc / CallISettingsEventListener.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.1 (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
7 //
8 //     http://floralicense.org/license/
9 //
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.
15 //
16
17 /**
18  * @file                CallISettingsEventListener.h
19  * @brief               This is the header file for the %ISettingsEventListener class.
20  *
21  * This header file contains the declarations for %ISettingsEventListener class.
22  */
23 #ifndef _PHN_I_SETTINGS_EVENT_LISTENER_H_
24 #define _PHN_I_SETTINGS_EVENT_LISTENER_H_
25
26 #include "CallSettingsConstants.h"
27
28 /**
29  * @class ISettingsEventListener
30  * @brief This interface is used to listen to events from Telephony Manager.
31  *
32  */
33 class ISettingsEventListener
34 {
35 public:
36         virtual ~ISettingsEventListener(void){};
37
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;
52 };
53
54 #endif // _PHN_I_SETTINGS_EVENT_LISTENER_H_