123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #pragma once
- #include "scan_common.h"
- class CUploadTask{
- public:
- CUploadTask():task_state(TS_NONE),upload_result(FALSE){}
- CString url;
- CString file_name;
- CString schoolId;
- CString examId;
- CString examCourseId;
- CString student_id;
- CString bantch;
- int student_paper_id;
- BOOL upload_result;
- enum TASK_STATE{
- TS_NONE,
- TS_UPLOADING,
- TS_COMPLETE,
- }task_state;
- };
- class CImageUploadWorker:public IService
- {
- public:
- CImageUploadWorker(void);
- ~CImageUploadWorker(void);
- enum UPLOAD_STATE{
- US_WAITING,
- US_UPLOADING,
- };
- public:
- UPLOAD_STATE GetUploadState(){return m_Upload_Sate;}
- BOOL upload(CUploadTask * uploadTask);
- protected:
- virtual ServiceState OnRunning( void );
- CUploadTask * m_uploadTask;
- UPLOAD_STATE m_Upload_Sate;
- };
|