Remove security-server dependency
[apps/core/preloaded/lockscreen.git] / include / music_player.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 __MUSIC_PLAYER_H__
18 #define __MUSIC_PLAYER_H__
19
20 #define MUSIC_PLAYER_NAME "[music-minicontrol.LOCKSCREEN]"
21 #define SOUND_PLAYER_NAME "[sound-minicontrol.LOCKSCREEN]"
22 #define MUSIC_PLAYER "org.tizen.music-player"
23 #define SOUND_PLAYER "org.tizen.sound-player"
24 #define LOCK_MUSIC_PLAYER_MINICONTROL_NAME_KEY "__minicontrol_name__"
25
26 typedef enum {
27         MUSIC_STATE_NO_MUSIC = 0,
28         MUSIC_STATE_MUSIC_PLAYER_ON = 1,
29         MUSIC_STATE_SOUND_PLAYER_ON = 2,
30         MUSIC_STATE_MAX,
31 } music_state_e;
32
33 typedef enum {
34         READ_FILE_ERROR_NONE = 0,
35         READ_FILE_ERROR_EOF = 1,
36         READ_FILE_ERROR_ERROR = 2,
37         READ_FILE_MAX,
38 } read_file_error_e;
39
40 music_state_e lock_music_player_state_get(void);
41 Evas_Object *lock_music_player_minicontroller_get(void);
42
43 void lock_music_player_bg_set(Evas_Object *bg, music_state_e music_state);
44 void lock_music_player_bg_unset(void);
45 void lock_music_player_minicontroller_hide_event_send(void);
46 Evas_Object *lock_music_player_minicontroller_create(music_state_e state, Evas_Object *layout, const char *name);
47 void lock_music_player_minicontroller_destroy(void);
48
49 #endif