tizen 2.3 release
[apps/home/lockscreen.git] / include / background-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 #ifndef __BACKGROUND_VIEW_H__
18 #define __BACKGROUND_VIEW_H__
19
20 #define LOCK_BG_DEFAULT 1
21 #define LOCK_BG_ALBUM_ART 2
22
23 /**
24  * Sets next image from wallpaper dir
25  * @param wallpaper directory
26  */
27 extern void *get_next_background_image(const char *dir);
28
29 /**
30  * Function updates background image on vconf key (VCONFKEY_IDLE_LOCK_BGSET) value change. Function is used as callback routine for vconf_notify_key_changed().
31  * @param vconf node
32  * @param background object
33  */
34 void update_background_image_cb(keynode_t *node, void *data);
35
36 extern int background_image_set(int type, const char *file, int force);
37 extern int background_image_set_to(Evas_Object *layout, Evas_Object *bg, int type, const char *file, int force);
38 extern void background_image_next_set(void);
39
40 #endif