1 #ifndef PLAYLISTMODEL_H
2 #define PLAYLISTMODEL_H
4 #include <QAbstractItemModel>
5 #include <QMediaPlaylist>
24 QMediaPlaylist *m_playlist;
31 QMap<QModelIndex, QVariant> m_data;
48 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
51 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
54 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
57 QModelIndex parent(
const QModelIndex &child)
const;
63 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
66 QMediaPlaylist *playlist()
const;
69 void setPlaylist(QMediaPlaylist *playlist);
72 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::DisplayRole);
78 void beginInsertItems(
int start,
int end);
79 void endInsertItems();
80 void beginRemoveItems(
int start,
int end);
81 void endRemoveItems();
82 void changeItems(
int start,
int end);
86 #endif // PLAYLISTMODEL_H
Definition: playlistmodel.h:19