defuze.me  Client
playlist.hpp
00001 #ifndef PLAYLIST_HPP
00002 #define PLAYLIST_HPP
00003 
00004 #include <QObject>
00005 #include "audiotrack.hpp"
00006 
00007 namespace Playlists
00008 {
00009     class Playlist : public QObject
00010     {
00011         Q_OBJECT
00012     public:
00013         Playlist(int id);
00014         int             getId() const;
00015         const QString&  getName() const;
00016         bool            getIsDynamic() const;
00017         void            setName(const QString newName);
00018                 QList<Library::AudioTrack*> *getTrackList() const;
00019                 void                    addTrack(int trackId, int idx = -1);
00020                 void                    updatePlaylist();
00021 
00022     private:
00023         int             id;
00024         QString         name;
00025         bool            isDynamic;
00026                 QList<Library::AudioTrack*> *trackList;
00027     };
00028 }
00029 
00030 #endif // PLAYLIST_H