Garmin Fleet Management Controller
2.19.0
|
Dialog allowing the user to select the canned responses that are allowed for a particular message. More...
#include <CSelectCannedResponseDlg.h>
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 | |
FmiApplicationLayer & | mCom |
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... | |
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.
Definition at line 30 of file CSelectCannedResponseDlg.h.
CSelectCannedResponseDlg::CSelectCannedResponseDlg | ( | const MessageId & | aMessageId, |
char * | aMessageText, | ||
uint8 | aMessageType, | ||
CWnd * | aParent, | ||
FmiApplicationLayer & | aCom | ||
) |
Constructor.
aMessageId | The message ID of the message to send |
aMessageText | The message text to send; must be null-terminated |
aMessageType | The message_type; see the a604_message_type enum |
aParent | Reference to the parent window |
aCom | Reference to the FMI communication controller |
Definition at line 34 of file CSelectCannedResponseDlg.cpp.
|
virtual |
Destructor.
Definition at line 52 of file CSelectCannedResponseDlg.cpp.
References DoDataExchange().
|
protectedvirtual |
Perform dialog data exchange and validation.
aDataExchange | The DDX context |
Definition at line 61 of file CSelectCannedResponseDlg.cpp.
References IDC_RESPSEL_LST_RESPONSES.
Referenced by ~CSelectCannedResponseDlg().
|
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.
|
protected |
This function is called when the window is created.
Builds the list box of canned responses that the user can select from.
Definition at line 75 of file CSelectCannedResponseDlg.cpp.
References FileBackedMap< T >::begin(), FileBackedMap< T >::end(), and TRUE.
|
protected |
Reference to the FMI communication controller.
Definition at line 55 of file CSelectCannedResponseDlg.h.
|
protected |
List box containing the canned responses.
Definition at line 58 of file CSelectCannedResponseDlg.h.
|
protected |
The message ID passed in from the CNewTxtMsgDlg.
Definition at line 65 of file CSelectCannedResponseDlg.h.
|
protected |
The message text passed in from the CNewTxtMsgDlg.
Definition at line 68 of file CSelectCannedResponseDlg.h.
|
protected |
The message type passed in from the CNewTxtMsgDlg.
Definition at line 62 of file CSelectCannedResponseDlg.h.