e831bec31981178d92007111fc29626b286befab
[apps/home/call.git] / call-engine / include / voice-call-service.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_SERVICE_H_
19 #define _VOICE_CALL_SERVICE_H_
20
21 #include "voice-call-core.h"
22 #include "voice-call-engine-msg.h"
23
24 /**
25 * This struct defines a contact record information for voice-call
26 */
27 typedef struct {
28         unsigned int ct_index;                                          /**<Specifies the index for a record  */
29         int phone_type;                                                         /**<Specified the phone type */
30         char display_name[VC_DISPLAY_NAME_LENGTH_MAX];                                    /**<Specifies the display name character data of a record in the contact table. */
31         char caller_id_path[VC_IMAGE_PATH_LENGTH_MAX];                                    /**<CTS_IMG_NORMAL><Specifies the caller id path of a record in the contact table. */
32         char caller_full_id_path[VC_IMAGE_PATH_LENGTH_MAX];                                    /**<CTS_IMG_FULL>*/
33         char ring_tone[VC_RINGTONE_PATH_LENGTH_MAX];                                            /**<Specifies the ring tone character data of a record in the contact table. */
34 } voicecall_contact_info_t;
35
36 /**
37  * This function on the loud speaker state
38  *
39  * @return              gboolean
40  * @param[in]           pcall_core              Handle to voicecall core                
41  */
42 gboolean voicecall_service_loudspeaker_on(call_vc_core_state_t *pcall_core);
43
44 /**
45  * This function off the loud speaker state
46  *
47  * @return              gboolean
48  * @param[in]           pcall_core              Handle to voicecall core                
49  */
50 gboolean voicecall_service_loudspeaker_off(call_vc_core_state_t *pcall_core);
51
52 /**
53  * This function is mute on
54  *
55  * @return              gboolean
56  * @param[in]           pcall_core              Handle to voicecall core                
57  */
58 gboolean voicecall_service_mute_status_on(call_vc_core_state_t *pcall_core);
59
60 /**
61  * This function is mute off
62  *
63  * @return              gboolean
64  * @param[in]           pcall_core              Handle to voicecall core                
65  */
66 gboolean voicecall_service_mute_status_off(call_vc_core_state_t *pcall_core);
67
68 /**
69  * This function set volume level.
70  *
71  * @return              Returns TRUE on success or FALSE on failure
72  * @param[in]           pcall_core                      Handle to voicecall core                
73  * @param[in]           vol_alert_type                  volume alert type
74  * @param[in]           volume_level                    volume level to be set
75  */
76 gboolean voicecall_service_set_volume(call_vc_core_state_t *pcall_core, voicecall_snd_volume_alert_type_t vol_alert_type, int volume_level);
77 #endif