1
0

ifc_playlistloader.h 842 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef NULLSOFT_IFC_PLAYLISTLOADER_H
  2. #define NULLSOFT_IFC_PLAYLISTLOADER_H
  3. #include <bfc/dispatch.h>
  4. #include <wchar.h>
  5. #include "ifc_playlistloadercallback.h"
  6. enum
  7. {
  8. IFC_PLAYLISTLOADER_SUCCESS = 0,
  9. IFC_PLAYLISTLOADER_FAILED = 1,
  10. IFC_PLAYLISTLOADER_NEXTITEM_EOF = 1,
  11. };
  12. class ifc_playlistloader : public Dispatchable
  13. {
  14. protected:
  15. ifc_playlistloader() {}
  16. ~ifc_playlistloader() {}
  17. public:
  18. int Load( const wchar_t *filename, ifc_playlistloadercallback *playlist );
  19. DISPATCH_CODES
  20. {
  21. IFC_PLAYLISTLOADER_LOAD = 10,
  22. };
  23. };
  24. inline int ifc_playlistloader::Load( const wchar_t *filename, ifc_playlistloadercallback *playlist )
  25. {
  26. return _call( IFC_PLAYLISTLOADER_LOAD, (int)IFC_PLAYLISTLOADER_FAILED, filename, playlist );
  27. }
  28. #endif