Fix coverity issue 1149129
[apps/native/volume-app.git] / inc / view.h
1 /*
2  * Copyright (c) 2009-2015 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 #include "tzsh_volume_service.h"
18
19 #ifndef __VOLUME_VIEW_H__
20 #define __VOLUME_VIEW_H__
21
22 extern sound_type_e volume_view_pre_sound_type_get(void);
23 extern volume_error_e volume_view_change_slider_by_type(sound_type_e type, bool bt_opened, int earphone_connected);
24
25 extern Evas_Object *volume_view_win_get(void);
26 extern tzsh_h volume_view_tzsh_get(void);
27 extern tzsh_volume_service_h volume_view_service_get(void);
28 extern Evas_Object *volume_view_evas_get(void);
29 extern Evas_Object *volume_view_outer_layout_get(void);
30 extern Evas_Object *volume_view_icon_volume_get(void);
31 extern Evas_Object *volume_view_icon_setting_get(void);
32 extern Evas_Object *volume_view_slider_get(void);
33 extern Evas_Object *volume_view_warning_popup_get(void);
34 extern Eina_Bool volume_view_is_registered_callback_get(void);
35 extern Eina_Bool volume_view_is_slider_touching_get(void);
36 extern void volume_view_is_registered_callback_set(Eina_Bool val);
37 extern int volume_mute_toggle_set(void);
38 extern volume_error_e volume_view_open_warning_popup(void);
39 extern void volume_view_destroy_warning_popup(void);
40
41 extern volume_error_e volume_view_slider_value_set(int val);
42 extern void volume_view_volume_icon_set(sound_type_e sound_type, int sound, int vibration, bool bt_opened);
43 extern void volume_view_setting_icon_set(const char *file);
44 extern void volume_view_setting_icon_callback_del(void);
45
46 extern volume_error_e volume_view_window_show(sound_type_e type);
47 extern volume_error_e volume_view_window_hide(void);
48
49 extern volume_error_e volume_view_layout_create(Evas_Object *win);
50 extern Evas_Object *volume_view_window_create(void);
51
52 extern Evas_Object* show_lockscreen_splash(const char *bg_path);
53 extern volume_error_e hide_lockscreen_splash(void);
54 extern volume_error_e volume_view_send_warning_signal(Eina_Bool warning);
55 extern void volume_view_accessible_create(Evas_Object *win);
56 extern void volume_view_volume_icon_name_set_for_access(sound_type_e sound_type);
57
58
59 #endif /* __VOLUME_VIEW_H__ */