Garmin Fleet Management Controller  2.19.0
CSendAlertDlg Class Reference

Form for sending A617 alerts to the device. More...

#include <CSendAlertDlg.h>

+ Inheritance diagram for CSendAlertDlg:

Public Types

enum  { IDD = IDD_SEND_ALERT }
 

Public Member Functions

 CSendAlertDlg (CWnd *pParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CSendAlertDlg ()
 
void reset ()
 reset the form to defaults (since this dialog is long-lived) More...
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
 
afx_msg void OnBnClickedOk ()
 Validate form, build and send FMI packet to device. More...
 
afx_msg void OnEnChangeAlertText ()
 Update the text length label in response to change in text. More...
 
BOOL OnInitDialog ()
 This function is called when the window is created. More...
 

Private Attributes

CComboBox m_icon
 
BOOL m_playSound
 
CComboBox m_severity
 
CString m_text
 
int m_textLength
 
int m_timeout
 
int m_uniqueId
 
FmiApplicationLayermCom
 Reference to the FMI communication controller. More...
 

Detailed Description

Form for sending A617 alerts to the device.

Definition at line 10 of file CSendAlertDlg.h.

Member Enumeration Documentation

anonymous enum
Enumerator
IDD 

Definition at line 24 of file CSendAlertDlg.h.

Constructor & Destructor Documentation

CSendAlertDlg::CSendAlertDlg ( CWnd *  pParent,
FmiApplicationLayer aCom 
)

Constructor.

Parameters
aParentThe parent window of this dialog
aComThe FmiApplicationLayer used to send commands to device

Definition at line 28 of file CSendAlertDlg.cpp.

CSendAlertDlg::~CSendAlertDlg ( )
virtual

Definition at line 40 of file CSendAlertDlg.cpp.

Member Function Documentation

void CSendAlertDlg::OnEnChangeAlertText ( )
protected

Update the text length label in response to change in text.

Definition at line 123 of file CSendAlertDlg.cpp.

References fmi_alert_popup_request::alert_text, FALSE, m_text, m_textLength, FmiApplicationLayer::mClientCodepage, and mCom.

Referenced by DoDataExchange().

BOOL CSendAlertDlg::OnInitDialog ( )
protected

This function is called when the window is created.

Returns
TRUE, since this function does not set focus to a control

Definition at line 84 of file CSendAlertDlg.cpp.

References IDC_SPIN1, IDC_SPIN2, TIMEOUT_INPUT_MAX, and TRUE.

void CSendAlertDlg::reset ( )

reset the form to defaults (since this dialog is long-lived)

Definition at line 66 of file CSendAlertDlg.cpp.

References FALSE, m_icon, m_playSound, m_severity, m_text, m_textLength, m_timeout, and m_uniqueId.

Member Data Documentation

CComboBox CSendAlertDlg::m_icon
private

Definition at line 38 of file CSendAlertDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and reset().

BOOL CSendAlertDlg::m_playSound
private

Definition at line 41 of file CSendAlertDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and reset().

CComboBox CSendAlertDlg::m_severity
private

Definition at line 40 of file CSendAlertDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and reset().

CString CSendAlertDlg::m_text
private

Definition at line 42 of file CSendAlertDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), OnEnChangeAlertText(), and reset().

int CSendAlertDlg::m_textLength
private

Definition at line 43 of file CSendAlertDlg.h.

Referenced by DoDataExchange(), OnEnChangeAlertText(), and reset().

int CSendAlertDlg::m_timeout
private

Definition at line 39 of file CSendAlertDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and reset().

int CSendAlertDlg::m_uniqueId
private

Definition at line 37 of file CSendAlertDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and reset().

FmiApplicationLayer& CSendAlertDlg::mCom
private

Reference to the FMI communication controller.

Definition at line 46 of file CSendAlertDlg.h.

Referenced by OnBnClickedOk(), and OnEnChangeAlertText().


The documentation for this class was generated from the following files: