Garmin Fleet Management Controller  2.19.0
CCommErrorDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CCommErrorDlg.h
5 *
6 * Copyright 2008-2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CCommErrorDlg_H
11 #define CCommErrorDlg_H
12 
13 class CCommErrorDlg;
14 
15 #include "CFmiPcAppDlg.h"
16 
17 //----------------------------------------------------------------------
21 //----------------------------------------------------------------------
22 class CCommErrorDlg : public CDialog
23 {
24  DECLARE_DYNAMIC( CCommErrorDlg )
25  DECLARE_MESSAGE_MAP()
26 
27 public:
29  (
30  TCHAR * aErrorMessage,
31  BOOL aCommPortDown,
32  CWnd * aParent,
33  FmiApplicationLayer & aCom
34  );
35 
36  virtual ~CCommErrorDlg();
37 
38 protected:
39  BOOL OnInitDialog();
40  afx_msg void OnBnClickedRetry();
41  afx_msg void OnBnClickedChangeCom();
42  virtual void DoDataExchange
43  (
44  CDataExchange * aDataExchange
45  );
46 
47  afx_msg void OnBnClickedExit();
48  void OnCancel();
49  void PostNcDestroy();
50 
51  static BOOL CALLBACK OnCloseHelper(HWND hWndParent, LPARAM lParam);
52 
54  CString mMessageText;
55 
59 
62 };
63 
64 #endif
afx_msg void OnBnClickedRetry()
Click handler for the Retry button.
afx_msg void OnBnClickedChangeCom()
Click handler for the Change Port button.
void OnCancel()
Cancel action handler.
virtual ~CCommErrorDlg()
Destructor.
CCommErrorDlg(TCHAR *aErrorMessage, BOOL aCommPortDown, CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
void PostNcDestroy()
Called by MFC after the window has been destroyed; performs final termination activities.
CString mMessageText
The message to display to the user.
Definition: CCommErrorDlg.h:54
static BOOL CALLBACK OnCloseHelper(HWND hWndParent, LPARAM lParam)
Helper for EnumThreadWindows call.
BOOL OnInitDialog()
Initialize the dialog.
BOOL mComPortDown
If TRUE, communication is down and the serial port will need to be reinitialized to continue...
Definition: CCommErrorDlg.h:58
Serial communication controller for Garmin and FMI packets.
Modal dialog displaying a communication error.
Definition: CCommErrorDlg.h:22
afx_msg void OnBnClickedExit()
Click handler for the Exit button.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
FmiApplicationLayer & mCom
The FMI communication controller.
Definition: CCommErrorDlg.h:61