Garmin Fleet Management Controller
2.19.0
|
Modal pop up which displays a text message ack received from the client. More...
#include <CTxtMsgAckDlg.h>
Public Member Functions | |
CTxtMsgAckDlg (CWnd *aParent, const FmiApplicationLayer &aCom, const text_msg_ack_event_type *aAckEvent) | |
Constructor. More... | |
virtual | ~CTxtMsgAckDlg () |
Destructor. More... | |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *aDataExchange) |
Perform dialog data exchange and validation. More... | |
BOOL | OnInitDialog () |
Initialize the dialog. More... | |
Protected Attributes | |
text_msg_ack_event_type | mAckEvent |
The text message ack event that is being displayed. More... | |
const FmiApplicationLayer & | mCom |
The reference to the communication controller. More... | |
CString | mMessageId |
Text representation of the text message ID. More... | |
CString | mResponseText |
Text representation of the response from the client. More... | |
Modal pop up which displays a text message ack received from the client.
Displays the message ID as-is if it is an ASCII string, or in hexadecimal otherwise. Both the message ID and response text are retrieved from the text_message_ack_event_type that is passed in on the constructor.
Definition at line 25 of file CTxtMsgAckDlg.h.
CTxtMsgAckDlg::CTxtMsgAckDlg | ( | CWnd * | aParent, |
const FmiApplicationLayer & | aCom, | ||
const text_msg_ack_event_type * | aAckEvent | ||
) |
Constructor.
aParent | The parent of this dialog |
aCom | Reference to the FMI communication controller |
aAckEvent | The text message ack that was received |
Definition at line 27 of file CTxtMsgAckDlg.cpp.
|
virtual |
|
protectedvirtual |
Perform dialog data exchange and validation.
aDataExchange | The DDX context |
Definition at line 52 of file CTxtMsgAckDlg.cpp.
References IDC_MSGACK_TXT_MSG_ID, IDC_MSGACK_TXT_RESPONSE, mMessageId, and mResponseText.
Referenced by ~CTxtMsgAckDlg().
|
protected |
Initialize the dialog.
This function is called when the window is created. It initializes the text boxes from the ack event passed to the constructor.
Definition at line 68 of file CTxtMsgAckDlg.cpp.
References text_msg_ack_event_type::ack_text, FALSE, mAckEvent, FmiApplicationLayer::mClientCodepage, mCom, text_msg_ack_event_type::message_id, mMessageId, mResponseText, MessageId::toCString(), and TRUE.
|
protected |
The text message ack event that is being displayed.
Definition at line 51 of file CTxtMsgAckDlg.h.
Referenced by OnInitDialog().
|
protected |
The reference to the communication controller.
Definition at line 48 of file CTxtMsgAckDlg.h.
Referenced by OnInitDialog().
|
protected |
Text representation of the text message ID.
Definition at line 54 of file CTxtMsgAckDlg.h.
Referenced by DoDataExchange(), and OnInitDialog().
|
protected |
Text representation of the response from the client.
Definition at line 57 of file CTxtMsgAckDlg.h.
Referenced by DoDataExchange(), and OnInitDialog().