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 _VOICE_CALL_DEVICE_H_
19 #define _VOICE_CALL_DEVICE_H_
21 #include "voice-call-core.h"
23 * This function initialize earjack event.
25 * @return Returns TRUE on success or FALSE on failure
26 * @param[in] pcall_core Handle to voicecall core
28 gboolean _voicecall_dvc_earjack_init(call_vc_core_state_t *pcall_core);
31 * This function gets the earjack status
34 * @param[in] pcall_core Handle to voicecall core
36 void _voicecall_dvc_get_earjack_status(call_vc_core_state_t *pcall_core);
39 * This function gets the earjack is connected or not
42 * @param[in] pcall_core Handle to voicecall core
44 gboolean _voicecall_dvc_get_earjack_connected(void);
47 * This function control the lcd status.
50 * @param[in] state one of voicecall_lcd_control_t members.
52 void _voicecall_dvc_control_lcd_state(voicecall_lcd_control_t state);
55 * This function return the proximity sensor status.
57 * @return int proximity sensor status. 1:new 2:far
60 int _voicecall_dvc_get_proximity_sensor_state(void);
63 * This function init proximity sensor.
65 * @return gboolean init success or not/
68 gboolean _voicecall_dvc_proximity_sensor_init(void *data);
71 * This function init proximity sensor.
73 * @return gboolean init success or not/
76 gboolean _voicecall_dvc_proximity_sensor_deinit(void);