Garmin Fleet Management Controller  2.19.0
CTxtMsgAckDlg Class Reference

Modal pop up which displays a text message ack received from the client. More...

#include <CTxtMsgAckDlg.h>

+ Inheritance diagram for CTxtMsgAckDlg:

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 FmiApplicationLayermCom
 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

CTxtMsgAckDlg::CTxtMsgAckDlg ( CWnd *  aParent,
const FmiApplicationLayer aCom,
const text_msg_ack_event_type aAckEvent 
)

Constructor.

Parameters
aParentThe parent of this dialog
aComReference to the FMI communication controller
aAckEventThe text message ack that was received

Definition at line 27 of file CTxtMsgAckDlg.cpp.

CTxtMsgAckDlg::~CTxtMsgAckDlg ( )
virtual

Destructor.

Definition at line 43 of file CTxtMsgAckDlg.cpp.

References DoDataExchange().

Member Function Documentation

void CTxtMsgAckDlg::DoDataExchange ( CDataExchange *  aDataExchange)
protectedvirtual

Perform dialog data exchange and validation.

Parameters
aDataExchangeThe 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().

BOOL CTxtMsgAckDlg::OnInitDialog ( )
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.

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

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.

Member Data Documentation

text_msg_ack_event_type CTxtMsgAckDlg::mAckEvent
protected

The text message ack event that is being displayed.

Definition at line 51 of file CTxtMsgAckDlg.h.

Referenced by OnInitDialog().

const FmiApplicationLayer& CTxtMsgAckDlg::mCom
protected

The reference to the communication controller.

Definition at line 48 of file CTxtMsgAckDlg.h.

Referenced by OnInitDialog().

CString CTxtMsgAckDlg::mMessageId
protected

Text representation of the text message ID.

Definition at line 54 of file CTxtMsgAckDlg.h.

Referenced by DoDataExchange(), and OnInitDialog().

CString CTxtMsgAckDlg::mResponseText
protected

Text representation of the response from the client.

Definition at line 57 of file CTxtMsgAckDlg.h.

Referenced by DoDataExchange(), and OnInitDialog().


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