DownloadThread.h 495 B

123456789101112131415161718192021222324252627
  1. #ifndef NULLSOFT_DOWNLOADTHREADH
  2. #define NULLSOFT_DOWNLOADTHREADH
  3. #include "../xml/obj_xml.h"
  4. #include "../xml/XMLDOM.h"
  5. #include "../nu/Alias.h"
  6. #include "api__ml_downloads.h"
  7. #include <api/service/waServiceFactory.h>
  8. class DownloadThread
  9. {
  10. public:
  11. DownloadThread();
  12. virtual ~DownloadThread();
  13. virtual void ReadNodes(const wchar_t *url) = 0;
  14. void DownloadFile(const wchar_t *fileName);
  15. protected:
  16. XMLDOM xmlDOM;
  17. private:
  18. obj_xml *parser;
  19. waServiceFactory *parserFactory;
  20. };
  21. #endif