#if !defined(AFX_PHONESETTINGSDLG_H__1AE8901F_2AD1_405F_9342_D8CC34AB2CF9__INCLUDED_)
#define AFX_PHONESETTINGSDLG_H__1AE8901F_2AD1_405F_9342_D8CC34AB2CF9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PhoneSettingsDlg.h : header file
//
#define _GDI_CONST
#define PHONE_SETTINGS_SIZE		512
#define TOTAL_SETTINGS_SIZE		4096
//#define TOTAL_SETTINGS_SIZE		512
#define RING_NUMBER		61
#define AUDIO_FRAMES_NUM	8
#define AC97_MIC_VOL_MAX	15
#define AC97_SPK_VOL_MAX	31

#define CALL_WAITING_OR			0x01
#define FORWARD_ALWAYS_OR		0x10
#define FORWARD_BUSY_OR			0x20
#define FORWARD_NOANSWER_OR		0x40
#define FORWARD_POWEROFF_OR		0x80
#define FORWARD_ALWAYS_AND		0xef
#define FORWARD_BUSY_AND		0xdf
#define FORWARD_NOANSWER_AND	0xbf
#define FORWARD_POWEROFF_AND	0x7f
#define CALL_WAITING_AND		0xfe

#define USE_HIGH_RATE_OR		0x10
#define USE_VAD_OR				0x20
#define USE_AGC_OR				0x40
#define USE_AEC_OR				0x80
#define USE_HIGH_RATE_AND		0xef
#define USE_VAD_AND				0xdf
#define USE_AGC_AND				0xbf
#define USE_AEC_AND				0x7f

#define TIMEZONE_DAYLIGHT_OR	0x80
#define TIMEZONE_DAYLIGHT_AND	0x7f

#define DEVICE_ATTR_NONE		0x00
#define DEVICE_ATTR_SPEAKER		0x01
#define DEVICE_ATTR_DUALMODE	0x02
#define DEVICE_ATTR_FXO			0x04

/////////////////////////////////////////////////////////////////////////////
// CPhoneSettingsDlg dialog

class CPhoneSettingsDlg : public CDialog
{
// Construction
public:
	CPhoneSettingsDlg(CWnd* pParent = NULL);   // standard constructor

	static void SetSettings(BYTE * pSettings);
	static void GetSettings(BYTE * pSettings);
//	static void BoxAddString();

// Dialog Data
	//{{AFX_DATA(CPhoneSettingsDlg)
	enum { IDD = IDD_PHONE_SETTINGS };
	CButton	m_ctlDialPlanSettings;
	CButton	m_ctlAttribute;
	CComboBox	m_ctlCodecType6;
	CComboBox	m_ctlUpgradeType;
	CComboBox	m_ctlCodecType5;
	CComboBox	m_ctlCodecType4;
	CComboBox	m_ctlCodecType3;
	CComboBox	m_ctlCodecType2;
	CComboBox	m_ctlCodecType1;
	CButton	m_ctlAddr;
	CComboBox	m_ctlTimeZone;
	CIPAddressCtrl	m_ctlSntpIP;
	CComboBox	m_ctlIPType;
	CIPAddressCtrl	m_ctlDnsIP;
	CIPAddressCtrl	m_ctlDnsIP2;
	CSliderCtrl	m_ctlSpkVol;
	CSliderCtrl	m_ctlMicVol;
	CIPAddressCtrl	m_ctlSubnetMask;
	CIPAddressCtrl	m_ctlRouterIP;
	CIPAddressCtrl	m_ctlLocalIP;
	CString	m_strMac1;
	CString	m_strMac2;
	CString	m_strMac3;
	CString	m_strMac4;
	CString	m_strMac5;
	CString	m_strMac6;
	int		m_iMicVol;
	int		m_iSpkVol;
	BOOL	m_bUseE164;
	int		m_iG7231Frames;
	CString	m_strPassword;
	CString	m_strPPPoEID;
	CString	m_strPPPoEPin;
	CString m_strUpgradeAddr;
	int		m_iSubVersion;
	BOOL	m_bUseHighRate;
	BOOL	m_bUseVAD;
	BOOL	m_bUseAGC;
	BOOL	m_bUseAEC;
	BOOL	m_bUseDaylight;
	int		m_iJitterSize;
	int		m_iCodecType1;
	int		m_iCodecType2;
	int		m_iCodecType3;
	int		m_iCodecType4;
	int		m_iCodecType5;
	int		m_iCodecType6;
	int		m_iIlbcPType;
	BOOL	m_bVlanEnable;
	int		m_iVlanID;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPhoneSettingsDlg)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeIptype();
	afx_msg void OnLoadAddr();
	afx_msg void OnProtocol();
	afx_msg void OnAttribute();
	afx_msg void OnDialplan();
	afx_msg void OnVlanEnable();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_PHONESETTINGSDLG_H__1AE8901F_2AD1_405F_9342_D8CC34AB2CF9__INCLUDED_)
