//
//  Copyright © 2002, RESON Inc. All Rights Reserved.
//
//  No part of this file may be reproduced or transmitted in any form or by
//  any means, electronic or mechanical, including photocopy, recording, or
//  information storage or retrieval system, without permission in writing
//  from RESON Inc.
//
//  Filename:   6046HaspDlg.h
//
//  Project:    6046
//
//  Author(s):  W. Arcus.
//
//  Purpose:    
//              
//
//  Notes:      
//

#if !defined(AFX_6046HASPDLG_H__B3E0E2FB_7B04_4BE1_BB2B_B6A45A67AF55__INCLUDED_)
#define AFX_6046HASPDLG_H__B3E0E2FB_7B04_4BE1_BB2B_B6A45A67AF55__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMy6046HaspDlg dialog

class CHaspException;

class CMy6046HaspDlg : public CDialog
{
// Construction
public:
    
            CMy6046HaspDlg(CWnd* pParent = NULL);   // standard constructor

    //{{AFX_DATA(CMy6046HaspDlg)
    enum { IDD = IDD_MY6046HASP_DIALOG };
    BOOL    m_bQCCheck;
    BOOL    m_bDemoMode;
    BOOL    m_bPLCEnable;
    CString m_DongleExpirationDate;
    CString m_Version;
    CString m_KeyNumber;
    //}}AFX_DATA

    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CMy6046HaspDlg)
    protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    //}}AFX_VIRTUAL

protected:

    HICON m_hIcon;

    // Generated message map functions
    //{{AFX_MSG(CMy6046HaspDlg)
    virtual BOOL OnInitDialog();
    afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
    afx_msg void OnPaint();
    afx_msg HCURSOR OnQueryDragIcon();
    virtual void OnCancel();
    virtual void OnOK();
    afx_msg void OnButtonClearAll();
    afx_msg void OnButtonDumpRefresh();
	afx_msg void OnButtonProgram();
	afx_msg void OnButtonClearKey();
	//}}AFX_MSG

    afx_msg LONG    Welcome( WPARAM wParam, LPARAM lParam );

    DECLARE_MESSAGE_MAP()

private:

    enum EMESSAGES
    {
        userMessageWelcome  = WM_USER + 1
    };

	bool        IsValidDongleConnected      (   void ) const;
    CString     HaspError                   (   const CHaspException   &rException ) const;

    void        Setup                       (   void );
    bool        DoesUserWishToExit          (   void ) const;
    void        InitializeKey               (   const bool             &rbDemoMode ) const;

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_6046HASPDLG_H__B3E0E2FB_7B04_4BE1_BB2B_B6A45A67AF55__INCLUDED_)
