fixed clear playlist (also clear the media object)
[tomamp] / playlist.h
1 #ifndef PLAYLIST_H
2 #define PLAYLIST_H
3
4 #include<QStringList>
5 #include<QList>
6
7 class PlayListEntry
8 {
9 public:
10     PlayListEntry (const QString& thepath, const QString& thename) : path (thepath), name (thename) { }
11     QString getName () { return name; }
12     QString getPath () { return path; }
13 private:
14     QString path;
15     QString name;
16 };
17
18 class PlayList
19 {
20 public:
21     PlayList();
22     void addFiles (const QString& dir, const QStringList& thelist);
23     QList<PlayListEntry> getList ();
24 private:
25     QList<PlayListEntry> entrylist;
26 };
27
28
29 #endif // PLAYLIST_H