Garmin Fleet Management Controller  2.19.0
CDriverLoginDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CDriverLoginDlg.h
5 *
6 * Copyright 2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CDriverLoginDlg_H
11 #define CDriverLoginDlg_H
12 
13 class CDriverLoginDlg;
14 
15 #include "FmiApplicationLayer.h"
16 
17 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
25 class CDriverLoginDlg : public CDialog
26 {
27  DECLARE_DYNAMIC( CDriverLoginDlg )
28  DECLARE_MESSAGE_MAP()
29 
30 public:
32  (
33  CWnd * aParent,
34  FmiApplicationLayer & aCom
35  );
36 
37  virtual ~CDriverLoginDlg();
38 
39 protected:
40  virtual void DoDataExchange
41  (
42  CDataExchange * aDataExchange
43  );
44 
45  BOOL OnInitDialog();
46  void updateListBox();
47  void PostNcDestroy();
48  afx_msg void OnBnClickedDelete();
49  afx_msg void OnBnClickedSet();
50  afx_msg void OnEnChangeEditBoxes();
51  afx_msg void OnBnClickedOk();
52  afx_msg void OnCancel();
53  afx_msg void OnEnSetfocusLoginEdit();
54  afx_msg void OnEnKillfocusLoginEdit();
55  afx_msg void OnLbnSelchangeDriverList();
56  afx_msg void OnLbnSetfocusDriverList();
57  afx_msg void OnLbnKillfocusDriverList();
58 
59 protected:
62 
64  CListBox mListBox;
65 
68 
70  CString mDriverId;
71 
73  CString mDriverPassword;
74 };
75 
76 #endif
afx_msg void OnLbnSelchangeDriverList()
Selection Changed handler for the Driver List box.
BOOL OnInitDialog()
This function is called when the window is created.
afx_msg void OnBnClickedOk()
Button handler for the OK button.
CDriverLoginDlg(CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
afx_msg void OnLbnKillfocusDriverList()
Handles the kill focus event for the driver list.
afx_msg void OnBnClickedDelete()
Button handler for the Delete button.
afx_msg void OnBnClickedSet()
Button handler for the Set button.
virtual ~CDriverLoginDlg()
Destructor.
afx_msg void OnEnKillfocusLoginEdit()
Handles the kill focus event for the driver ID and password edit boxes.
int mSelectedIndex
Index of the list box item currently selected.
CString mDriverPassword
DDX member: the contents of the Driver Password edit box.
afx_msg void OnEnChangeEditBoxes()
Edit handler for the Driver ID and Driver Password boxes.
CString mDriverId
DDX member: the contents of the Driver ID edit box.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
CListBox mListBox
List box control containing the canned responses.
Serial communication controller for Garmin and FMI packets.
afx_msg void OnEnSetfocusLoginEdit()
Handles the set focus event for the driver ID and password edit boxes.
afx_msg void OnCancel()
Handler for the Cancel action.
void updateListBox()
Update the canned response list box from the canned response map owned by FmiApplicationLayer.
afx_msg void OnLbnSetfocusDriverList()
Handles the set focus event for the driver list.
Dialog allowing the user to manage canned responses.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
void PostNcDestroy()
Called by MFC after the window has been destroyed; performs final termination activities.