PlaylistsXML.h 863 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef NULLSOFT_AGAVE_PLAYLISTSXML_H
  2. #define NULLSOFT_AGAVE_PLAYLISTSXML_H
  3. #include "../xml/obj_xml.h"
  4. #include "../xml/ifc_xmlreadercallback.h"
  5. #include <api/service/waServiceFactory.h>
  6. class Playlists;
  7. enum
  8. {
  9. PLAYLISTSXML_SUCCESS = 0,
  10. PLAYLISTSXML_FAILURE = 1,
  11. PLAYLISTSXML_NO_PARSER = 2,
  12. PLAYLISTSXML_NO_FILE = 3,
  13. PLAYLISTSXML_XML_PARSE_ERROR = 4,
  14. };
  15. class PlaylistsXML : public ifc_xmlreadercallback
  16. {
  17. public:
  18. PlaylistsXML( Playlists *_playlists );
  19. ~PlaylistsXML();
  20. int LoadFile( const wchar_t *filename );
  21. private:
  22. RECVS_DISPATCH;
  23. /* XML callbacks */
  24. void StartTag( const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params );
  25. obj_xml *parser = 0;
  26. waServiceFactory *parserFactory = 0;
  27. Playlists *playlists = 0;
  28. wchar_t rootPath[ MAX_PATH ];
  29. };
  30. #endif