2 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
4 * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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.
20 * Created on: Oct 8, 2013
24 #ifndef SETTING_SOUND_H_
25 #define SETTING_SOUND_H_
27 #include <Elementary.h>
32 #include <sound_manager.h>
35 #define RINGTONE_MAX_COUNT 5
37 #define TOUCH_SOUND_ENABLE 1
38 #define TOUCH_SOUND_DISABLE 0
47 VIBRATION_LEVEL_LOW_INT = 1,
48 VIBRATION_LEVEL_MID_INT = 2,
49 VIBRATION_LEVEL_HIGH_INT = 3
52 struct _sound_menu_item {
54 int is_enable_touch_sound;
55 void (*func)(void *data, Evas_Object *obj, void *event_info);
58 typedef struct Sound_Item_Data
61 Elm_Object_Item *item;
65 char * _gl_Sound_title_get(void *data, Evas_Object *obj, const char *part);
66 Evas_Object * _gl_sound_check_get(void *data, Evas_Object *obj, const char *part);
67 Evas_Object* _create_sound_list(void* data);
68 void _sound_chk_changed_cb(void *data, Evas_Object *obj, void *event_info);
69 void _volume_cb(void *data, Evas_Object *obj, void *event_info);
70 void _sound_mode_cb(void *data, Evas_Object *obj, void *event_info);
71 void _touch_sound_cb(void *data, Evas_Object *obj, void *event_info);
72 void _ringtone_cb(void *data, Evas_Object *obj, void *event_info);
73 void _noti_cb(void *data, Evas_Object *obj, void *event_info);
74 void _vibrate_cb(void *data, Evas_Object *obj, void *event_info);
75 void _preferred_cb(void *data, Evas_Object *obj, void *event_info);
76 void _show_sound_mode_list(void* data);
77 void _show_ringtone_popup_cb(void *data, Evas_Object *obj, void *event_info);
78 void _show_notification_popup_cb(void *data, Evas_Object *obj, void *event_info);
79 void _show_vibration_popup_cb(void *data, Evas_Object *obj, void *event_info);
80 void _show_pref_arm_mode_list(void* data);
83 void _clear_sound_resource();
84 Eina_Bool _clear_sound_cb(void *data, Elm_Object_Item *it);
86 void _stop_wav_player();
87 void _stop_all_sound_play();
89 #endif /* SETTING_SOUND_H_ */