#if !defined(AFX_NANDFLASHSETTINGS_H__2CBC613D_655A_4DA8_82F8_112F4627B7AA__INCLUDED_)
#define AFX_NANDFLASHSETTINGS_H__2CBC613D_655A_4DA8_82F8_112F4627B7AA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// NandFlashSettings.h : header file
//

// Do repartition always
#define REPAR_STRATEGY_ALWAYS           0   
// Stop actions and report error when incompatible partition error occured
#define REPAR_STRATEGY_STOP             1
// Ignore incompatible partition error
#define REPAR_STRATEGY_IGNORE           2
// Do repartion action when imcompatible partition error occured
#define REPAR_STRATEGY_DO               3

/////////////////////////////////////////////////////////////////////////////
// CNandFlashSettings dialog

class CNandFlashSettings : public CPropertyPage
{
	DECLARE_DYNCREATE(CNandFlashSettings)

// Construction
public:
	CNandFlashSettings();
	~CNandFlashSettings();

    BOOL LoadSettings(LPCTSTR pFileName);
    BOOL SaveSettings(LPCTSTR pFileName);

// Dialog Data
	//{{AFX_DATA(CNandFlashSettings)
	enum { IDD = IDD_DIALOG_NAND_SETTINGS };
		// NOTE - ClassWizard will add data members here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CNandFlashSettings)
	public:
	virtual void OnOK();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
public:
    int m_nRepartitionFlag;
    int m_nFlashType;
    
	BOOL m_bSimpleRep;
	BOOL m_bShowFalshType;
protected:
	// Generated message map functions
	//{{AFX_MSG(CNandFlashSettings)
	afx_msg void OnRadioRepartitionAlways();
	afx_msg void OnRadioRepartitionDo();
	afx_msg void OnRadioRepartitionIgnore();
	afx_msg void OnRadioRepartitionStop();
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeComboFlashType();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CString m_strIniFile;

};

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

#endif // !defined(AFX_NANDFLASHSETTINGS_H__2CBC613D_655A_4DA8_82F8_112F4627B7AA__INCLUDED_)
