#if !defined(AFX_CONFIGALARM_H__889A5215_B0B8_4334_8CE0_70C3859C73A1__INCLUDED_)
#define AFX_CONFIGALARM_H__889A5215_B0B8_4334_8CE0_70C3859C73A1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ConfigAlarm.h : header file
#include "AlarmVLostDlg.h"	// Added by ClassView
#include "AlarmShelter.h"	// Added by ClassView
#include "AlarmInputDlg.h"	// Added by ClassView
#include "AlarmMotion.h"	// Added by ClassView
#include "StdAfx.h"
#include "AlarmOuput.h"
//

/////////////////////////////////////////////////////////////////////////////
// CConfigAlarm dialog

class CConfigAlarm : public CDialog
{
// Construction
public:
	void CleanAll();
	void InitDlgInfo(ALARMCONFIGALL *pAlarmCfgAll,int nChannelNum,int nAlarmInNum,int nAlarmOutNum,NET_SDK_MotionDetectFunction *pMotionDectFuc,NET_SDK_SystemFunction *pSysFunc, NET_SDK_AlarmOutConfigAll* pAlarmOutAll);
	void InitDlgInfo(NET_SDK_VIDEOLOSSCONFIG *StorageNE,NET_SDK_VIDEOLOSSCONFIG *StorageFL,NET_SDK_VIDEOLOSSCONFIG *NetipCfg,NET_SDK_VIDEOLOSSCONFIG *NetaBort,NET_SDK_SystemFunction *SysFunc);
	CConfigAlarm(CWnd* pParent = NULL);   // standard constructor
// Dialog Data
	//{{AFX_DATA(CConfigAlarm)
	enum { IDD = IDD_CONFIG_ALARM};
	CTabCtrl	m_ctlAlarmTab;
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CConfigAlarm)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	
private:
	int m_nAlarmIn;
	int m_nChannel;
	ALARMCONFIGALL m_AlarmCfgAll;
	//SDK_StorageLowSpaceConfig m_StorageLSCfg;
	void SetDlgState(CWnd *pWnd, BOOL bShow);
	void DoTab(int nTab);
	void InitTabControl();
	CAlarmVLostDlg m_TabVideoLost;
	CAlarmShelter m_TabShelter;
	CAlarmMotion m_TabMotion;
	CAlarmInputDlg m_TabAlarmInput;
	CAlarmOuput m_TabAlarmOutput;
	

	// Generated message map functions
	//{{AFX_MSG(CConfigAlarm)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeTabAlarmboard(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButtonApply();
	afx_msg void OnButtonReadall();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CONFIGALARM_H__889A5215_B0B8_4334_8CE0_70C3859C73A1__INCLUDED_)
