M3ULoader.h 942 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef NULLSOFT_PLAYLIST_M3U_LOADER_H
  2. #define NULLSOFT_PLAYLIST_M3U_LOADER_H
  3. #include "ifc_playlistloader.h"
  4. #include "ifc_playlistloadercallback.h"
  5. #include <stdio.h>
  6. static wchar_t *_INFO_NAME_MEDIA_HASH = L"mediahash";
  7. static wchar_t *_INFO_NAME_META_HASH = L"metahash";
  8. static wchar_t *_INFO_NAME_CLOUD_ID = L"cloud_id";
  9. static wchar_t *_INFO_NAME_CLOUD_STATUS = L"cloud_status";
  10. static wchar_t *_INFO_NAME_CLOUD_DEVICES = L"cloud_devices";
  11. class M3ULoader : public ifc_playlistloader
  12. {
  13. public:
  14. M3ULoader();
  15. virtual ~M3ULoader( void );
  16. int Load( const wchar_t *filename, ifc_playlistloadercallback *playlist );
  17. int OnFileHelper( ifc_playlistloadercallback *playlist, const wchar_t *trackName, const wchar_t *title, int length, const wchar_t *rootPath, ifc_plentryinfo *extraInfo );
  18. protected:
  19. RECVS_DISPATCH;
  20. bool _utf8;
  21. wchar_t wideFilename[ FILENAME_SIZE ];
  22. wchar_t wideTitle[ FILETITLE_SIZE ];
  23. };
  24. #endif