#pragma once #include "scan_common.h" #include #include class CDnowLoadImg:public IService { public: static boost::shared_ptr GetInstance(); public: CDnowLoadImg(void); ~CDnowLoadImg(void); HWND m_hwnd; virtual ServiceState OnStarting( void ); virtual ServiceState OnRunning( void ); virtual ServiceState OnStoping( void ); void SetDownFileList(const std::vector &downfilelist ); int SetHandlerWnd( HWND hwnd ) { m_hwnd = hwnd; return 0; } void SetType(int type) { m_type = type; } void SetExamId(std::string strExamId) { m_strExamId = strExamId; } bool DownImge(); bool GetImgePath(); CString MarkHttpHeaderData(); private: bool m_flag; int m_type; CString m_url; std::string m_strExamId; std::vector m_downfilelist; CString m_filepath; std::vector m_filelistout; };