usbplaylist.h 738 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <vector>
  3. #include "../playlist/ifc_playlistloadercallbackT.h"
  4. class USBDevice;
  5. class UsbSong;
  6. class USBPlaylist: public ifc_playlistloadercallbackT<USBPlaylist>
  7. {
  8. public:
  9. USBPlaylist(USBDevice& d, LPCTSTR pszPlaylist, BOOL master);
  10. ~USBPlaylist();
  11. public:
  12. /*** ifc_playlistloadercallback ***/
  13. int OnFile(const wchar_t *filename, const wchar_t *title, int lengthInMS, ifc_plentryinfo *info);
  14. public:
  15. // utility
  16. BOOL isMaster() { return master; }
  17. wchar_t* getFilename() { return filename; }
  18. public:
  19. USBDevice &device;
  20. wchar_t playlistName[MAX_PATH];
  21. wchar_t playlistPath[MAX_PATH];
  22. typedef std::vector<UsbSong*> SongList;
  23. SongList songs;
  24. wchar_t filename[MAX_PATH];
  25. BOOL master;
  26. BOOL dirty;
  27. };