Garmin Fleet Management Controller  2.19.0
CAobrdDriversDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CAobrdDriversDlg.h
5 *
6 * Copyright 2012 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CAobrdDriversDlg_H
11 #define CAobrdDriversDlg_H
12 
13 class CAobrdDriversDlg;
14 
15 #include "FmiApplicationLayer.h"
16 
17 
18 #if( FMI_SUPPORT_A610 )
19 
20 //----------------------------------------------------------------------
25 //----------------------------------------------------------------------
26 class CAobrdDriversDlg : public CDialog
27 {
28  DECLARE_DYNAMIC(CAobrdDriversDlg)
29  DECLARE_MESSAGE_MAP()
30 
31 public:
33  CWnd * aParent,
34  FmiApplicationLayer & aCom
35  );
36 
37  virtual ~CAobrdDriversDlg();
38 
39 protected:
40 
41  virtual void DoDataExchange(
42  CDataExchange * pDX
43  );
44 
45  BOOL OnInitDialog();
46  void clearData();
47  void updateListBox();
48  void PostNcDestroy();
49  afx_msg void OnBnClickedSendUpdate();
50 #if( FMI_SUPPORT_A615 )
51  afx_msg void OnBnClickedSendLogoff();
52 #endif
53  afx_msg void OnBnClickedDelete();
54  afx_msg void OnBnClickedSet();
55  afx_msg void OnBnClickedShipments();
56  afx_msg void OnChangeDriverData();
57  afx_msg void OnBnClickedOk();
58  afx_msg void OnCancel();
59  afx_msg void OnEnSetfocusLoginEdit();
60  afx_msg void OnEnKillfocusLoginEdit();
61  afx_msg void OnLbnSelchangeDriverList();
62  afx_msg void OnLbnSetfocusDriverList();
63  afx_msg void OnLbnKillfocusDriverList();
64 
65 protected:
68 
70  CListBox mListBox;
71 
74 
76  CString mDriverId;
77 
79  CString mDriverPassword;
80 
83 
85  CString mDriverLastName;
86 
89 
92 
95 
96 #if( FMI_SUPPORT_A615 )
99 #endif
100 
103 };
104 
105 #endif
106 
107 #endif
afx_msg void OnCancel()
Handler for the Cancel action.
int mDriverTimeZone
DDX member: the selection of the Time Zone chooser.
int mDriverLoadTypeRuleset
DDX member: the selection of the Load Type Ruleset chooser.
CString mDriverId
DDX member: the contents of the Driver ID edit box.
CString mDriverFirstName
DDX member: the contents of the First Name edit box.
afx_msg void OnBnClickedShipments()
void updateListBox()
Update the drivers list box from the drivers map owned by FmiApplicationLayer.
afx_msg void OnEnKillfocusLoginEdit()
Handles the kill focus event for the driver ID and password edit boxes.
virtual ~CAobrdDriversDlg()
Destructor.
void PostNcDestroy()
Called by MFC after the window has been destroyed; performs final termination activities.
Dialog allowing the user to manage AOBRD drivers.
afx_msg void OnBnClickedOk()
Button handler for the OK button.
CString mDriverCarrierID
DDX member: the contents of the Carrier ID edit box.
afx_msg void OnBnClickedSet()
Button handler for the Set button.
CString mDriverCarrierName
DDX member: the contents of the Carrier Name edit box.
afx_msg void OnBnClickedDelete()
Button handler for the Delete button.
afx_msg void OnChangeDriverData()
Edit/Change handler for the driver-specific data controls.
BOOL OnInitDialog()
This function is called when the window is created.
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 OnBnClickedSendUpdate()
Button handler for the Send Update button.
afx_msg void OnLbnSetfocusDriverList()
Handles the set focus event for the driver list.
CString mDriverPassword
DDX member: the contents of the Driver Password edit box.
afx_msg void OnLbnSelchangeDriverList()
Selection Changed handler for the Driver List box.
virtual void DoDataExchange(CDataExchange *pDX)
Perform dialog data exchange and validation.
afx_msg void OnBnClickedSendLogoff()
Button handler for the Send Logoff button.
CString mDriverLastName
DDX member: the contents of the Last Name edit box.
afx_msg void OnLbnKillfocusDriverList()
Handles the kill focus event for the driver list.
CListBox mListBox
List box control containing the drivers.
int mSelectedIndex
Index of the list box item currently selected.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
CAobrdDriversDlg(CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
int mDriverLongTermRuleset
DDX member: the selection of the Long Term Ruleset chooser.
void clearData()
Clear values from the editable fields.