2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __AIR_MEDIAHUB_UTIL_H__
18 #define __AIR_MEDIAHUB_UTIL_H__
20 #include <media_content.h>
21 #include <app_media.h>
23 void util_set_alpha_color(Evas_Object *obj, int alpha);
24 Evas_Object *util_add_box(Evas_Object *base);
25 Evas_Object *util_add_gengrid(Evas_Object *base,
26 int item_size_x, int item_size_y);
27 Evas_Object *util_add_genlist(Evas_Object *base);
28 Evas_Object *util_add_image(Evas_Object *base, const char *file);
29 Evas_Object *util_add_scroller(Evas_Object *base);
31 void util_time_string(char *str, int size, unsigned int ms, bool full);
32 void util_up_string(char *str);
34 int util_get_media_index(Eina_List *list, void *info);
35 app_media *util_find_media_info(Eina_List *list, const char *id);
37 #endif /* __AIR_MEDIAHUB_UTIL_H__ */