21 #ifndef GROUPEDCONTAINER_P_H 22 #define GROUPEDCONTAINER_P_H 24 #include "playlistcontainer_p.h" 30 class GroupedContainer :
public PlayListContainer
35 virtual ~GroupedContainer();
38 void addTracks(
const QList<PlayListTrack *> &tracks)
override;
40 void replaceTracks(
const QList<PlayListTrack *> &tracks)
override;
41 QList<PlayListGroup *> groups()
const override;
42 QList<PlayListTrack *> tracks()
const override;
43 QList<PlayListItem *> items()
const override;
44 int count()
const override;
45 int trackCount()
const override;
46 QList<PlayListItem *> mid(
int pos,
int count)
const override;
47 bool isEmpty()
const override;
48 bool isSelected(
int index)
const override;
49 void setSelected(
int index,
bool selected)
override;
50 void clearSelection()
override;
56 int indexOfTrack(
int index)
const override;
59 void removeTracks(QList<PlayListTrack *> tracks)
override;
60 bool move(
const QList<int> &indexes,
int from,
int to)
override;
61 QList<PlayListTrack *> takeAllTracks()
override;
62 void clear()
override;
64 void reverseList()
override;
65 void randomizeList()
override;
68 void updateCache()
const;
69 QList<PlayListGroup *> m_groups;
71 mutable QList<PlayListItem *> m_items;
72 mutable bool m_update;
76 #endif // GROUPEDCONTAINER_P_H The PlayListItem class provides an item for use with the PlayListModel class.
Definition: playlistitem.h:31
The PlayListTrack class provides a group for use with the PlayListModel class.
Definition: playlistgroup.h:33
The PlayListTrack class provides a track for use with the PlayListModel class.
Definition: playlisttrack.h:36