Garmin Fleet Management Controller
2.19.0
|
Modal pop-up dialog displaying the status of a server to client text message. More...
#include <CTxtMsgStatusDlg.h>
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 | |
FmiApplicationLayer & | mCom |
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... | |
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.
Definition at line 28 of file CTxtMsgStatusDlg.h.
CTxtMsgStatusDlg::CTxtMsgStatusDlg | ( | CWnd * | aParent, |
FmiApplicationLayer & | aCom, | ||
const text_msg_status_event_type * | aStatusEvent | ||
) |
Constructor.
aParent | The parent of this dialog |
aCom | Reference to the FMI communication controller |
aStatusEvent | The text message status received from the client |
Definition at line 26 of file CTxtMsgStatusDlg.cpp.
|
virtual |
|
protectedvirtual |
Perform dialog data exchange and validation.
aDataExchange | The 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().
|
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.
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.
|
protected |
Reference to the communication layer.
Definition at line 52 of file CTxtMsgStatusDlg.h.
Referenced by OnInitDialog().
|
protected |
The text message status event.
Definition at line 55 of file CTxtMsgStatusDlg.h.
Referenced by OnInitDialog().
|
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().
|
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().