androidplaylistsaver.h 782 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <wtypes.h>
  3. #include "../playlist/ifc_playlist.h"
  4. class AndroidPlaylist;
  5. class AndroidPlaylistSaver : public ifc_playlist
  6. {
  7. public:
  8. AndroidPlaylistSaver(LPCTSTR iFilename, LPCTSTR iTitle, AndroidPlaylist * iPlaylist);
  9. virtual ~AndroidPlaylistSaver();
  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. AndroidPlaylist *playlist;
  24. };