2 * Copyright (c) 2010 Samsung Electronics, Inc.
5 * This software is a confidential and proprietary information
6 * of Samsung Electronics, Inc. ("Confidential Information"). You
7 * shall not disclose such Confidential Information and shall use
8 * it only in accordance with the terms of the license agreement
9 * you entered into with Samsung Electronics.
14 * Created on: Oct 8, 2013
18 #ifndef SETTING_SOUND_H_
19 #define SETTING_SOUND_H_
21 #include <Elementary.h>
26 #include <sound_manager.h>
29 //#define RINGTONE_MAX_COUNT 5
30 #define RINGTONE_MAX_COUNT 6
32 #define TOUCH_SOUND_ENABLE 1
33 #define TOUCH_SOUND_DISABLE 0
42 VIBRATION_LEVEL_LOW_INT = 1,
43 VIBRATION_LEVEL_MID_INT = 2,
44 VIBRATION_LEVEL_HIGH_INT = 3
47 struct _sound_menu_item {
49 int is_enable_touch_sound;
50 void (*func)(void *data, Evas_Object *obj, void *event_info);
53 typedef struct Sound_Item_Data
56 Elm_Object_Item *item;
60 char * _gl_Sound_title_get(void *data, Evas_Object *obj, const char *part);
61 Evas_Object * _gl_sound_check_get(void *data, Evas_Object *obj, const char *part);
62 Evas_Object* _create_sound_list(void* data);
63 void _sound_chk_changed_cb(void *data, Evas_Object *obj, void *event_info);
64 void _volume_cb(void *data, Evas_Object *obj, void *event_info);
65 void _sound_mode_cb(void *data, Evas_Object *obj, void *event_info);
66 void _touch_sound_cb(void *data, Evas_Object *obj, void *event_info);
67 void _ringtone_cb(void *data, Evas_Object *obj, void *event_info);
68 void _noti_cb(void *data, Evas_Object *obj, void *event_info);
69 void _vibrate_cb(void *data, Evas_Object *obj, void *event_info);
70 void _preferred_cb(void *data, Evas_Object *obj, void *event_info);
71 void _show_sound_mode_list(void* data);
72 void _show_ringtone_popup_cb(void *data, Evas_Object *obj, void *event_info);
73 void _show_notification_popup_cb(void *data, Evas_Object *obj, void *event_info);
74 void _show_vibration_popup_cb(void *data, Evas_Object *obj, void *event_info);
75 void _show_pref_arm_mode_list(void* data);
78 void _clear_sound_resource();
79 Eina_Bool _clear_sound_cb(void *data, Elm_Object_Item *it);
81 void _stop_wav_player();
82 void _stop_all_sound_play();
84 #endif /* SETTING_SOUND_H_ */