Garmin Fleet Management Controller  2.19.0
CEtaModeDlg Class Reference

Modal dialog allowing the user to select an ETA mode for the device to operate in. More...

#include <CEtaModeDlg.h>

+ Inheritance diagram for CEtaModeDlg:

Public Types

typedef CString mode_type
 

Public Member Functions

 CEtaModeDlg (CWnd *aParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CEtaModeDlg ()
 Destructor. More...
 

Private Member Functions

virtual void DoDataExchange (CDataExchange *aDataExchange)
 Perform dialog data exchange and validation. More...
 
afx_msg void OnBnClickedSend ()
 Click handler for Send button. More...
 
BOOL OnInitDialog ()
 Initialize the dialog. More...
 

Private Attributes

FmiApplicationLayermCom
 Reference to the FMI communication controller. More...
 
FMI_eta_mode_type mMode
 Mode to be transferred, as specified by the user. More...
 

Detailed Description

Modal dialog allowing the user to select an ETA mode for the device to operate in.

Since
Protocol A623

Definition at line 20 of file CEtaModeDlg.h.

Member Typedef Documentation

typedef CString CEtaModeDlg::mode_type

Definition at line 33 of file CEtaModeDlg.h.

Constructor & Destructor Documentation

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

Constructor.

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

Definition at line 42 of file CEtaModeDlg.cpp.

CEtaModeDlg::~CEtaModeDlg ( )
virtual

Destructor.

Definition at line 55 of file CEtaModeDlg.cpp.

References DoDataExchange().

Member Function Documentation

void CEtaModeDlg::DoDataExchange ( CDataExchange *  aDataExchange)
privatevirtual

Perform dialog data exchange and validation.

Parameters
aDataExchangeThe DDX context

Definition at line 64 of file CEtaModeDlg.cpp.

References IDC_ETA_MODE_CBO.

Referenced by ~CEtaModeDlg().

void CEtaModeDlg::OnBnClickedSend ( )
private

Click handler for Send button.

Sends the ETA Mode Request packet with the mode selected by the user.

Definition at line 103 of file CEtaModeDlg.cpp.

References TRUE.

BOOL CEtaModeDlg::OnInitDialog ( )
private

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 FmiApplicationLayer.

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

Definition at line 82 of file CEtaModeDlg.cpp.

References cnt_of_array, ETA_SETTING_DISPATCH, IDC_ETA_MODE_CBO, mode_types, and TRUE.

Member Data Documentation

FmiApplicationLayer& CEtaModeDlg::mCom
private

Reference to the FMI communication controller.

Definition at line 45 of file CEtaModeDlg.h.

FMI_eta_mode_type CEtaModeDlg::mMode
private

Mode to be transferred, as specified by the user.

Definition at line 48 of file CEtaModeDlg.h.


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