playlistsXML.h 562 B

123456789101112131415161718192021222324252627
  1. #ifndef NULLSOFT_ML_PLAYLISTS_PLAYLISTSXML_H
  2. #define NULLSOFT_ML_PLAYLISTS_PLAYLISTSXML_H
  3. #include "../xml/api_xml.h"
  4. #include "../xml/api_xmlreadercallback.h"
  5. #include "api.h"
  6. #include <api/service/waServiceFactory.h>
  7. class PlaylistsXML : public api_xmlreadercallback
  8. {
  9. public:
  10. PlaylistsXML();
  11. ~PlaylistsXML();
  12. void LoadFile(const wchar_t *filename);
  13. private:
  14. RECVS_DISPATCH;
  15. /* XML callbacks */
  16. void StartTag(const wchar_t *xmlpath, const wchar_t *xmltag, api_xmlreaderparams *params);
  17. api_xml *parser;
  18. waServiceFactory *parserFactory;
  19. };
  20. #endif