Garmin Fleet Management Controller  2.19.0
CTxtMsgStatusRequestDlg Class Reference

Modal dialog allowing the user to request the status of a server to client text message. More...

#include <CTxtMsgStatusRequestDlg.h>

+ Inheritance diagram for CTxtMsgStatusRequestDlg:

Public Member Functions

 CTxtMsgStatusRequestDlg (CWnd *aParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CTxtMsgStatusRequestDlg ()
 Destructor. More...
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *aDataExchange)
 Perform dialog data exchange and validation. More...
 
afx_msg void OnBnClickedOk ()
 Click handler for the OK button. More...
 
afx_msg void OnEnChangeEditMsgId ()
 Edit Change handler for Message ID text box. More...
 
BOOL OnInitDialog ()
 Initialize the dialog. More...
 

Protected Attributes

FmiApplicationLayermCom
 Reference to the FMI communication controller that this dialog uses. More...
 
CString mMessageId
 Message ID entered by the user. More...
 

Detailed Description

Modal dialog allowing the user to request the status of a server to client text message.

Since
Protocol A604

Definition at line 20 of file CTxtMsgStatusRequestDlg.h.

Constructor & Destructor Documentation

CTxtMsgStatusRequestDlg::CTxtMsgStatusRequestDlg ( CWnd *  aParent,
FmiApplicationLayer aCom 
)

Constructor.

Parameters
aParentThe parent of this dialog
aComReference to the FMI communication controller

Definition at line 28 of file CTxtMsgStatusRequestDlg.cpp.

CTxtMsgStatusRequestDlg::~CTxtMsgStatusRequestDlg ( )
virtual

Destructor.

Definition at line 41 of file CTxtMsgStatusRequestDlg.cpp.

References DoDataExchange().

Member Function Documentation

void CTxtMsgStatusRequestDlg::DoDataExchange ( CDataExchange *  aDataExchange)
protectedvirtual

Perform dialog data exchange and validation.

Parameters
aDataExchangeThe DDX context

Definition at line 50 of file CTxtMsgStatusRequestDlg.cpp.

References IDC_STATUSREQ_EDIT_MSG_ID, and mMessageId.

Referenced by ~CTxtMsgStatusRequestDlg().

void CTxtMsgStatusRequestDlg::OnBnClickedOk ( )
protected

Click handler for the OK button.

Sends a Text Message Status Request to the client based on the input entered by the user.

Definition at line 95 of file CTxtMsgStatusRequestDlg.cpp.

References FmiApplicationLayer::mClientCodepage, mCom, mMessageId, FmiApplicationLayer::sendTextMessageStatusRequest(), and TRUE.

void CTxtMsgStatusRequestDlg::OnEnChangeEditMsgId ( )
protected

Edit Change handler for Message ID text box.

Enables OK button if the message ID is not empty; disables OK button otherwise.

Definition at line 77 of file CTxtMsgStatusRequestDlg.cpp.

References FALSE, mMessageId, and TRUE.

BOOL CTxtMsgStatusRequestDlg::OnInitDialog ( )
protected

Initialize the dialog.

This function is called when the window is created. It sets up the parent, so it can get info from and send a message to FmiApplicationLayer.

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

Definition at line 65 of file CTxtMsgStatusRequestDlg.cpp.

References TRUE.

Member Data Documentation

FmiApplicationLayer& CTxtMsgStatusRequestDlg::mCom
protected

Reference to the FMI communication controller that this dialog uses.

Definition at line 44 of file CTxtMsgStatusRequestDlg.h.

Referenced by OnBnClickedOk().

CString CTxtMsgStatusRequestDlg::mMessageId
protected

Message ID entered by the user.

Definition at line 47 of file CTxtMsgStatusRequestDlg.h.

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


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