tizen 2.4 release
[apps/home/quickpanel.git] / daemon / media.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
18 #ifndef __QUICKPANEL_MEDIA_H__
19 #define __QUICKPANEL_MEDIA_H__
20
21 #define QP_PLAY_DURATION_LIMIT 15
22
23 extern int quickpanel_media_player_play(sound_type_e sound_type, const char *sound_file);
24 extern void quickpanel_media_player_stop(void);
25 extern int quickpanel_media_is_sound_enabled(void);
26 extern int quickpanel_media_is_vib_enabled(void);
27 extern void quickpanel_media_play_feedback(void);
28 extern int quickpanel_media_set_mute_toggle(void);
29 extern void quickpanel_media_player_id_set(int id);
30 extern int quickpanel_media_player_id_get(void);
31 extern Eina_Bool quickpanel_media_playable_check(const char *file_path);
32 extern int quickpanel_media_player_is_drm_error(int error_code);
33 extern void quickpanel_media_init(void);
34 extern void quickpanel_media_fini(void);
35
36 #endif