Garmin Fleet Management Controller  2.19.0
CTxtMsgStatusDlg Class Reference

Modal pop-up dialog displaying the status of a server to client text message. More...

#include <CTxtMsgStatusDlg.h>

+ Inheritance diagram for CTxtMsgStatusDlg:

Public Member Functions

 CTxtMsgStatusDlg (CWnd *aParent, FmiApplicationLayer &aCom, const text_msg_status_event_type *aStatusEvent)
 Constructor. More...
 
virtual ~CTxtMsgStatusDlg ()
 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

FmiApplicationLayermCom
 Reference to the communication layer. More...
 
text_msg_status_event_type mStatusEvent
 The text message status event. More...
 
CString mTextMessageId
 The text message ID. This will be in hexadecimal if the message ID is not displayable ASCII. More...
 
CString mTextMessageStatus
 String representation of the text message status ("Unread", "Not Found", etc) More...
 

Detailed Description

Modal pop-up dialog displaying the status of a server to client text message.

Dialog displaying the text message status received from the client using the Text Message Status protocol. This will be received from the client unsolicited when the status of a text message changes; if the protocol is throttled the user will only see this after requesting the status of a particular text message from the client.

Since
Protocol A604

Definition at line 28 of file CTxtMsgStatusDlg.h.

Constructor & Destructor Documentation

CTxtMsgStatusDlg::CTxtMsgStatusDlg ( CWnd *  aParent,
FmiApplicationLayer aCom,
const text_msg_status_event_type aStatusEvent 
)

Constructor.

Parameters
aParentThe parent of this dialog
aComReference to the FMI communication controller
aStatusEventThe text message status received from the client

Definition at line 26 of file CTxtMsgStatusDlg.cpp.

CTxtMsgStatusDlg::~CTxtMsgStatusDlg ( )
virtual

Destructor.

Definition at line 42 of file CTxtMsgStatusDlg.cpp.

References DoDataExchange().

Member Function Documentation

void CTxtMsgStatusDlg::DoDataExchange ( CDataExchange *  aDataExchange)
protectedvirtual

Perform dialog data exchange and validation.

Parameters
aDataExchangeThe DDX context

Definition at line 51 of file CTxtMsgStatusDlg.cpp.

References IDC_MSGSTATUS_TXT_ID, IDC_MSGSTATUS_TXT_STATUS, mTextMessageId, and mTextMessageStatus.

Referenced by ~CTxtMsgStatusDlg().

BOOL CTxtMsgStatusDlg::OnInitDialog ( )
protected

Initialize the dialog.

This function is called when the window is created. It initializes the text boxes from the text message status event passed via the constructor.

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

Definition at line 67 of file CTxtMsgStatusDlg.cpp.

References FALSE, FmiApplicationLayer::mClientCodepage, mCom, text_msg_status_event_type::message_status, MESSAGE_STATUS_NOT_FOUND, MESSAGE_STATUS_READ, MESSAGE_STATUS_UNREAD, text_msg_status_event_type::msg_id, mStatusEvent, mTextMessageId, mTextMessageStatus, MessageId::toCString(), and TRUE.

Member Data Documentation

FmiApplicationLayer& CTxtMsgStatusDlg::mCom
protected

Reference to the communication layer.

Definition at line 52 of file CTxtMsgStatusDlg.h.

Referenced by OnInitDialog().

text_msg_status_event_type CTxtMsgStatusDlg::mStatusEvent
protected

The text message status event.

Definition at line 55 of file CTxtMsgStatusDlg.h.

Referenced by OnInitDialog().

CString CTxtMsgStatusDlg::mTextMessageId
protected

The text message ID. This will be in hexadecimal if the message ID is not displayable ASCII.

Definition at line 59 of file CTxtMsgStatusDlg.h.

Referenced by DoDataExchange(), and OnInitDialog().

CString CTxtMsgStatusDlg::mTextMessageStatus
protected

String representation of the text message status ("Unread", "Not Found", etc)

Definition at line 63 of file CTxtMsgStatusDlg.h.

Referenced by DoDataExchange(), and OnInitDialog().


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