453dde1d96f55303e72ac26d272a9d86390112a5
[apps/home/call.git] / call-engine / include / voice-call-device.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
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
7  *
8  * http://www.tizenopensource.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 #ifndef _VOICE_CALL_DEVICE_H_
19 #define _VOICE_CALL_DEVICE_H_
20
21 #include "voice-call-core.h"
22 /**
23  * This function initialize earjack event.
24  *
25  * @return              Returns TRUE on success or FALSE on failure
26  * @param[in]           pcall_core                      Handle to voicecall core                
27  */
28 gboolean _voicecall_dvc_earjack_init(call_vc_core_state_t *pcall_core);
29
30 /**
31  * This function gets the earjack status 
32  *
33  * @return              void
34  * @param[in]           pcall_core              Handle to voicecall core                
35  */
36 void _voicecall_dvc_get_earjack_status(call_vc_core_state_t *pcall_core);
37
38 /**
39  * This function gets the earjack is connected or not
40  *
41  * @return              void
42  * @param[in]           pcall_core              Handle to voicecall core                
43  */
44 gboolean _voicecall_dvc_get_earjack_connected(void);
45
46 /**
47  * This function control the lcd status.
48  *
49  * @return      void
50  * @param[in]   state   one of voicecall_lcd_control_t members.
51  */
52 void _voicecall_dvc_control_lcd_state(voicecall_lcd_control_t state);
53
54 /**
55  * This function return the proximity sensor status.
56  *
57  * @return      int             proximity sensor status. 1:new 2:far
58  * @param[in]   void
59  */
60 int _voicecall_dvc_get_proximity_sensor_state(void);
61
62  /**
63  * This function init proximity sensor.
64  *
65  * @return      gboolean        init success or not/
66  * @param[in]   void *
67  */
68 gboolean _voicecall_dvc_proximity_sensor_init(void *data);
69
70 /**
71  * This function init proximity sensor.
72  *
73  * @return      gboolean        init success or not/
74  * @param[in]   void *
75  */
76 gboolean _voicecall_dvc_proximity_sensor_deinit(void);
77 #endif