DnowLoadImg.h 895 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. #include "scan_common.h"
  3. #include <vector>
  4. #include <boost/smart_ptr.hpp>
  5. class CDnowLoadImg:public IService
  6. {
  7. public:
  8. static boost::shared_ptr<CDnowLoadImg> GetInstance();
  9. public:
  10. CDnowLoadImg(void);
  11. ~CDnowLoadImg(void);
  12. HWND m_hwnd;
  13. virtual ServiceState OnStarting( void );
  14. virtual ServiceState OnRunning( void );
  15. virtual ServiceState OnStoping( void );
  16. void SetDownFileList(const std::vector<std::string> &downfilelist );
  17. int SetHandlerWnd( HWND hwnd )
  18. {
  19. m_hwnd = hwnd;
  20. return 0;
  21. }
  22. void SetType(int type)
  23. {
  24. m_type = type;
  25. }
  26. void SetExamId(std::string strExamId)
  27. {
  28. m_strExamId = strExamId;
  29. }
  30. bool DownImge();
  31. bool GetImgePath();
  32. CString MarkHttpHeaderData();
  33. private:
  34. bool m_flag;
  35. int m_type;
  36. CString m_url;
  37. std::string m_strExamId;
  38. std::vector<std::string> m_downfilelist;
  39. CString m_filepath;
  40. std::vector<std::string> m_filelistout;
  41. };