Garmin Fleet Management Controller  2.19.0
CFileTransferProgressDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CFileTransferProgressDlg.h
5 *
6 * Copyright 2008-2011 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CFileTransferProgressDlg_H
11 #define CFileTransferProgressDlg_H
12 
13 #include "CWndEventListener.h"
14 #include "FmiApplicationLayer.h"
15 
16 //----------------------------------------------------------------------
26 //----------------------------------------------------------------------
27 class CFileTransferProgressDlg : public CDialog, public CWndEventListener
28 {
29  DECLARE_DYNAMIC( CFileTransferProgressDlg )
30  DECLARE_MESSAGE_MAP()
31 
32 public:
34  (
35  CWnd * aParent,
36  FmiApplicationLayer & aCom
37  );
38 
39  virtual ~CFileTransferProgressDlg();
40 
41 protected:
42  virtual void DoDataExchange
43  (
44  CDataExchange* aDataExchange
45  );
46 
47  BOOL OnInitDialog();
48  afx_msg void OnBnClickedStop();
49  afx_msg LRESULT OnFileTransferStateChange( WPARAM, LPARAM );
50  afx_msg LRESULT OnFileTransferProgress( WPARAM, LPARAM );
51 
54 
59  CString mTransferStatus;
60 
62  CProgressCtrl mProgressBar;
63 
66 
67 };
68 
69 #endif
Modal dialog displaying the status of the file transfer.
CProgressCtrl mProgressBar
The progress bar.
CFileTransferProgressDlg(CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
Serial communication controller for Garmin and FMI packets.
afx_msg LRESULT OnFileTransferProgress(WPARAM, LPARAM)
Handler for File Transfer Progress event.
CString mTransferStatus
Current status of the transfer, as a string.
EventListener that dispatches a Windows message.
BOOL mStopButtonClicked
If TRUE, the Stop button was clicked.
afx_msg void OnBnClickedStop()
Click handler for the Stop button.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
virtual ~CFileTransferProgressDlg()
Destructor.
BOOL OnInitDialog()
Initialize the dialog.
afx_msg LRESULT OnFileTransferStateChange(WPARAM, LPARAM)
Handle a File Transfer State Change event.