Garmin Fleet Management Controller
2.19.0
|
FMI Feature (enable) modal dialog. More...
#include <CFeatureDlg.h>
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 | |
FmiApplicationLayer & | mCom |
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... | |
FMI Feature (enable) modal dialog.
This dialog allows the user to send an FMI Enable packet with the specified features enabled or disabled.
Definition at line 22 of file CFeatureDlg.h.
CFeatureDlg::CFeatureDlg | ( | CWnd * | aParent, |
FmiApplicationLayer & | aCom | ||
) |
Constructor.
aParent | The parent window |
aCom | Reference to the FMI communication controller |
Definition at line 25 of file CFeatureDlg.cpp.
|
virtual |
Destructor.
Definition at line 38 of file CFeatureDlg.cpp.
|
protected |
Process a feature check box.
Based on the state of aCheckBox, add aFeature to mFeatureCodes as enabled or disabled if appropriate.
aCheckBox | The check box to inspect |
aFeature | The 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().
void CFeatureDlg::OnBnClickedOk | ( | ) |
Click handler for OK button.
Build and send an extended FMI enable packet based on the state of the check boxes.
Definition at line 97 of file CFeatureDlg.cpp.
References checkFeature(), CODEPAGE_ASCII, CODEPAGE_UNICODE, custom_avoid_feature_enable_type::enable, FALSE, FEATURE_ID_A607_SUPPORT, FEATURE_ID_AOBRD_SUPPORT, FEATURE_ID_DRIVER_PASSWORDS, FEATURE_ID_MULTIPLE_DRIVERS, FEATURE_ID_UNICODE, FMI_CUSTOM_AVOID_ENABLE_FEATURE_REQUEST, IDC_FEATURE_CHK_A607, IDC_FEATURE_CHK_AOBRD, IDC_FEATURE_CHK_CUST_AVOID, IDC_FEATURE_CHK_MULTIDRIVER, IDC_FEATURE_CHK_PASSWORDS, IDC_FEATURE_CHK_UNICODE, FmiApplicationLayer::mClientCodepage, mCom, mFeatureCodes, mFeatureCount, FmiApplicationLayer::mUseAOBRD, FmiApplicationLayer::mUseMultipleDrivers, FmiApplicationLayer::mUsePasswords, custom_avoid_feature_enable_type::origination_time, FmiApplicationLayer::sendEnable(), FmiApplicationLayer::sendFmiPacket(), TRUE, and UTIL_get_current_garmin_time().
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.
Definition at line 49 of file CFeatureDlg.cpp.
References checkFeature(), IDC_FEATURE_CHK_A607, IDC_FEATURE_CHK_CUST_AVOID, and IDC_FEATURE_CHK_UNICODE.
|
protected |
Reference to the FMI application layer.
Definition at line 46 of file CFeatureDlg.h.
Referenced by OnBnClickedOk().
|
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().
|
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().