Garmin Fleet Management Controller  2.19.0
CMsgThrottlingDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CMsgThrottlingDlg.h
5 *
6 * Copyright 2008-2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CMsgThrottlingDlg_H
11 #define CMsgThrottlingDlg_H
12 
13 #include "fmi.h"
14 
16 #define NUM_THROTTLED_PROTOCOLS 11
17 
18 //----------------------------------------------------------------------
32 //----------------------------------------------------------------------
33 class CMsgThrottlingDlg : public CDialog, public CWndEventListener
34 {
35  DECLARE_DYNAMIC( CMsgThrottlingDlg )
36  DECLARE_MESSAGE_MAP()
37 
38 public:
40  (
41  CWnd * aParent,
42  FmiApplicationLayer & aCom
43  );
44  virtual ~CMsgThrottlingDlg();
45 
46 protected:
47  virtual void DoDataExchange
48  (
49  CDataExchange* aDataExchange
50  );
51 
52  BOOL OnInitDialog();
53  afx_msg void OnBnClickedBack();
54  afx_msg void OnBnClickedUpdate();
55  afx_msg void OnBnClickedCheckAll();
56 #if( FMI_SUPPORT_A605 )
57  afx_msg LRESULT OnThrottleQueryResponse
58  (
59  WPARAM aResponseCount,
60  LPARAM aResponseList
61  );
62 #endif
63 
64 protected:
67 
72 
77 
82 
85 
88 
91 
94 
97 
99  BOOL mEta;
100 
103 
106 
109 
111  BOOL mPing;
112 
115 
118 };
119 
120 #endif
BOOL * mProtocolStateLookup[NUM_THROTTLED_PROTOCOLS]
Pointers to BOOLs indicating the requested throttle state.
uint16 mPacketIdLookup[NUM_THROTTLED_PROTOCOLS]
Lookup table from array indexes to protocol (packet) IDs.
CMsgThrottlingDlg(CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
BOOL mSelectAll
If TRUE, the Select All check box is selected.
BOOL mWaypointDeleted
If TRUE, the Waypoint Deleted check box is selected.
BOOL mRefreshCannedResponseList
If TRUE, the Refresh Canned Response List check box is selected.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
Modal dialog allowing the user to throttle (disable) or un-throttle (enable) certain client-initiated...
virtual ~CMsgThrottlingDlg()
Destructor.
BOOL mOriginalValues[NUM_THROTTLED_PROTOCOLS]
The current throttle state on the client.
BOOL mPing
If TRUE, the Client to Server Ping check box is selected.
BOOL mStopStatus
If TRUE, the Stop Status check box is selected.
BOOL mMessageStatus
If TRUE, the Message Status check box is selected.
BOOL mRefreshCannedMessageList
If TRUE, the Refresh Canned Message List check box is selected.
afx_msg void OnBnClickedUpdate()
Click handler for the Update button.
afx_msg void OnBnClickedBack()
Click handler for the Back button; closes the dialog.
BOOL mDriverStatusList
If TRUE, the Driver Status List Refresh check box is selected.
Serial communication controller for Garmin and FMI packets.
BOOL mDriverIdUpdate
If TRUE, the Driver ID Update check box is selected.
EventListener that dispatches a Windows message.
BOOL mDriverStatusUpdate
If TRUE, the Driver Status Update check box is selected.
afx_msg LRESULT OnThrottleQueryResponse(WPARAM aResponseCount, LPARAM aResponseList)
Event handler that processes a throttling query response event.
unsigned short int uint16
16-bit unsigned integer
Definition: garmin_types.h:64
BOOL OnInitDialog()
Initialize the dialog.
#define NUM_THROTTLED_PROTOCOLS
Number of throttled protocols that are supported.
BOOL mEta
If TRUE, the ETA check box is selected.
afx_msg void OnBnClickedCheckAll()
Click handler for the Select All check box.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
BOOL mClientToServerTextMessage
If TRUE, the Client to Server Text Message check box is selected.