Garmin Fleet Management Controller  2.19.0
CDriverIdAndStatusDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CDriverIdAndStatusDlg.h
5 *
6 * Copyright 2008-2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CDriverIdAndStatusDlg_H
11 #define CDriverIdAndStatusDlg_H
12 
13 #include <vector>
14 
16 
17 #include "CWndEventListener.h"
18 #include "FmiApplicationLayer.h"
19 
20 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
25 class CDriverIdAndStatusDlg : public CDialog, public CWndEventListener
26 {
27  DECLARE_DYNAMIC( CDriverIdAndStatusDlg )
28  DECLARE_MESSAGE_MAP()
29 
30 public:
32  (
33  CWnd * aParent,
34  FmiApplicationLayer & aCom
35  );
36 
37  virtual ~CDriverIdAndStatusDlg();
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 OnEnChangeEditDriverId();
49  afx_msg void OnBnClickedSendDriverStatus();
50  afx_msg void OnBnClickedSendDriverId();
51  afx_msg void OnBnClickedRefreshDriverId();
52  afx_msg void OnBnClickedRefreshDriverStatus();
53  afx_msg void OnEnChangeEditSet();
54  afx_msg void OnBnClickedDelete();
55  afx_msg void OnBnClickedSendDriverStatusItem();
56  afx_msg void OnBnClickedOk();
57  afx_msg void OnIndexChanged();
58  afx_msg void OnCancel();
59  afx_msg void OnEnSetfocusDriverIdEdit();
60  afx_msg void OnEnKillfocusDriverIdEdit();
61  afx_msg void OnEnSetfocusStatusEdit();
62  afx_msg void OnEnKillfocusStatusEdit();
63  afx_msg void OnLbnSelchangeStatuslist();
64  afx_msg LPARAM OnDriverStatusListChanged( WPARAM, LPARAM );
65  afx_msg LPARAM OnDriverIdChanged( WPARAM aIndex, LPARAM );
66  afx_msg LPARAM OnDriverStatusChanged( WPARAM aIndex, LPARAM );
67 
68 #if( FMI_SUPPORT_A607 )
69  afx_msg void OnBnClickedEditLogins();
70 #endif
73 
76 
79 
81  CString mNewDriverId;
82 
85 
88 
91 
94 
97  int mIndex;
98 };
99 
100 #endif
afx_msg void OnIndexChanged()
Selection handler for the driver index combo.
int mIndex
Selected driver index.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
afx_msg LPARAM OnDriverIdChanged(WPARAM aIndex, LPARAM)
Event handler for the FMI_EVENT_DRIVER_ID_CHANGED event generated by FmiApplicationLayer.
afx_msg void OnBnClickedEditLogins()
Click handler for the Driver Logins button.
CDriverIdAndStatusDlg(CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
CString mNewDriverStatusId
Contents of the ID edit box in the Set Driver Status List Item group.
CListBox mDriverStatusList
The list box containing the driver statuses on the client.
int mSelectedListIndex
Index of the selected item in the mDriverStatusList (-1 if no item is selected)
afx_msg void OnEnKillfocusStatusEdit()
Kill Focus handler for the Driver Status edit box.
void updateListBox()
Update the driver status list box from the map of items owned by FmiApplicationLayer.
afx_msg void OnEnChangeEditSet()
Edit handler for the Add/Update Status group.
afx_msg void OnBnClickedSendDriverStatus()
Click handler for the Send (Driver Status) button.
afx_msg void OnEnSetfocusStatusEdit()
Set Focus handler for the Add/Update Status edit boxes.
afx_msg void OnBnClickedRefreshDriverStatus()
Click handler for the Refresh (Driver Status) button.
afx_msg void OnLbnSelchangeStatuslist()
Selection Changed event handler for the status list.
afx_msg void OnBnClickedSendDriverId()
Click handler for the Send (Driver ID) button.
CString mCurrentDriverId
Contents of the "current driver ID" text box.
CString mNewDriverStatusText
Contents of the status text edit box in the Set Driver Status List Item group.
afx_msg void OnBnClickedSendDriverStatusItem()
Click handler for the Send (Driver Status Item) button.
Serial communication controller for Garmin and FMI packets.
EventListener that dispatches a Windows message.
Modeless dialog allowing the user to query and update Driver ID and Status on the client...
BOOL OnInitDialog()
Initialize the dialog.
void PostNcDestroy()
Perform final cleanup after the dialog window is destroyed.
afx_msg void OnBnClickedDelete()
Click handler for the Delete (Driver Status Item) button.
afx_msg void OnBnClickedOk()
Click handler for the OK (Close) button.
afx_msg void OnCancel()
Handles the Cancel action.
afx_msg LPARAM OnDriverStatusListChanged(WPARAM, LPARAM)
Event handler for the FMI_EVENT_DRIVER_STATUS_LIST_CHANGED event generated by FmiApplicationLayer.
CString mNewDriverId
Contents of the "update driver ID" edit box.
CString mCurrentDriverStatus
Contents of the "current driver status" text box.
afx_msg LPARAM OnDriverStatusChanged(WPARAM aIndex, LPARAM)
Event handler for the FMI_EVENT_DRIVER_STATUS_CHANGED event generated by FmiApplicationLayer.
afx_msg void OnEnKillfocusDriverIdEdit()
Kill Focus handler for the Driver ID edit box.
afx_msg void OnBnClickedRefreshDriverId()
Click handler for the Refresh (Driver ID) button.
afx_msg void OnEnChangeEditDriverId()
Edit event handler for the Driver ID edit box.
virtual ~CDriverIdAndStatusDlg()
Destructor.
afx_msg void OnEnSetfocusDriverIdEdit()
Set Focus handler for the Driver ID edit box.