Garmin Fleet Management Controller  2.19.0
CSelectCannedResponseDlg Class Reference

Dialog allowing the user to select the canned responses that are allowed for a particular message. More...

#include <CSelectCannedResponseDlg.h>

+ Inheritance diagram for CSelectCannedResponseDlg:

Public Member Functions

 CSelectCannedResponseDlg (const MessageId &aMessageId, char *aMessageText, uint8 aMessageType, CWnd *aParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CSelectCannedResponseDlg ()
 Destructor. More...
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *aDataExchange)
 Perform dialog data exchange and validation. More...
 
afx_msg void OnBnClickedOk ()
 OK button handler. More...
 
BOOL OnInitDialog ()
 This function is called when the window is created. More...
 

Protected Attributes

FmiApplicationLayermCom
 Reference to the FMI communication controller. More...
 
CListBox mListBox
 List box containing the canned responses. More...
 
MessageId mMessageId
 The message ID passed in from the CNewTxtMsgDlg. More...
 
char mMessageText [TEXT_MSG_BUFFER_MAX_SIZE]
 The message text passed in from the CNewTxtMsgDlg. More...
 
uint8 mMessageType
 The message type passed in from the CNewTxtMsgDlg. More...
 

Detailed Description

Dialog allowing the user to select the canned responses that are allowed for a particular message.

Because the protocol cannot be started until the user has selected the message IDs, all required information to send the text message is passed from the CNewTxtMsgDlg via the constructor. Then, when the user clicks OK in this dialog, all the information is passed to FmiApplicationLayer, which sends all of the packets.

Note
The global list of canned responses is created using the CManageCannedResponseDlg.
Since
Protocol A604

Definition at line 30 of file CSelectCannedResponseDlg.h.

Constructor & Destructor Documentation

CSelectCannedResponseDlg::CSelectCannedResponseDlg ( const MessageId aMessageId,
char *  aMessageText,
uint8  aMessageType,
CWnd *  aParent,
FmiApplicationLayer aCom 
)

Constructor.

Parameters
aMessageIdThe message ID of the message to send
aMessageTextThe message text to send; must be null-terminated
aMessageTypeThe message_type; see the a604_message_type enum
aParentReference to the parent window
aComReference to the FMI communication controller

Definition at line 34 of file CSelectCannedResponseDlg.cpp.

CSelectCannedResponseDlg::~CSelectCannedResponseDlg ( )
virtual

Destructor.

Definition at line 52 of file CSelectCannedResponseDlg.cpp.

References DoDataExchange().

Member Function Documentation

void CSelectCannedResponseDlg::DoDataExchange ( CDataExchange *  aDataExchange)
protectedvirtual

Perform dialog data exchange and validation.

Parameters
aDataExchangeThe DDX context

Definition at line 61 of file CSelectCannedResponseDlg.cpp.

References IDC_RESPSEL_LST_RESPONSES.

Referenced by ~CSelectCannedResponseDlg().

void CSelectCannedResponseDlg::OnBnClickedOk ( )
protected

OK button handler.

Extracts data from the form and sends a canned response text message via FmiApplicationLayer.

Definition at line 98 of file CSelectCannedResponseDlg.cpp.

References TRUE.

BOOL CSelectCannedResponseDlg::OnInitDialog ( )
protected

This function is called when the window is created.

Builds the list box of canned responses that the user can select from.

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

Definition at line 75 of file CSelectCannedResponseDlg.cpp.

References FileBackedMap< T >::begin(), FileBackedMap< T >::end(), and TRUE.

Member Data Documentation

FmiApplicationLayer& CSelectCannedResponseDlg::mCom
protected

Reference to the FMI communication controller.

Definition at line 55 of file CSelectCannedResponseDlg.h.

CListBox CSelectCannedResponseDlg::mListBox
protected

List box containing the canned responses.

Definition at line 58 of file CSelectCannedResponseDlg.h.

MessageId CSelectCannedResponseDlg::mMessageId
protected

The message ID passed in from the CNewTxtMsgDlg.

Definition at line 65 of file CSelectCannedResponseDlg.h.

char CSelectCannedResponseDlg::mMessageText[TEXT_MSG_BUFFER_MAX_SIZE]
protected

The message text passed in from the CNewTxtMsgDlg.

Definition at line 68 of file CSelectCannedResponseDlg.h.

uint8 CSelectCannedResponseDlg::mMessageType
protected

The message type passed in from the CNewTxtMsgDlg.

See also
a604_message_type for valid values

Definition at line 62 of file CSelectCannedResponseDlg.h.


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