Garmin Fleet Management Controller  2.19.0
CSafeModeDlg Class Reference

Modal dialog allowing the user to set FMI Safe Mode and the threshold speed. More...

#include <CSafeModeDlg.h>

+ Inheritance diagram for CSafeModeDlg:

Public Member Functions

 CSafeModeDlg (CWnd *aParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CSafeModeDlg ()
 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 OnEnChangeSafeModeSpeed ()
 Edit Change handler for Safe Mode Speed text box. More...
 
BOOL OnInitDialog ()
 Initialize the dialog. More...
 

Protected Attributes

FmiApplicationLayermCom
 Reference to the FMI communication controller that this dialog uses. More...
 
CString speed
 Speed entered by the user. More...
 

Detailed Description

Modal dialog allowing the user to set FMI Safe Mode and the threshold speed.

Since
Protocol A606

Definition at line 20 of file CSafeModeDlg.h.

Constructor & Destructor Documentation

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

Constructor.

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

Definition at line 29 of file CSafeModeDlg.cpp.

CSafeModeDlg::~CSafeModeDlg ( )
virtual

Destructor.

Definition at line 42 of file CSafeModeDlg.cpp.

References DoDataExchange().

Member Function Documentation

void CSafeModeDlg::DoDataExchange ( CDataExchange *  aDataExchange)
protectedvirtual

Perform dialog data exchange and validation.

Parameters
aDataExchangeThe DDX context

Definition at line 51 of file CSafeModeDlg.cpp.

References IDC_SAFE_MODE_SPEED, and speed.

Referenced by ~CSafeModeDlg().

void CSafeModeDlg::OnBnClickedOk ( )
protected

Click handler for the OK button.

Sends a speed to the client based on the input entered by the user.

Definition at line 92 of file CSafeModeDlg.cpp.

References FmiApplicationLayer::mClientCodepage, mCom, FmiApplicationLayer::sendFmiSafeModeSpeed(), speed, and TRUE.

void CSafeModeDlg::OnEnChangeSafeModeSpeed ( )
protected

Edit Change handler for Safe Mode Speed text box.

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

Definition at line 78 of file CSafeModeDlg.cpp.

References FALSE, speed, and TRUE.

BOOL CSafeModeDlg::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 Com.

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

Definition at line 66 of file CSafeModeDlg.cpp.

References TRUE.

Member Data Documentation

FmiApplicationLayer& CSafeModeDlg::mCom
protected

Reference to the FMI communication controller that this dialog uses.

Definition at line 43 of file CSafeModeDlg.h.

Referenced by OnBnClickedOk().

CString CSafeModeDlg::speed
protected

Speed entered by the user.

Definition at line 46 of file CSafeModeDlg.h.

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


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