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_VOLUME_H_
25 #define SETTING_VOLUME_H_
27 #include <Elementary.h>
30 #include <sound_manager.h>
32 #include "setting-common-sound.h"
36 #define VOLUMN_ITEM_COUNT 4
39 struct _volume_menu_item {
41 void (*func)(void *data, Evas_Object *obj, void *event_info);
48 int original_sound_mode;
50 int is_wav_playing_vol;
54 static Evas_Object * g_volume_spinner = NULL;
56 //--------------------------------------------------------------//
58 char * _gl_volume_title_get(void *data, Evas_Object *obj, const char *part);
59 Evas_Object* _create_volume_list(void* data);
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);
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);
72 void _initialize_volume();
73 void _clear_volume_resources();
74 void _clear_volume_cb(void *data , Evas *e, Evas_Object *obj, void *event_info);
76 void _stop_all_volume_sound();
77 void _update_volume_screen_on_resume();
79 #endif /* SETTING_VOLUME_H_ */