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(QList<PlayListTrack *> tracks);
40 void replaceTracks(QList<PlayListTrack *> tracks);
41 QList<PlayListGroup *> groups()
const;
42 QList<PlayListTrack *> tracks()
const;
43 QList<PlayListItem *> items()
const;
45 int trackCount()
const;
46 QList<PlayListItem *> mid(
int pos,
int count)
const;
48 bool isSelected(
int index)
const;
49 void setSelected(
int index,
bool selected);
50 void clearSelection();
56 int indexOfTrack(
int index)
const;
59 void removeTracks(QList<PlayListTrack *> tracks);
60 bool move(QList<int> indexes,
int from,
int to);
61 QList<PlayListTrack *> takeAllTracks();
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