// downloadPcDlg.h : header file
//

#if !defined(AFX_DOWNLOADPCDLG_H__CAB60ACC_2EE9_4C8C_9D77_11B94FD7BEA3__INCLUDED_)
#define AFX_DOWNLOADPCDLG_H__CAB60ACC_2EE9_4C8C_9D77_11B94FD7BEA3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define DW_WAIT_CONNECT       0x1000
#define DW_NC_CHECKUP         0x1001
#define DW_NC_UPGRADE         0x1002
#define DW_WAIT_POWERCYCLE    0x1003
#define DW_ID_CHECKUP         0x1004
#define DW_STATUS_FTP         0x1005
#define DW_STATUS_SCAN        0x1006
#define DW_NC_PROGID          0x1007
#define DW_OK_UNPLUG          0x1008
#define DW_FAIL_UNPLUG        0x1009
#define DW_DW_APPS            0x100A 

#define DW_OLD_VERSION        "05/18/06"

#define BARCODE_BUF_SIZE       128
#define MAX_PATH_LEN           512

/////////////////////////////////////////////////////////////////////////////
// CDownloadPcDlg dialog

class CDownloadPcDlg : public CDialog
{
// Construction
public:
	CDownloadPcDlg(CWnd* pParent = NULL);	// standard constructor
	~CDownloadPcDlg();

	CString m_host, m_user, m_password;
	int m_port, m_status, m_oldstatus, m_count, m_id, m_start, m_noftp, m_setupFtp;
	UINT m_timer;
	HANDLE m_thread;
	HANDLE m_scan;
	Cdebug *m_dbg;
	CString m_app[MAX_APP_NUM], m_boot2, m_boot1, m_fBoot2, m_install, m_mp3;
	char   m_current_path[MAX_PATH_LEN];

	char m_barcode[BARCODE_BUF_SIZE];
	char m_barcodeLen;
	void updatePic();

// Dialog Data
	//{{AFX_DATA(CDownloadPcDlg)
	enum { IDD = IDD_DOWNLOADPC_DIALOG };
	CStatic	m_ctlStatus;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDownloadPcDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CDownloadPcDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnAppAbout();
	afx_msg void OnSetupFtp();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnImportApp();
	afx_msg void OnSystemNetcardprintfconsole();
	afx_msg void OnClose();
	afx_msg void OnOk();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DOWNLOADPCDLG_H__CAB60ACC_2EE9_4C8C_9D77_11B94FD7BEA3__INCLUDED_)
