21 #ifndef PLAYLISTCONTAINER_P_H 22 #define PLAYLISTCONTAINER_P_H 25 #include "playlistitem.h" 26 #include "playlisttrack.h" 27 #include "playlistgroup.h" 35 class PlayListContainer
39 virtual ~PlayListContainer(){}
42 virtual void addTracks(
const QList<PlayListTrack *> &tracks) = 0;
43 virtual void insertTrack(
int index,
PlayListTrack *track) = 0;
44 virtual void replaceTracks(
const QList<PlayListTrack *> &tracks) = 0;
45 virtual QList<PlayListGroup *> groups()
const = 0;
46 virtual QList<PlayListItem *> items()
const = 0;
47 virtual QList<PlayListTrack *> tracks()
const = 0;
48 virtual int count()
const = 0;
49 virtual int trackCount()
const = 0;
50 virtual QList<PlayListItem *> mid(
int pos,
int count)
const = 0;
51 virtual bool isEmpty()
const = 0;
52 virtual bool isSelected(
int index)
const = 0;
53 virtual void setSelected(
int index,
bool selected) = 0;
54 virtual void clearSelection() = 0;
60 virtual int indexOfTrack(
int index)
const = 0;
63 virtual void removeTracks(QList<PlayListTrack *> tracks) = 0;
64 virtual bool move(
const QList<int> &indexes,
int from,
int to) = 0;
65 virtual QList<PlayListTrack *> takeAllTracks() = 0;
66 virtual void clear() = 0;
68 virtual void reverseList() = 0;
69 virtual void randomizeList() = 0;
72 void swapTrackNumbers(QList<PlayListItem *> *container,
int index1,
int index2);
75 #endif // PLAYLISTCONTAINER_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