2 * Copyright 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://www.tizenopensource.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 #ifndef __VC_CORE_TAPI_EVENT_H_
19 #define __VC_CORE_TAPI_EVENT_H_
21 #include "vc-core-util.h"
22 #include "vc-core-callagent.h"
23 #include "vc-core-engine.h"
26 * This function handles the tapi connected line indication handle
28 * @return Returns TRUE on success and FALSE on failure
29 * @param[in] pcall_agent Pointer to the call agent state
30 * @param[in] call_handle Tapi Call Handle associtated with connected line indication
32 gboolean _vc_core_tapi_event_connected_line_ind_handle(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallConnectedNumberInfo_t *connected_number_info);
35 * This function handles different type of tapi indications given in tapi_event_type
37 * @return Returns TRUE on success and FALSE on failure
38 * @param[in] pcall_agent Pointer to the call agent state
39 * @param[in] tapi_event_type Tapi Event Type
40 * @param[in] param2 sub param associated with tapi_event_type
42 gboolean _vc_core_tapi_event_handle_notification(call_vc_callagent_state_t *pcall_agent, int tapi_event_type, int param2);
45 * This function handles the AOC Event
47 * @return Returns TRUE on success and FALSE on failure
48 * @param[in] pcall_agent Pointer to the call agent state
49 * @param[in] call_handle Pointet to SAT engine return call structure
50 * @param[in] ptapi_aoc_info AOC info associated with the AOC Event
52 gboolean _vc_core_tapi_event_handle_aoc(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallAocInfo_t *pTapiAocInfo);
55 * This function retreives the voicecall engine specific end cause type for the given tapi end cause type
57 * @return Returns TRUE on success and FALSE on failure
58 * @param[in] type tapi event type
59 * @param[in] cause tapi call end cause
60 * @param[out] end_cause_type voicecall engine end cause
62 void _vc_core_tapi_event_get_end_cause_type(int type, TelTapiEndCause_t cause, voice_call_end_cause_type_t *end_cause_type);
65 * This function Copies Telephony incoming call data to voice call incoming call data
68 * @param[in] pcall_agent Handle to voicecall agent
69 * @param[in] callInfo Telephony Incoming Call Data
70 * @param[out] pcallobject_info Voicecall Engine Incoming Call Dta
72 void _vc_core_tapi_event_copy_incoming_call_data(call_vc_callagent_state_t *pcall_agent, TelCallIncomingCallInfo_t *callInfo, call_vc_call_objectinfo_t *pcallobject_info);
75 * This function handles the incoming event
77 * @return Returns TRUE on success and FALSE on failure
78 * @param[in] pcall_agent Pointer to the call agent state
79 * @param[in] call_handle Incoming call handle
80 * @param[in] callInfo Incoming call info associated with the incoming call
82 gboolean _vc_core_tapi_event_handle_incoming_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallIncomingCallInfo_t *callInfo);
85 * This function handles tapi origination event
87 * @return Returns TRUE on success and FALSE on failure
88 * @param[in] pcall_agent Pointer to the call agent state
89 * @param[in] call_handle Call Handle associated with the alert event
91 gboolean _vc_core_tapi_event_handle_originated_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle);
94 * This function handles tapi alert event
96 * @return Returns TRUE on success and FALSE on failure
97 * @param[in] pcall_agent Pointer to the call agent state
98 * @param[in] call_handle Call Handle associated with the alert event
100 gboolean _vc_core_tapi_event_handle_alert_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle);
103 * This function handles the call end event
105 * @return Returns TRUE on success and FALSE on failure
106 * @param[in] pcall_agent Pointer to the call agent state
107 * @param[in] type Tapi Event Type
108 * @param[in] handle Call Handle of the call being ended
109 * @param[in] cause Tapi End Cause
111 gboolean _vc_core_tapi_event_handle_call_end_event(call_vc_callagent_state_t *pcall_agent, int type, call_vc_handle handle, TelTapiEndCause_t cause);
114 * This function handles the tapi call connect event
116 * @return Returns TRUE on success and FALSE on failure
117 * @param[in] pcall_agent Pointer to the call agent state
118 * @param[in] call_handle call handle assoicated with the call being connected
120 gboolean _vc_core_tapi_event_handle_call_connect_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle);
123 * This function handles call hold event
125 * @return Returns TRUE on success and FALSE on failure
126 * @param[in] pcall_agent Pointer to the call agent state
127 * @param[in] call_handle call handle assoicated with the call being held
128 * @param[in] status tapi cause incase of hold failed
130 gboolean _vc_core_tapi_event_handle_call_held_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallCause_t status);
133 * This function handles tapi call activate/retreive event
135 * @return Returns TRUE on success and FALSE on failure
136 * @param[in] pcall_agent Pointer to the call agent state
137 * @param[in] call_handle call handle assoicated with the call being held
138 * @param[in] status tapi cause incase of hold failed
140 gboolean _vc_core_tapi_event_handle_call_retrieve_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallCause_t status);
143 * This function handles call join/conference event
145 * @return Returns TRUE on success and FALSE on failure
146 * @param[in] pcall_agent Pointer to the call agent state
147 * @param[in] call_handle call handle assoicated with the call being held
148 * @param[in] status tapi cause incase of hold failed
150 gboolean _vc_core_tapi_event_handle_call_join_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallCause_t status);
153 * This function handles call split/private call event
155 * @return Returns TRUE on success and FALSE on failure
156 * @param[in] pcall_agent Pointer to the call agent state
157 * @param[in] call_handle call handle assoicated with the call being held
158 * @param[in] status tapi cause incase of hold failed
160 gboolean _vc_core_tapi_event_handle_call_split_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallCause_t status);
163 * This function handles the call transfer event
165 * @return Returns TRUE on success and FALSE on failure
166 * @param[in] pcall_agent Pointer to the call agent state
167 * @param[in] status tapi cause incase of hold failed
169 gboolean _vc_core_tapi_event_handle_call_transfer_event(call_vc_callagent_state_t *pcall_agent, TelCallCause_t status);
171 #endif /* __VC_CORE_TAPI_EVENT_H_ */