video_view.h 1.96 KB
Newer Older
Nicolas Pomepuy's avatar
Nicolas Pomepuy committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
/*****************************************************************************
 * Copyright © 2015 VideoLAN, VideoLabs SAS
 *****************************************************************************
 *
 * Authors: Nicolas Rechatin [nicolas@videolabs.io]
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/
/*
 * By committing to this project, you allow VideoLAN and VideoLabs to relicense
 * the code to a different OSI approved license, in case it is required for
 * compatibility with the Store
 *****************************************************************************/

27 28 29
#ifndef VIDEO_VIEW_H_
#define VIDEO_VIEW_H_

30
#include "ui/interface.h"
31 32
#include <Elementary.h>

33
typedef struct video_list_item video_list_item;
Nicolas Pomepuy's avatar
Nicolas Pomepuy committed
34

Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
35
/* */
36
interface_view*
37
create_video_view(interface *intf, Evas_Object *parent);
Nicolas Pomepuy's avatar
Nicolas Pomepuy committed
38

Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
39 40 41 42
void
destroy_video_view(interface_view *);

/* Controller / View */
43
void
44
video_view_update(view_sys* vv, Eina_List* p_content);
45

46
video_list_item *
47
video_view_append_item(view_sys *videoview, media_item* p_item);
48 49

void
50
video_view_clear(view_sys* videoview);
51 52 53 54 55

const media_item*
video_list_item_get_media_item(video_list_item* p_item);

void
56
video_list_item_set_media_item(video_list_item* p_item, media_item* p_media_item);
57

58
#endif /* VIDEO_VIEW_H_ */