1 /*****************************************************************************
2 * ml_item.hpp: the media library's result item
3 *****************************************************************************
4 * Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS
7 * Authors: Antoine Lejeune <phytos@videolan.org>
8 * Jean-Philippe André <jpeg@videolan.org>
9 * Rémi Duraffort <ivoire@videolan.org>
10 * Adrien Maglo <magsoft@videolan.org>
11 * Srikanth Raju <srikiraju#gmail#com>
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
26 *****************************************************************************/
28 #ifndef _MEDIA_LIBRARY_MLITEM_H
29 #define _MEDIA_LIBRARY_MLITEM_H
37 #include <vlc_common.h>
38 #include <vlc_interface.h>
39 #include <vlc_media_library.h>
41 #include "playlist_item.hpp"
42 #include "ml_model.hpp"
47 class MLItem : public AbstractPLItem
52 MLItem( intf_thread_t *_p_intf,
53 ml_media_t *p_media, MLItem *p_parent );
55 bool operator<( MLItem* item );
60 input_item_t *inputItem();
61 AbstractPLItem* child( int row ) const;
62 virtual QUrl getURI() const;
63 virtual QString getTitle() const;
66 QVariant data( ml_select_e meta ) const;
67 bool setData( ml_select_e meta, const QVariant &data );
68 // Media structure connections
69 ml_media_t* getMedia() const;
72 media_library_t* p_ml;