Garmin Fleet Management Controller  2.19.0
CSendSensorDlg Class Reference

Form for sending A617 sensor popups to the device. More...

#include <CSendSensorDlg.h>

+ Inheritance diagram for CSendSensorDlg:

Public Types

enum  { IDD = IDD_SEND_SENSOR }
 

Public Member Functions

 CSendSensorDlg (CWnd *pParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CSendSensorDlg ()
 
void reset ()
 reset the form to defaults (since this dialog is long-lived) More...
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
 
afx_msg void OnBnClickedCreate ()
 Validate form, build and send appropriate FMI packet to device. More...
 
afx_msg void OnBnClickedDelete ()
 
afx_msg void OnBnClickedUpdate ()
 
afx_msg void OnEnChangeSensorDescription ()
 Update the description length label in response to change in description. More...
 
afx_msg void OnEnChangeSensorName ()
 Update the name length label in response to change in name. More...
 
afx_msg void OnEnChangeSensorStatus ()
 Update the status length label in response to change in status. More...
 
BOOL OnInitDialog ()
 This function is called when the window is created. More...
 
afx_msg void RefreshList ()
 

Private Attributes

int m_action
 
CString m_description
 
int m_descriptionLength
 
CComboBox m_icon
 
CString m_name
 
int m_nameLength
 
BOOL m_playSound
 
BOOL m_recordInHistory
 
CComboBox m_severity
 
int m_sortOrder
 
CString m_status
 
int m_statusLength
 
int m_uniqueId
 
FmiApplicationLayermCom
 Reference to the FMI communication controller. More...
 
SensorList mSensorList
 

Detailed Description

Form for sending A617 sensor popups to the device.

Definition at line 11 of file CSendSensorDlg.h.

Member Enumeration Documentation

anonymous enum
Enumerator
IDD 

Definition at line 25 of file CSendSensorDlg.h.

Constructor & Destructor Documentation

CSendSensorDlg::CSendSensorDlg ( CWnd *  pParent,
FmiApplicationLayer aCom 
)

Constructor.

Parameters
aParentThe parent window of this dialog
aComThe FmiApplicationLayer used to send commands to device

Definition at line 25 of file CSendSensorDlg.cpp.

CSendSensorDlg::~CSendSensorDlg ( )
virtual

Definition at line 43 of file CSendSensorDlg.cpp.

Member Function Documentation

void CSendSensorDlg::OnEnChangeSensorDescription ( )
protected

Update the description length label in response to change in description.

Definition at line 291 of file CSendSensorDlg.cpp.

References fmi_sensor_update_request::description, FALSE, m_description, m_descriptionLength, FmiApplicationLayer::mClientCodepage, and mCom.

Referenced by DoDataExchange().

void CSendSensorDlg::OnEnChangeSensorName ( )
protected

Update the name length label in response to change in name.

Definition at line 257 of file CSendSensorDlg.cpp.

References FALSE, m_name, m_nameLength, FmiApplicationLayer::mClientCodepage, mCom, and fmi_sensor_config_request::name.

Referenced by DoDataExchange().

void CSendSensorDlg::OnEnChangeSensorStatus ( )
protected

Update the status length label in response to change in status.

Definition at line 274 of file CSendSensorDlg.cpp.

References FALSE, m_status, m_statusLength, FmiApplicationLayer::mClientCodepage, mCom, and fmi_sensor_update_request::status.

Referenced by DoDataExchange().

BOOL CSendSensorDlg::OnInitDialog ( )
protected

This function is called when the window is created.

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

Definition at line 102 of file CSendSensorDlg.cpp.

References IDC_SPIN1, IDC_SPIN2, RefreshList(), and TRUE.

void CSendSensorDlg::reset ( )

reset the form to defaults (since this dialog is long-lived)

Definition at line 78 of file CSendSensorDlg.cpp.

References FALSE, m_action, m_description, m_descriptionLength, m_icon, m_name, m_nameLength, m_playSound, m_recordInHistory, m_severity, m_sortOrder, m_status, m_statusLength, and m_uniqueId.

Referenced by RefreshList().

Member Data Documentation

int CSendSensorDlg::m_action
private

Definition at line 43 of file CSendSensorDlg.h.

Referenced by reset().

CString CSendSensorDlg::m_description
private
int CSendSensorDlg::m_descriptionLength
private

Definition at line 55 of file CSendSensorDlg.h.

Referenced by DoDataExchange(), OnEnChangeSensorDescription(), and reset().

CComboBox CSendSensorDlg::m_icon
private

Definition at line 46 of file CSendSensorDlg.h.

Referenced by DoDataExchange(), OnBnClickedCreate(), RefreshList(), and reset().

CString CSendSensorDlg::m_name
private

Definition at line 50 of file CSendSensorDlg.h.

Referenced by DoDataExchange(), OnBnClickedCreate(), OnEnChangeSensorName(), and reset().

int CSendSensorDlg::m_nameLength
private

Definition at line 51 of file CSendSensorDlg.h.

Referenced by DoDataExchange(), OnEnChangeSensorName(), RefreshList(), and reset().

BOOL CSendSensorDlg::m_playSound
private

Definition at line 48 of file CSendSensorDlg.h.

Referenced by DoDataExchange(), OnBnClickedUpdate(), and reset().

BOOL CSendSensorDlg::m_recordInHistory
private

Definition at line 49 of file CSendSensorDlg.h.

Referenced by DoDataExchange(), OnBnClickedUpdate(), and reset().

CComboBox CSendSensorDlg::m_severity
private

Definition at line 47 of file CSendSensorDlg.h.

Referenced by DoDataExchange(), OnBnClickedUpdate(), RefreshList(), and reset().

int CSendSensorDlg::m_sortOrder
private

Definition at line 45 of file CSendSensorDlg.h.

Referenced by DoDataExchange(), OnBnClickedCreate(), OnBnClickedDelete(), and reset().

CString CSendSensorDlg::m_status
private

Definition at line 52 of file CSendSensorDlg.h.

Referenced by DoDataExchange(), OnBnClickedUpdate(), OnEnChangeSensorStatus(), and reset().

int CSendSensorDlg::m_statusLength
private

Definition at line 53 of file CSendSensorDlg.h.

Referenced by DoDataExchange(), OnEnChangeSensorStatus(), and reset().

int CSendSensorDlg::m_uniqueId
private
FmiApplicationLayer& CSendSensorDlg::mCom
private

Reference to the FMI communication controller.

Definition at line 58 of file CSendSensorDlg.h.

Referenced by OnBnClickedCreate(), OnBnClickedDelete(), OnBnClickedUpdate(), OnEnChangeSensorDescription(), OnEnChangeSensorName(), and OnEnChangeSensorStatus().

SensorList CSendSensorDlg::mSensorList
private

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