tizen 2.3.1 release
[apps/home/volume-app.git] / include / control.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 #ifndef __VOLUME_CONTROL_H__
18 #define __VOLUME_CONTROL_H__
19
20 enum {
21         IDLELOCK_ERROR = -1,
22         IDLELOCK_OFF = 0,
23         IDLELOCK_ON = 1,
24         IDLELOCK_MAX,
25 };
26
27 /* _check_status() return value */
28 enum{
29         LOCK_AND_NOT_MEDIA = -0x1,
30         UNLOCK_STATUS,
31         LOCK_AND_MEDIA,
32 };
33
34
35 int volume_control_viewport_height_get();
36 int volume_control_viewport_width_get();
37 void volume_control_show_hide_worning();
38 Eina_Bool volume_control_viewport_is_warning_visible();
39
40 bundle *volume_control_reset_bundle_get(void);
41 Eina_Bool volume_control_is_deleting_get(void);
42 Eina_Bool volume_control_is_launching_get(void);
43 int volume_control_current_angle_get(void);
44 sound_type_e volume_control_sound_type_at_show_get(void);
45
46 volume_error_e volume_control_cache_flush(void);
47
48 volume_error_e volume_control_app_launch_with_bundle(const char *op_type, const char *operation, const char *pkgname);
49 volume_error_e volume_control_mode_syspopup_launch(void);
50 int volume_control_vconf_idlelock_get(void);
51
52 int volume_control_status_check(int *lock, sound_type_e *sound_type);
53
54 Eina_Bool volume_control_show(void);
55 int volume_control_close(void);
56
57 void volume_control_vconfkey_register(void);
58 void volume_control_vconfkey_unregister(void);
59
60 volume_error_e volume_control_pause(void);
61 volume_error_e volume_control_reset(bundle *b);
62 volume_error_e volume_control_initialize(void);
63 void volume_control_deinitialize(void);
64
65 #endif /* __VOLUME_CONTROL_H__ */