Garmin Fleet Management Controller  2.19.0
CSpeedLimitAlertsDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CSpeedLimitAlertsDlg.h
5 *
6 * Copyright 2011 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CSpeedLimitAlertsDlg_H
11 #define CSpeedLimitAlertsDlg_H
12 
13 #include "CWndEventListener.h"
14 #include "FmiApplicationLayer.h"
15 
16 //----------------------------------------------------------------------
20 //----------------------------------------------------------------------
21 class CSpeedLimitAlertsDlg : public CDialog, public CWndEventListener
22 {
23  DECLARE_DYNAMIC( CSpeedLimitAlertsDlg )
24  DECLARE_MESSAGE_MAP()
25 
26 public:
28  (
29  CWnd * aParent,
30  FmiApplicationLayer & aCom
31  );
32 
33  virtual ~CSpeedLimitAlertsDlg();
34 
35 private:
36  virtual void DoDataExchange
37  (
38  CDataExchange * aDataExchange
39  );
40 
41  void EnableFields
42  (
43  bool aValue
44  );
45 
46  afx_msg void OnBnClickedSend();
47 
48  afx_msg void OnCbnSelchangeSpeedLimitCboMode();
49 
51  (
52  WPARAM aResultCode,
53  LPARAM
54  );
55 
56  BOOL OnInitDialog();
57 
58  void SetResult
59  (
60  uint8 aResultCode
61  );
62 
65 
68 
71 
74 
76  boolean mAlertUser;
77 
79  float mThreshold;
80 };
81 
82 #endif
uint8 mTimeOver
Value of the time over edit box.
uint8 mMode
Selection of the mode combo box.
void EnableFields(bool aValue)
Enable/Disable dialog fields.
void SetResult(uint8 aResultCode)
Set REsult text on the dialog.
boolean mAlertUser
Selection value of the alert user combo box.
float mThreshold
Value of the threshold edit box.
afx_msg void OnCbnSelchangeSpeedLimitCboMode()
Selection changed handler for the Mode combo box.
Dialog allowing the user to change speed limit alerts settings.
CSpeedLimitAlertsDlg(CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
virtual ~CSpeedLimitAlertsDlg()
Destructor.
afx_msg void OnBnClickedSend()
Click handler for the Send button.
afx_msg LRESULT OnEventSpeedLimitSetResultFromClient(WPARAM aResultCode, LPARAM)
Handler for the receipt event from Com.
Serial communication controller for Garmin and FMI packets.
FmiApplicationLayer & mCom
Reference to the FMI communication controller that this dialog uses.
EventListener that dispatches a Windows message.
BOOL OnInitDialog()
Initialize the dialog.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
unsigned char uint8
8-bit unsigned integer
Definition: garmin_types.h:62
uint8 mTimeUnder
Value of the time under edit box.