Garmin Fleet Management Controller  2.19.0
CSendAlertDlg.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "FmiApplicationLayer.h"
4 
5 #if( FMI_SUPPORT_A617 )
6 
7 //----------------------------------------------------------------------
9 //----------------------------------------------------------------------
10 class CSendAlertDlg : public CDialog
11 {
12  DECLARE_DYNAMIC(CSendAlertDlg)
13 
14 public:
16  CWnd* pParent,
17  FmiApplicationLayer & aCom
18  );
19  virtual ~CSendAlertDlg();
20 
21  void reset();
22 
23 // Dialog Data
24  enum { IDD = IDD_SEND_ALERT };
25 
26 protected:
27  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
28 
29  DECLARE_MESSAGE_MAP()
30 
31  BOOL OnInitDialog();
32  afx_msg void OnBnClickedOk();
33  afx_msg void OnEnChangeAlertText();
34 
35 private:
36  //control data members
38  CComboBox m_icon;
39  int m_timeout;
40  CComboBox m_severity;
42  CString m_text;
44 
47 
48  };
49 
50 #endif
BOOL OnInitDialog()
This function is called when the window is created.
Form for sending A617 alerts to the device.
Definition: CSendAlertDlg.h:10
CComboBox m_icon
Definition: CSendAlertDlg.h:38
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
Definition: CSendAlertDlg.h:46
afx_msg void OnBnClickedOk()
Validate form, build and send FMI packet to device.
CSendAlertDlg(CWnd *pParent, FmiApplicationLayer &aCom)
Constructor.
CString m_text
Definition: CSendAlertDlg.h:42
void reset()
reset the form to defaults (since this dialog is long-lived)
Serial communication controller for Garmin and FMI packets.
#define IDD_SEND_ALERT
Definition: resource.h:58
virtual void DoDataExchange(CDataExchange *pDX)
afx_msg void OnEnChangeAlertText()
Update the text length label in response to change in text.
CComboBox m_severity
Definition: CSendAlertDlg.h:40
virtual ~CSendAlertDlg()