icon path fix
[musique.git] / collectionsmodel.h
blob3dd712d7e27c0dfe36d6112c274bb2bb6a596df2
1 //
2 // C++ Interface: playlistlistmodel
3 //
4 // Author: Oliver Groß <z.o.gross@gmx.de>, (C) 2008
5 //
6 // Copyright: See COPYING file that comes with this distribution
7 //
8 #ifndef MUSIQUE_PLAYLISTLISTMODEL_H
9 #define MUSIQUE_PLAYLISTLISTMODEL_H
11 #include <QAbstractListModel>
12 #include <xmmsclient/xmmsclient-qt4.h>
14 namespace musique {
15 class CCollectionsModel : public QAbstractListModel {
16 Q_OBJECT
17 public:
18 CCollectionsModel(XmmsQt::QMedialib * medialib, QObject * parent = 0);
19 ~CCollectionsModel();
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;
25 private:
26 XmmsQt::QMedialib * m_Medialib;
30 #endif