usbplaylistsaver.h 755 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <wtypes.h>
  3. #include "../playlist/ifc_playlist.h"
  4. class USBPlaylist;
  5. class USBPlaylistSaver : public ifc_playlist
  6. {
  7. public:
  8. USBPlaylistSaver(LPCTSTR iFilename, LPCTSTR iTitle, USBPlaylist * iPlaylist);
  9. virtual ~USBPlaylistSaver();
  10. public:
  11. /*** ifc_playlist ***/
  12. size_t GetNumItems();
  13. size_t GetItem(size_t item, wchar_t *filename, size_t filenameCch);
  14. size_t GetItemTitle(size_t item, wchar_t *title, size_t titleCch);
  15. int GetItemLengthMs(size_t item); // TODO: maybe microsecond for better resolution?
  16. size_t GetItemExtendedInfo(size_t item, const wchar_t *metadata, wchar_t *info, size_t infoCch);
  17. HRESULT Save();
  18. protected:
  19. RECVS_DISPATCH;
  20. protected:
  21. LPTSTR title;
  22. LPTSTR filename;
  23. USBPlaylist *playlist;
  24. };