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