00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef PLAYLIST_H
00019 #define PLAYLIST_H
00020
00021 #include <string>
00022 #include <vector>
00023
00024 #include <log4cxx/logger.h>
00025
00029 class CPlaylist
00030 {
00031 public:
00032 CPlaylist() : p_HUD(0), log_(log4cxx::Logger::getLogger("CPlaylist")) {}
00033 ~CPlaylist(){}
00034 int init(std::string filename);
00035 void HUDout(std::string* ausgabe) {p_HUD = ausgabe;}
00036 std::string getRandSong();
00037 private:
00038 std::string* p_HUD;
00039 struct SSongInfo
00040 {
00041 std::string filename;
00042 std::string title;
00043 unsigned int length;
00044 };
00045 std::vector<SSongInfo> m_Songs;
00046 int m_actualSong;
00047 log4cxx::LoggerPtr log_;
00048 };
00049
00050
00051 #endif
00052