tizen 2.3 release
[apps/home/b2-clocksetting.git] / include / setting-sound.h
1 /*
2  * Copyright (c) 2010 Samsung Electronics, Inc.
3  * All rights reserved.
4  *
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.
10  */
11 /*
12  * setting-sound.h
13  *
14  *  Created on: Oct 8, 2013
15  *      Author: min-hoyun
16  */
17
18 #ifndef SETTING_SOUND_H_
19 #define SETTING_SOUND_H_
20
21 #include <Elementary.h>
22 #include <libintl.h>
23 #include <string.h>
24
25 #include <player.h>
26 #include <sound_manager.h>
27
28 #define ITEM_SIZE                       6       
29 //#define RINGTONE_MAX_COUNT            5
30 #define RINGTONE_MAX_COUNT              6
31
32 #define TOUCH_SOUND_ENABLE              1
33 #define TOUCH_SOUND_DISABLE     0
34
35
36 enum {
37         VIBRATION_LEVEL_HIGH,
38         VIBRATION_LEVEL_LOW
39 };
40
41 enum {
42         VIBRATION_LEVEL_LOW_INT  = 1,
43         VIBRATION_LEVEL_MID_INT  = 2,
44         VIBRATION_LEVEL_HIGH_INT = 3
45 };
46
47 struct _sound_menu_item {
48         char *name;
49         int is_enable_touch_sound;
50         void (*func)(void *data, Evas_Object *obj, void *event_info);
51 };
52
53 typedef struct Sound_Item_Data
54 {
55         int index;
56         Elm_Object_Item *item;
57         Evas_Object *check;
58 } Sound_Item_Data;
59
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);
76
77 void _initialize();
78 void _clear_sound_resource();
79 Eina_Bool _clear_sound_cb(void *data, Elm_Object_Item *it);
80 void _stop_player();
81 void _stop_wav_player();
82 void _stop_all_sound_play();
83
84 #endif /* SETTING_SOUND_H_ */