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 the AOC Event
37 * @return Returns TRUE on success and FALSE on failure
38 * @param[in] pcall_agent Pointer to the call agent state
39 * @param[in] call_handle Pointet to SAT engine return call structure
40 * @param[in] ptapi_aoc_info AOC info associated with the AOC Event
42 gboolean _vc_core_tapi_event_handle_aoc(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallAocInfo_t *pTapiAocInfo);
45 * This function retreives the voicecall engine specific end cause type for the given tapi end cause type
47 * @return Returns TRUE on success and FALSE on failure
48 * @param[in] pcall_agent Pointer to the call agent state
49 * @param[in] noti_id tapi event type
50 * @param[in] cause tapi call end cause
51 * @param[out] end_cause_type voicecall engine end cause
53 void _vc_core_tapi_event_get_end_cause_type(call_vc_callagent_state_t *pcall_agent, const char *noti_id, TelTapiEndCause_t cause, voice_call_end_cause_type_t *end_cause_type);
56 * This function Copies Telephony incoming call data to voice call incoming call data
59 * @param[in] pcall_agent Handle to voicecall agent
60 * @param[in] callInfo Telephony Incoming Call Data
61 * @param[out] pcallobject_info Voicecall Engine Incoming Call Dta
63 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);
66 * This function handles the incoming event
68 * @return Returns TRUE on success and FALSE on failure
69 * @param[in] pcall_agent Pointer to the call agent state
70 * @param[in] call_handle Incoming call handle
71 * @param[in] callInfo Incoming call info associated with the incoming call
73 gboolean _vc_core_tapi_event_handle_incoming_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallIncomingCallInfo_t *callInfo);
76 * This function handles tapi origination event
78 * @return Returns TRUE on success and FALSE on failure
79 * @param[in] pcall_agent Pointer to the call agent state
80 * @param[in] call_handle Call Handle associated with the alert event
82 gboolean _vc_core_tapi_event_handle_originated_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle);
85 * This function handles tapi alert 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_alert_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle);
94 * This function handles the call end 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] type Tapi Event Type
99 * @param[in] handle Call Handle of the call being ended
100 * @param[in] cause Tapi End Cause
102 gboolean _vc_core_tapi_event_handle_call_end_event(call_vc_callagent_state_t *pcall_agent, const char * noti_id, call_vc_handle handle, TelTapiEndCause_t cause);
105 * This function handles the tapi call connect event
107 * @return Returns TRUE on success and FALSE on failure
108 * @param[in] pcall_agent Pointer to the call agent state
109 * @param[in] call_handle call handle assoicated with the call being connected
111 gboolean _vc_core_tapi_event_handle_call_connect_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle);
114 * This function handles call hold 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 held
119 * @param[in] status tapi cause incase of hold failed
121 gboolean _vc_core_tapi_event_handle_call_held_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallCause_t status);
124 * This function handles tapi call activate/retreive event
126 * @return Returns TRUE on success and FALSE on failure
127 * @param[in] pcall_agent Pointer to the call agent state
128 * @param[in] call_handle call handle assoicated with the call being held
129 * @param[in] status tapi cause incase of hold failed
131 gboolean _vc_core_tapi_event_handle_call_retrieve_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallCause_t status);
134 * This function handles call join/conference event
136 * @return Returns TRUE on success and FALSE on failure
137 * @param[in] pcall_agent Pointer to the call agent state
138 * @param[in] call_handle call handle assoicated with the call being held
139 * @param[in] status tapi cause incase of hold failed
141 gboolean _vc_core_tapi_event_handle_call_join_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallCause_t status);
144 * This function handles call split/private call event
146 * @return Returns TRUE on success and FALSE on failure
147 * @param[in] pcall_agent Pointer to the call agent state
148 * @param[in] call_handle call handle assoicated with the call being held
149 * @param[in] status tapi cause incase of hold failed
151 gboolean _vc_core_tapi_event_handle_call_split_event(call_vc_callagent_state_t *pcall_agent, call_vc_handle call_handle, TelCallCause_t status);
154 * This function handles the call transfer event
156 * @return Returns TRUE on success and FALSE on failure
157 * @param[in] pcall_agent Pointer to the call agent state
158 * @param[in] status tapi cause incase of hold failed
160 gboolean _vc_core_tapi_event_handle_call_transfer_event(call_vc_callagent_state_t *pcall_agent, TelCallCause_t status);
162 #endif /* __VC_CORE_TAPI_EVENT_H_ */