ASXLoader.h 803 B

1234567891011121314151617181920212223242526272829
  1. #ifndef NULLSOFT_PLAYLIST_ASX_LOADER_H
  2. #define NULLSOFT_PLAYLIST_ASX_LOADER_H
  3. #include "../playlist/ifc_playlistloader.h"
  4. #include "../playlist/ifc_playlistloadercallback.h"
  5. #include <stdio.h>
  6. class obj_xml;
  7. class api_httpreceiver;
  8. class ASXLoader : public ifc_playlistloader
  9. {
  10. public:
  11. ASXLoader() : inTag(false), inQuotes(false) {}
  12. int Load(const wchar_t *filename, ifc_playlistloadercallback *playlist);
  13. private:
  14. int LoadURL(obj_xml *parser, const wchar_t *url);
  15. int LoadFile(obj_xml *parser, const wchar_t *filename);
  16. void RunXMLDownload(api_httpreceiver *http, obj_xml *parser);
  17. int FeedXMLHTTP(api_httpreceiver *http, obj_xml *parser, bool *noData);
  18. int GayASX_to_XML_converter(obj_xml *parser, char *buffer, int len);
  19. protected:
  20. bool inTag;
  21. bool inQuotes;
  22. RECVS_DISPATCH;
  23. };
  24. #endif