Garmin Fleet Management Controller  2.19.0
CSendSensorDlg.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "FmiApplicationLayer.h"
4 #include "SensorList.h"
5 
6 #if( FMI_SUPPORT_A617 )
7 
8 //----------------------------------------------------------------------
10 //----------------------------------------------------------------------
11 class CSendSensorDlg : public CDialog
12 {
13  DECLARE_DYNAMIC(CSendSensorDlg)
14 
15 public:
17  CWnd* pParent,
18  FmiApplicationLayer & aCom
19  );
20  virtual ~CSendSensorDlg();
21 
22  void reset();
23 
24 // Dialog Data
25  enum { IDD = IDD_SEND_SENSOR };
26 
27 protected:
28  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
29 
30  DECLARE_MESSAGE_MAP()
31 
32  BOOL OnInitDialog();
33  afx_msg void OnBnClickedCreate();
34  afx_msg void OnBnClickedUpdate();
35  afx_msg void OnBnClickedDelete();
36  afx_msg void OnEnChangeSensorName();
37  afx_msg void OnEnChangeSensorStatus();
38  afx_msg void OnEnChangeSensorDescription();
39  afx_msg void RefreshList();
40 
41 private:
42  //control data members
43  int m_action;
46  CComboBox m_icon;
47  CComboBox m_severity;
50  CString m_name;
52  CString m_status;
54  CString m_description;
56 
59 
60  SensorList mSensorList;
61 
62 };
63 
64 #endif
virtual ~CSendSensorDlg()
CSendSensorDlg(CWnd *pParent, FmiApplicationLayer &aCom)
Constructor.
afx_msg void RefreshList()
void reset()
reset the form to defaults (since this dialog is long-lived)
CComboBox m_severity
afx_msg void OnEnChangeSensorDescription()
Update the description length label in response to change in description.
afx_msg void OnBnClickedDelete()
#define IDD_SEND_SENSOR
Definition: resource.h:59
Serial communication controller for Garmin and FMI packets.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
afx_msg void OnBnClickedCreate()
Validate form, build and send appropriate FMI packet to device.
CComboBox m_icon
afx_msg void OnEnChangeSensorStatus()
Update the status length label in response to change in status.
afx_msg void OnEnChangeSensorName()
Update the name length label in response to change in name.
afx_msg void OnBnClickedUpdate()
BOOL OnInitDialog()
This function is called when the window is created.
Form for sending A617 sensor popups to the device.
CString m_description
SensorList mSensorList
virtual void DoDataExchange(CDataExchange *pDX)