a
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
// DownloadDataProgressDlg.h: interface for the CDownloadDataProgressDlg class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#ifndef AFX_DIALDOWNLOADDATEROGRESS_H__64908844_7B7F_4F0F_AA97_194C02629079__INCLUDED_
|
||||
#define AFX_DIALDOWNLOADDATEROGRESS_H__64908844_7B7F_4F0F_AA97_194C02629079__INCLUDED_
|
||||
|
||||
#include "TaskDataOper.h"
|
||||
#include <Windows.h>
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDownloadDataProgressDlg dialog
|
||||
|
||||
class CDownloadDataProgressDlg : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
//下载数据构造
|
||||
CDownloadDataProgressDlg(std::vector<STTaskListItem> *pvtDownloadTaskItem, CTaskDataOper* pTaskOper, CWnd* pParent = NULL); // standard constructor
|
||||
//上传数据构造
|
||||
CDownloadDataProgressDlg(STRemTaskArg* stTaskArg, CTaskDataOper* pTaskOper, CWnd* pParent = NULL);
|
||||
virtual ~CDownloadDataProgressDlg();
|
||||
enum { IDD = IDD_DOWNLOAD_DATA_PROCESS };
|
||||
|
||||
void SetDeviceID(DWORD dwDeviceID)
|
||||
{
|
||||
m_dwDeviceSN = dwDeviceID;
|
||||
}
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CDownloadDataProgressDlg)
|
||||
virtual BOOL OnInitDialog();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
private:
|
||||
static UINT DownloadThread(LPVOID pParam);
|
||||
static UINT UploadThread(LPVOID pParam);
|
||||
void ShowProcessPercent(int iCurPos, int iTotalSize);
|
||||
BOOL m_bRecvOrSend; //这个标记是send(发送文件 1)还是receive(接收文件 0);
|
||||
|
||||
std::vector<STTaskListItem>* m_pvtDownloadTaskItem;
|
||||
CTaskDataOper* m_pTaskOper;
|
||||
STRemTaskArg* m_stTaskArg;
|
||||
CWnd* m_pParent;
|
||||
DWORD m_dwDeviceSN; //DeviceSN/Device ID
|
||||
//CRITICAL_SECTION m_cs;
|
||||
};
|
||||
#endif // !defined(AFX_TASKPROGRESSDLG_H__64908844_7B7F_4F0F_AA97_194C02629079__INCLUDED_)
|
||||
Reference in New Issue
Block a user