tizen 2.3 release
[apps/home/b2-clocksetting.git] / include / setting-volume.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-volume.h
13  *
14  *  Created on: Oct 8, 2013
15  *      Author: min-hoyun
16  */
17
18 #ifndef SETTING_VOLUME_H_
19 #define SETTING_VOLUME_H_
20
21 #include <Elementary.h>
22 #include <libintl.h>
23 #include <string.h>
24 #include <sound_manager.h>
25
26 #include "setting-common-sound.h"
27
28 #include "util.h"
29
30 #define VOLUMN_ITEM_COUNT       4
31
32
33 struct _volume_menu_item {
34         char *name;
35         void (*func)(void *data, Evas_Object *obj, void *event_info);
36 };
37
38 player_h * player;
39
40 int volume_index;
41 int original_volume;
42 int original_sound_mode;
43 int curr_sound_type;
44 int is_wav_playing_vol;
45 int sound_id_vol;
46
47 static appdata* g_ad;
48 static Evas_Object * g_volume_spinner = NULL;
49
50 //--------------------------------------------------------------//
51
52 char * _gl_volume_title_get(void *data, Evas_Object *obj, const char *part);
53 Evas_Object* _create_volume_list(void* data);
54
55 void _show_multimedia_popup(void *data, Evas_Object *obj, void *event_info);
56 void _show_ringtone_popup(void *data, Evas_Object *obj, void *event_info);
57 void _show_notification_popup(void *data, Evas_Object *obj, void *event_info);
58 void _show_system_popup(void *data, Evas_Object *obj, void *event_info);
59
60
61 static void _gl_multimedia_cb(void *data, Evas_Object *obj, void *event_info);
62 static void _gl_ringtone_cb(void *data, Evas_Object *obj, void *event_info);
63 static void _gl_notification_cb(void *data, Evas_Object *obj, void *event_info);
64 static void _gl_system_cb(void *data, Evas_Object *obj, void *event_info);
65
66 void _initialize_volume();
67 void _clear_volume_resources();
68 void _clear_volume_cb(void *data , Evas *e, Evas_Object *obj, void *event_info);
69
70 void _stop_all_volume_sound();
71 void _update_volume_screen_on_resume();
72
73 #endif /* SETTING_VOLUME_H_ */