tizen 2.3.1 release
[apps/home/volume-app.git] / include / key_event.h
1 /*
2  * Copyright (c) 2009-2014 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 #ifndef __VOLUME_KEY_EVENT_H__
19 #define __VOLUME_KEY_EVENT_H__
20
21 Ecore_X_Window volume_key_event_input_window_get(void);
22 Ecore_Event_Handler *volume_key_event_handler_volume_up_get(void);
23 Ecore_Event_Handler *volume_key_event_handler_volume_down_get(void);
24 Ecore_Event_Handler *volume_key_event_handler_qp_state_check(void);
25 Eina_Bool volume_key_event_is_pressing_get(void);
26 int volume_key_event_count_grabed_get(void);
27 void volume_key_event_count_grabed_set(int val);
28
29 sound_type_e volume_key_event_sound_type_at_key_pressed_get(void);
30
31 int volume_key_event_key_grab(Ecore_X_Window _xwin, int grab_mode);
32 volume_error_e volume_key_event_key_ungrab(void);
33
34 void volume_key_event_handler_add(void);
35 void volume_key_event_handler_del(void);
36 volume_error_e volume_key_event_input_window_create(void);
37
38 #endif /* __VOLUME_KEY_EVENT_H__ */