Garmin Fleet Management Controller  2.19.0
CAobrdOdometerDlg Class Reference

Modal dialog allowing the user to set AOBRD Odometer value. More...

#include <CAobrdOdometerDlg.h>

+ Inheritance diagram for CAobrdOdometerDlg:

Public Member Functions

 CAobrdOdometerDlg (CWnd *aParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CAobrdOdometerDlg ()
 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 OnEnChangeAobrdOdometer ()
 Edit Change handler for AOBRD odometer value text box. More...
 
BOOL OnInitDialog ()
 Initialize the dialog. More...
 

Protected Attributes

FmiApplicationLayermCom
 Reference to the FMI communication controller that this dialog uses. More...
 
CString odometer_value
 Odometer reading entered by the user. More...
 

Detailed Description

Modal dialog allowing the user to set AOBRD Odometer value.

Since
Protocol A610

Definition at line 21 of file CAobrdOdometerDlg.h.

Constructor & Destructor Documentation

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

Constructor.

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

Definition at line 31 of file CAobrdOdometerDlg.cpp.

CAobrdOdometerDlg::~CAobrdOdometerDlg ( )
virtual

Destructor.

Definition at line 44 of file CAobrdOdometerDlg.cpp.

References DoDataExchange().

Member Function Documentation

void CAobrdOdometerDlg::DoDataExchange ( CDataExchange *  aDataExchange)
protectedvirtual

Perform dialog data exchange and validation.

Parameters
aDataExchangeThe DDX context

Definition at line 53 of file CAobrdOdometerDlg.cpp.

References IDC_AOBRD_ODOMETER_VALUE, and odometer_value.

Referenced by ~CAobrdOdometerDlg().

void CAobrdOdometerDlg::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 94 of file CAobrdOdometerDlg.cpp.

References FmiApplicationLayer::mClientCodepage, mCom, odometer_value, FmiApplicationLayer::sendAOBRDOdometerValue(), and TRUE.

void CAobrdOdometerDlg::OnEnChangeAobrdOdometer ( )
protected

Edit Change handler for AOBRD odometer value text box.

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

Definition at line 80 of file CAobrdOdometerDlg.cpp.

References FALSE, odometer_value, and TRUE.

BOOL CAobrdOdometerDlg::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 68 of file CAobrdOdometerDlg.cpp.

References TRUE.

Member Data Documentation

FmiApplicationLayer& CAobrdOdometerDlg::mCom
protected

Reference to the FMI communication controller that this dialog uses.

Definition at line 44 of file CAobrdOdometerDlg.h.

Referenced by OnBnClickedOk().

CString CAobrdOdometerDlg::odometer_value
protected

Odometer reading entered by the user.

Definition at line 47 of file CAobrdOdometerDlg.h.

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


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