2 // C++ Interface: playlistlistmodel
4 // Author: Oliver Groß <z.o.gross@gmx.de>, (C) 2008
6 // Copyright: See COPYING file that comes with this distribution
8 #ifndef MUSIQUE_PLAYLISTLISTMODEL_H
9 #define MUSIQUE_PLAYLISTLISTMODEL_H
11 #include <QAbstractListModel>
12 #include <xmmsclient/xmmsclient-qt4.h>
15 class CCollectionsModel
: public QAbstractListModel
{
18 CCollectionsModel(XmmsQt::QMedialib
* medialib
, QObject
* parent
= 0);
21 QVariant
data(const QModelIndex
& index
, int role
) const;
22 QVariant
headerData(int section
, Qt::Orientation orientation
, int role
= Qt::DisplayRole
) const;
23 QModelIndex
index(int row
, int column
, const QModelIndex
& parent
= QModelIndex()) const;
24 int rowCount(const QModelIndex
& parent
= QModelIndex()) const;
26 XmmsQt::QMedialib
* m_Medialib
;