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_SERVICE_H_
19 #define _VOICE_CALL_SERVICE_H_
21 #include "voice-call-core.h"
22 #include "voice-call-engine-msg.h"
25 * This struct defines a contact record information for voice-call
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;
37 * This function on the loud speaker state
40 * @param[in] pcall_core Handle to voicecall core
42 gboolean voicecall_service_loudspeaker_on(call_vc_core_state_t *pcall_core);
45 * This function off the loud speaker state
48 * @param[in] pcall_core Handle to voicecall core
50 gboolean voicecall_service_loudspeaker_off(call_vc_core_state_t *pcall_core);
53 * This function is mute on
56 * @param[in] pcall_core Handle to voicecall core
58 gboolean voicecall_service_mute_status_on(call_vc_core_state_t *pcall_core);
61 * This function is mute off
64 * @param[in] pcall_core Handle to voicecall core
66 gboolean voicecall_service_mute_status_off(call_vc_core_state_t *pcall_core);
69 * This function set volume level.
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
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);