Garmin Fleet Management Controller
2.19.0
|
Form for sending A617 sensor popups to the device. More...
#include <CSendSensorDlg.h>
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 |
FmiApplicationLayer & | mCom |
Reference to the FMI communication controller. More... | |
SensorList | mSensorList |
Form for sending A617 sensor popups to the device.
Definition at line 11 of file CSendSensorDlg.h.
anonymous enum |
Enumerator | |
---|---|
IDD |
Definition at line 25 of file CSendSensorDlg.h.
CSendSensorDlg::CSendSensorDlg | ( | CWnd * | pParent, |
FmiApplicationLayer & | aCom | ||
) |
Constructor.
aParent | The parent window of this dialog |
aCom | The FmiApplicationLayer used to send commands to device |
Definition at line 25 of file CSendSensorDlg.cpp.
|
virtual |
Definition at line 43 of file CSendSensorDlg.cpp.
|
protectedvirtual |
Definition at line 47 of file CSendSensorDlg.cpp.
References IDC_CREATE2, IDC_DELETE2, IDC_SENSOR_DESCR_LENGTH, IDC_SENSOR_DESCRIPTION, IDC_SENSOR_ICON, IDC_SENSOR_LIST, IDC_SENSOR_NAME, IDC_SENSOR_NAME_LENGTH, IDC_SENSOR_PLAY_SOUND, IDC_SENSOR_RECORD_IN_HISTORY, IDC_SENSOR_SEVERITY, IDC_SENSOR_SORT_ORDER, IDC_SENSOR_STATUS, IDC_SENSOR_STATUS_LENGTH, IDC_SENSOR_UNIQUE_ID, IDC_UPDATE3, m_description, m_descriptionLength, m_icon, m_name, m_nameLength, m_playSound, m_recordInHistory, m_severity, m_sortOrder, m_status, m_statusLength, m_uniqueId, OnBnClickedCreate(), OnBnClickedDelete(), OnBnClickedUpdate(), OnEnChangeSensorDescription(), OnEnChangeSensorName(), OnEnChangeSensorStatus(), and RefreshList().
|
protected |
Validate form, build and send appropriate FMI packet to device.
Definition at line 178 of file CSendSensorDlg.cpp.
References fmi_sensor_config_request::change_id, fmi_sensor_config_request::display_index, FMI_SENSOR_CONFIG_REQUEST, fmi_sensor_config_request::icon, m_icon, m_name, m_sortOrder, m_uniqueId, FmiApplicationLayer::mClientCodepage, mCom, mSensorList, fmi_sensor_config_request::name, RefreshList(), FmiApplicationLayer::sendFmiPacket(), SensorListItem::setConfig(), SensorListItem::setCurrentName(), ClientListItem::setId(), SensorListItem::setParent(), ClientListItem::setValid(), and fmi_sensor_config_request::unique_id.
Referenced by DoDataExchange().
|
protected |
Definition at line 239 of file CSendSensorDlg.cpp.
References fmi_sensor_delete_request::change_id, FMI_SENSOR_DELETE_REQUEST, m_sortOrder, m_uniqueId, mCom, mSensorList, RefreshList(), FmiApplicationLayer::sendFmiPacket(), and fmi_sensor_delete_request::unique_id.
Referenced by DoDataExchange().
|
protected |
Definition at line 207 of file CSendSensorDlg.cpp.
References fmi_sensor_update_request::change_id, fmi_sensor_update_request::description, FMI_SENSOR_UPDATE_REQUEST, m_description, m_playSound, m_recordInHistory, m_severity, m_status, m_uniqueId, FmiApplicationLayer::mClientCodepage, mCom, mSensorList, fmi_sensor_update_request::play_sound, fmi_sensor_update_request::record_sensor, RefreshList(), FmiApplicationLayer::sendFmiPacket(), fmi_sensor_update_request::severity, fmi_sensor_update_request::status, and fmi_sensor_update_request::unique_id.
Referenced by DoDataExchange().
|
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().
|
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().
|
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().
|
protected |
This function is called when the window is created.
Definition at line 102 of file CSendSensorDlg.cpp.
References IDC_SPIN1, IDC_SPIN2, RefreshList(), and TRUE.
|
protected |
Definition at line 114 of file CSendSensorDlg.cpp.
References ClientListItem::getCurrentName(), SensorListItem::getDescription(), SensorListItem::getDisplayIndex(), SensorListItem::getIcon(), SensorListItem::getNumUpdates(), SensorListItem::getPlaySound(), SensorListItem::getRecordSensor(), SensorListItem::getSeverity(), SensorListItem::getStatus(), SensorListItem::getUniqueId(), IDC_SENSOR_DESCR_LENGTH, IDC_SENSOR_DESCRIPTION, IDC_SENSOR_LIST, IDC_SENSOR_NAME, IDC_SENSOR_PLAY_SOUND, IDC_SENSOR_RECORD_IN_HISTORY, IDC_SENSOR_SORT_ORDER, IDC_SENSOR_STATUS, IDC_SENSOR_STATUS_LENGTH, IDC_SENSOR_UNIQUE_ID, m_icon, m_nameLength, m_severity, mSensorList, and reset().
Referenced by DoDataExchange(), OnBnClickedCreate(), OnBnClickedDelete(), OnBnClickedUpdate(), and OnInitDialog().
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().
|
private |
Definition at line 43 of file CSendSensorDlg.h.
Referenced by reset().
|
private |
Definition at line 54 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnBnClickedUpdate(), OnEnChangeSensorDescription(), and reset().
|
private |
Definition at line 55 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnEnChangeSensorDescription(), and reset().
|
private |
Definition at line 46 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnBnClickedCreate(), RefreshList(), and reset().
|
private |
Definition at line 50 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnBnClickedCreate(), OnEnChangeSensorName(), and reset().
|
private |
Definition at line 51 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnEnChangeSensorName(), RefreshList(), and reset().
|
private |
Definition at line 48 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnBnClickedUpdate(), and reset().
|
private |
Definition at line 49 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnBnClickedUpdate(), and reset().
|
private |
Definition at line 47 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnBnClickedUpdate(), RefreshList(), and reset().
|
private |
Definition at line 45 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnBnClickedCreate(), OnBnClickedDelete(), and reset().
|
private |
Definition at line 52 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnBnClickedUpdate(), OnEnChangeSensorStatus(), and reset().
|
private |
Definition at line 53 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnEnChangeSensorStatus(), and reset().
|
private |
Definition at line 44 of file CSendSensorDlg.h.
Referenced by DoDataExchange(), OnBnClickedCreate(), OnBnClickedDelete(), OnBnClickedUpdate(), and reset().
|
private |
Reference to the FMI communication controller.
Definition at line 58 of file CSendSensorDlg.h.
Referenced by OnBnClickedCreate(), OnBnClickedDelete(), OnBnClickedUpdate(), OnEnChangeSensorDescription(), OnEnChangeSensorName(), and OnEnChangeSensorStatus().
|
private |
Definition at line 60 of file CSendSensorDlg.h.
Referenced by OnBnClickedCreate(), OnBnClickedDelete(), OnBnClickedUpdate(), and RefreshList().