Garmin Fleet Management Controller  2.19.0
CDashcamNtfctnDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CDashcamNtfctnDlg.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 // CDashcamNtfctn dialog
16 
17 //----------------------------------------------------------------------
20 //----------------------------------------------------------------------
21 class CDashcamNtfctnDlg : public CDialog, public CWndEventListener
22 {
23  DECLARE_DYNAMIC( CDashcamNtfctnDlg )
24 
25 public:
27  CWnd* pParent,
28  FmiApplicationLayer & aCom
29  );
30  virtual ~CDashcamNtfctnDlg();
31 
32 // Dialog Data
33  enum { IDD = IDD_DASHCAM_NTFCTN };
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 CDashcamNtfctnDlg::OnDashcamSetNtfctnReceipt( WPARAM, LPARAM );
42  afx_msg LRESULT CDashcamNtfctnDlg::OnGetNtfctnSettingsResponse( WPARAM, LPARAM );
43 
44  void OnBnClickedSet();
46  void OnClose();
47  void OnReevaluate();
48 
51 
52  BOOL OnInitDialog();
53 
57 };
58 
59 #endif
BOOL OnInitDialog()
Initialize the dialog.
virtual ~CDashcamNtfctnDlg()
Destructor.
void OnClose()
Handler for the Close action.
Browser-based container for listing the Dashcam library.
void PostNcDestroy()
Called by MFC after the window has been destroyed; performs final termination activities.
afx_msg LRESULT OnGetNtfctnSettingsResponse(WPARAM, LPARAM)
This function handles the dashcam set notification receipt event from device.
void OnRefreshNtfctnSettings()
Button handler for the Retrieve Settings button.
virtual void DoDataExchange(CDataExchange *pDX)
Perform dialog data exchange and validation.
void OnReevaluate()
Change handler for editable controls.
void OnBnClickedSet()
Button handler for the Set button.
#define IDD_DASHCAM_NTFCTN
Definition: resource.h:64
Serial communication controller for Garmin and FMI packets.
afx_msg LRESULT OnDashcamSetNtfctnReceipt(WPARAM, LPARAM)
This function handles the dashcam set notification receipt event from device.
EventListener that dispatches a Windows message.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
CDashcamNtfctnDlg(CWnd *pParent, FmiApplicationLayer &aCom)
Constructor.