31 CPingStatusDlg::CPingStatusDlg
54 CDataExchange * aDataExchange
57 CDialog::DoDataExchange( aDataExchange );
74 CDialog::OnInitDialog();
afx_msg LRESULT OnPingEvent(WPARAM, LPARAM)
Handler for the Ping event from FmiApplicationLayer.
#define IDC_PING_BTN_RESET_CLIENT
virtual ~CPingStatusDlg()
Destructor.
afx_msg void OnBnClickedResetServer()
Click handler for the Reset (Server) button.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
CTime mLastClientPingTime
Last time when a client to server ping was received.
#define IDC_PING_TXT_SERVER_PING_TS
#define IDC_PING_TXT_CLIENT_PING_TS
#define IDC_PING_TXT_CLIENT_PINGS
CString mClientPingTime
Time when the last client to server ping was received, in the form HH:MM:SS AA (AA is am or pm) ...
CTime mLastServerPingTime
Last time when a server to client ping was received.
CString mClientPingCount
Number of client to server pings received.
#define IDC_PING_BTN_RESET_SERVER
int mServerPingCount
Number of server-to-client pings sent; can be reset by the user.
Serial communication controller for Garmin and FMI packets.
#define IDC_PING_TXT_SERVER_PINGS
CString mServerPingTime
Time when the last server to client ping was sent, in the form HH:MM:SS AA (AA is am or pm) ...
int mClientPingCount
Number of client-to-server pings received; can be reset by the user.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
BOOL OnInitDialog()
Initialize the dialog.
void updateTextFields()
Update the text boxes.
CString mServerPingCount
Number of server to client pings sent.
Modeless dialog allowing the user to view ping status and send a ping.
#define WM_EVENT(_event)
Translation from an application event to the corresponding Windows message.
void sendPing()
Send a ping packet to the client.
afx_msg void OnBnClickedResetClient()
Click handler for the Reset (Client) button.
afx_msg void OnBnClickedSendPing()
Click handler for the Send Ping button.
#define IDC_PING_BTN_SEND