Garmin Fleet Management Controller  2.19.0
CDashcamDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CDashcam.h
5 *
6 * Copyright 2015 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #include "FmiApplicationLayer.h"
11 #include "CWndEventListener.h"
12 
13 #if( FMI_SUPPORT_A622 )
14 
15 // CDashcam dialog
16 
17 //----------------------------------------------------------------------
20 //----------------------------------------------------------------------
21 class CDashcamDlg : public CDialog, public CWndEventListener
22 {
23  DECLARE_DYNAMIC( CDashcamDlg )
24 
25 public:
27  CWnd* pParent,
28  FmiApplicationLayer & aCom
29  );
30  virtual ~CDashcamDlg();
31 
32 // Dialog Data
33  enum { IDD = IDD_DASHCAM };
34 
35 protected:
36  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
37 
38  DECLARE_MESSAGE_MAP()
39 
40  void PostNcDestroy();
41  afx_msg LRESULT CDashcamDlg::OnDashcamLockReceipt( WPARAM, LPARAM );
42  afx_msg LRESULT CDashcamDlg::OnDashcamConfigReceipt( WPARAM, LPARAM );
43  afx_msg LRESULT CDashcamDlg::OnDashcamGetSettingsResponse( WPARAM, LPARAM );
44 
45  void OnBnClickedSet();
46  void OnRefreshSettings();
47  void OnClose();
48  void OnReevaluate();
49  void OnBnClickedSelectAll();
50  void OnReevaluateLock();
51  void OnBnClickedSetLock();
52  void postFailure( uint8 );
53 
56 
57  BOOL OnInitDialog();
58 
71  BOOL mSelectAll;
82 };
83 
84 #endif
virtual ~CDashcamDlg()
Destructor.
BOOL OnInitDialog()
Initialize the dialog.
int mRecordOnStartup
Definition: CDashcamDlg.h:64
int mIncidentDetection
Definition: CDashcamDlg.h:65
BOOL mSendDataOverlayLocationSpeed
Definition: CDashcamDlg.h:79
BOOL mSendCollisionSensitivity
Definition: CDashcamDlg.h:73
void OnBnClickedSelectAll()
Handler for the select all check.
int mVideoResolution
Definition: CDashcamDlg.h:69
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
Definition: CDashcamDlg.h:55
void OnReevaluate()
Change handler for editable controls.
int mLaneDeparture
Definition: CDashcamDlg.h:63
BOOL mSendRecordOnStartup
Definition: CDashcamDlg.h:75
BOOL mSendRecordAudio
Definition: CDashcamDlg.h:77
Browser-based container for listing the Dashcam library.
Definition: CDashcamDlg.h:21
void PostNcDestroy()
Called by MFC after the window has been destroyed; performs final termination activities.
BOOL mSendVideoResolution
Definition: CDashcamDlg.h:80
CDashcamDlg(CWnd *pParent, FmiApplicationLayer &aCom)
Constructor.
Definition: CDashcamDlg.cpp:72
int mDataOverlayDateTime
Definition: CDashcamDlg.h:67
BOOL mSelectAll
Definition: CDashcamDlg.h:71
int mCollisionSensitivity
Definition: CDashcamDlg.h:62
void OnBnClickedSetLock()
Button handler for the Set Lock button pressed.
void OnRefreshSettings()
Button handler for the Refresh Settings button.
BOOL mSendIncidentDetection
Definition: CDashcamDlg.h:76
BOOL mSendLaneDeparture
Definition: CDashcamDlg.h:74
Serial communication controller for Garmin and FMI packets.
EventListener that dispatches a Windows message.
BOOL mSendDataOverlayDateTime
Definition: CDashcamDlg.h:78
void OnClose()
Handler for the Close action.
BOOL mSendRecordAfterPowerLoss
Definition: CDashcamDlg.h:81
void postFailure(uint8)
void OnBnClickedSet()
Button handler for the Set button.
int mLockAssist
Definition: CDashcamDlg.h:60
unsigned char uint8
8-bit unsigned integer
Definition: garmin_types.h:62
afx_msg LRESULT OnDashcamGetSettingsResponse(WPARAM, LPARAM)
This function handles dashcam get settings receipt event from device.
void OnReevaluateLock()
Change handler for editable controls.
BOOL mSendCollisionWarning
Definition: CDashcamDlg.h:72
#define IDD_DASHCAM
Definition: resource.h:63
afx_msg LRESULT OnDashcamConfigReceipt(WPARAM, LPARAM)
This function handles the dashcam set configuration receipt event from device.
afx_msg LRESULT OnDashcamLockReceipt(WPARAM, LPARAM)
This function handles the dashcam lock/unlock receipt event from device.
int mForwardCollision
Definition: CDashcamDlg.h:61
int mLockDashcam
Definition: CDashcamDlg.h:59
int mDataOverlayLocationSpeed
Definition: CDashcamDlg.h:68
int mRecordAudio
Definition: CDashcamDlg.h:66
int mRecordAfterPowerLoss
Definition: CDashcamDlg.h:70
virtual void DoDataExchange(CDataExchange *pDX)
Perform dialog data exchange and validation.