123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #pragma once
- #include "scan_common.h"
- #include <vector>
- #include <boost/smart_ptr.hpp>
- class CDnowLoadImg:public IService
- {
- public:
- static boost::shared_ptr<CDnowLoadImg> 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<std::string> &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<std::string> m_downfilelist;
- CString m_filepath;
- std::vector<std::string> m_filelistout;
- };
|