PlaylistHandler.h 938 B

12345678910111213141516171819202122232425262728
  1. #ifndef NULLSOFT_PLAYLISTS_HANDLER_H
  2. #define NULLSOFT_PLAYLISTS_HANDLER_H
  3. #include "../playlist/svc_playlisthandler.h"
  4. #include <bfc/platform/types.h>
  5. #define DECLARE_HANDLER(className) class className ## Handler : public svc_playlisthandler {\
  6. public:\
  7. const wchar_t *enumExtensions(size_t n); \
  8. int SupportedFilename(const wchar_t *filename); \
  9. ifc_playlistloader *CreateLoader(const wchar_t *filename);\
  10. void ReleaseLoader(ifc_playlistloader *loader);\
  11. const wchar_t *GetName(); \
  12. protected: RECVS_DISPATCH;}
  13. DECLARE_HANDLER(WPL);
  14. DECLARE_HANDLER(ASX);
  15. // {DC13A85D-7C61-4462-8CB4-9EBBBD86FA7C}
  16. static const GUID wplHandlerGUID =
  17. { 0xdc13a85d, 0x7c61, 0x4462, { 0x8c, 0xb4, 0x9e, 0xbb, 0xbd, 0x86, 0xfa, 0x7c } };
  18. // {8909A743-6F00-43ef-B3F6-365000347DE3}
  19. static const GUID asxHandlerGUID =
  20. { 0x8909a743, 0x6f00, 0x43ef, { 0xb3, 0xf6, 0x36, 0x50, 0x0, 0x34, 0x7d, 0xe3 } };
  21. // {6F62CBB8-7E1F-43eb-B3F6-01C2601029A3}
  22. #endif