Garmin Fleet Management Controller
2.19.0
|
Form for sending A617 alerts to the device. More...
#include <CSendAlertDlg.h>
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 |
FmiApplicationLayer & | mCom |
Reference to the FMI communication controller. More... | |
Form for sending A617 alerts to the device.
Definition at line 10 of file CSendAlertDlg.h.
anonymous enum |
Enumerator | |
---|---|
IDD |
Definition at line 24 of file CSendAlertDlg.h.
CSendAlertDlg::CSendAlertDlg | ( | CWnd * | pParent, |
FmiApplicationLayer & | aCom | ||
) |
Constructor.
aParent | The parent window of this dialog |
aCom | The FmiApplicationLayer used to send commands to device |
Definition at line 28 of file CSendAlertDlg.cpp.
|
virtual |
Definition at line 40 of file CSendAlertDlg.cpp.
|
protectedvirtual |
Definition at line 44 of file CSendAlertDlg.cpp.
References IDC_ALERT_ICON, IDC_ALERT_PLAY_SOUND, IDC_ALERT_SEVERITY, IDC_ALERT_TEXT, IDC_ALERT_TEXT_LENGTH, IDC_ALERT_TIMEOUT, IDC_ALERT_UNIQUE_ID, m_icon, m_playSound, m_severity, m_text, m_textLength, m_timeout, m_uniqueId, OnBnClickedOk(), OnEnChangeAlertText(), and TIMEOUT_INPUT_MAX.
|
protected |
Validate form, build and send FMI packet to device.
Definition at line 97 of file CSendAlertDlg.cpp.
References fmi_alert_popup_request::alert_text, FMI_ALERT_POPUP_REQUEST, fmi_alert_popup_request::icon, m_icon, m_playSound, m_severity, m_text, m_timeout, m_uniqueId, FmiApplicationLayer::mClientCodepage, mCom, fmi_alert_popup_request::play_sound, FmiApplicationLayer::sendFmiPacket(), fmi_alert_popup_request::severity, fmi_alert_popup_request::timeout, and fmi_alert_popup_request::unique_id.
Referenced by DoDataExchange().
|
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().
|
protected |
This function is called when the window is created.
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.
|
private |
Definition at line 38 of file CSendAlertDlg.h.
Referenced by DoDataExchange(), OnBnClickedOk(), and reset().
|
private |
Definition at line 41 of file CSendAlertDlg.h.
Referenced by DoDataExchange(), OnBnClickedOk(), and reset().
|
private |
Definition at line 40 of file CSendAlertDlg.h.
Referenced by DoDataExchange(), OnBnClickedOk(), and reset().
|
private |
Definition at line 42 of file CSendAlertDlg.h.
Referenced by DoDataExchange(), OnBnClickedOk(), OnEnChangeAlertText(), and reset().
|
private |
Definition at line 43 of file CSendAlertDlg.h.
Referenced by DoDataExchange(), OnEnChangeAlertText(), and reset().
|
private |
Definition at line 39 of file CSendAlertDlg.h.
Referenced by DoDataExchange(), OnBnClickedOk(), and reset().
|
private |
Definition at line 37 of file CSendAlertDlg.h.
Referenced by DoDataExchange(), OnBnClickedOk(), and reset().
|
private |
Reference to the FMI communication controller.
Definition at line 46 of file CSendAlertDlg.h.
Referenced by OnBnClickedOk(), and OnEnChangeAlertText().