Garmin Fleet Management Controller  2.19.0
CFeatureDlg Class Reference

FMI Feature (enable) modal dialog. More...

#include <CFeatureDlg.h>

+ Inheritance diagram for CFeatureDlg:

Public Member Functions

 CFeatureDlg (CWnd *aParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CFeatureDlg ()
 Destructor. More...
 
afx_msg void OnBnClickedOk ()
 Click handler for OK button. More...
 
BOOL OnInitDialog ()
 Initialize the dialog. More...
 

Protected Member Functions

void checkFeature (CButton *aCheckBox, fmi_feature_type aFeature)
 Process a feature check box. More...
 

Protected Attributes

FmiApplicationLayermCom
 Reference to the FMI application layer. More...
 
uint16 mFeatureCodes [126]
 Array of feature codes to send in the FMI Enable packet. More...
 
uint8 mFeatureCount
 Number of feature codes to send in the FMI Enable packet. More...
 

Detailed Description

FMI Feature (enable) modal dialog.

This dialog allows the user to send an FMI Enable packet with the specified features enabled or disabled.

Since
Protocol A607

Definition at line 22 of file CFeatureDlg.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
aParentThe parent window
aComReference to the FMI communication controller

Definition at line 25 of file CFeatureDlg.cpp.

CFeatureDlg::~CFeatureDlg ( )
virtual

Destructor.

Definition at line 38 of file CFeatureDlg.cpp.

Member Function Documentation

void CFeatureDlg::checkFeature ( CButton *  aCheckBox,
fmi_feature_type  aFeature 
)
protected

Process a feature check box.

Based on the state of aCheckBox, add aFeature to mFeatureCodes as enabled or disabled if appropriate.

Parameters
aCheckBoxThe check box to inspect
aFeatureThe feature code to enable or disable

Definition at line 69 of file CFeatureDlg.cpp.

References FEATURE_STATE_DISABLED, FEATURE_STATE_ENABLED, mFeatureCodes, and mFeatureCount.

Referenced by OnBnClickedOk(), and OnInitDialog().

BOOL CFeatureDlg::OnInitDialog ( )

Initialize the dialog.

This function is called when the window is created. It gets references to each of the check boxes, and sets the default state of the Unicode Support and A607 Support boxes to checked.

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

Definition at line 49 of file CFeatureDlg.cpp.

References checkFeature(), IDC_FEATURE_CHK_A607, IDC_FEATURE_CHK_CUST_AVOID, and IDC_FEATURE_CHK_UNICODE.

Member Data Documentation

FmiApplicationLayer& CFeatureDlg::mCom
protected

Reference to the FMI application layer.

Definition at line 46 of file CFeatureDlg.h.

Referenced by OnBnClickedOk().

uint16 CFeatureDlg::mFeatureCodes[126]
protected

Array of feature codes to send in the FMI Enable packet.

Definition at line 52 of file CFeatureDlg.h.

Referenced by checkFeature(), and OnBnClickedOk().

uint8 CFeatureDlg::mFeatureCount
protected

Number of feature codes to send in the FMI Enable packet.

Definition at line 49 of file CFeatureDlg.h.

Referenced by checkFeature(), and OnBnClickedOk().


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