1 #ifndef MSP_AL_PLAYLIST_H_
2 #define MSP_AL_PLAYLIST_H_
6 #include <msp/datafile/objectloader.h>
14 class Loader: public DataFile::CollectionObjectLoader<Playlist>
18 Loader(Playlist &, Collection &);
22 void track(const std::string &);
28 const DataFile::Collection *collection;
32 Track(const std::string &);
36 std::vector<Track> tracks;
41 void add_track(const std::string &);
42 void remove_track(const std::string &);
44 void set_shuffle(bool);
45 const std::string &get_track(unsigned) const;
46 unsigned size() const { return tracks.size(); }
47 bool empty() const { return tracks.empty(); }
49 unsigned advance(unsigned, int = 1) const;
50 IO::Seekable *open(unsigned) const;