#if !defined(AFX_TESTDLG_H__AD478CAD_7A3C_4E7B_BCF4_16FBA109E101__INCLUDED_)
#define AFX_TESTDLG_H__AD478CAD_7A3C_4E7B_BCF4_16FBA109E101__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TestDlg.h : header file
//

#include "DataRecipient.h"
#include "DeviceDlg.h"
#include "StatusStatic.h"

class CDashboardRecipient;

/////////////////////////////////////////////////////////////////////////////
// CTestDlg dialog

class CTestDlg : public CDialog, public CDataRecipient
{
// Construction
public:
	CTestDlg(UINT nID,CWnd* pParent = NULL, DWORD STATUS_NUM = 0);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CTestDlg)
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// Implementation
	void setRecipient(CDashboardRecipient *recipient)
		{ m_recipient = recipient; };
	void setDeviceDlg(CDeviceDlg* devd) 
		{ m_devd = devd; };
	void setDriverName(CString n, int k)
		{ 
			m_driverName = n; 
			m_driverIndex = k;
		};
	virtual void requestUpdate() {};
	virtual void stopRequests() {};
	virtual void resetDialog() {};

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

protected:
	CDashboardRecipient *m_recipient;
	CDeviceDlg *m_devd;
	CString m_title;
	CString m_driverName;
	int m_driverIndex;
	
	DWORD m_statusNum;
		
	CStatusStatic m_driverStatus;

	void receiveData();
	virtual BOOL OnInitDialog();
	virtual void initSubClassDlg() {};
	void setDriverStatus(char *name, int status);

	// Generated message map functions
	//{{AFX_MSG(CTestDlg)
		virtual void OnOK();
		afx_msg void OnClose();
		afx_msg void OnTimer(UINT nIDEvent);
		afx_msg void OnFail();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTDLG_H__AD478CAD_7A3C_4E7B_BCF4_16FBA109E101__INCLUDED_)
