29 CFileTransferProgressDlg::CFileTransferProgressDlg
36 , mTransferStatus( _T("") )
38 mStopButtonClicked =
FALSE;
54 CDataExchange * aDataExchange
57 CDialog::DoDataExchange( aDataExchange );
70 CDialog::OnInitDialog();
90 GetDlgItem( IDOK )->EnableWindow(
TRUE );
94 GetDlgItem( IDOK )->EnableWindow(
FALSE );
98 GetDlgItem( IDOK )->EnableWindow(
FALSE );
103 GetDlgItem( IDOK )->EnableWindow(
TRUE );
113 GetDlgItem( IDOK )->ShowWindow( SW_HIDE );
114 GetDlgItem( IDCANCEL )->ShowWindow( SW_SHOW );
137 _T(
"Sent %u/%u bytes"),
#define IDC_FILE_PROGRESS_BTN_STOP
Modal dialog displaying the status of the file transfer.
uint32 mFileTransferBytesDone
Number of bytes of the file that have been transferred so far.
uint32 mFileTransferSize
Total number of bytes in the file being transferred.
CProgressCtrl mProgressBar
The progress bar.
#define IDC_FILE_PROGRESS_TXT_STATUS
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.
#define IDC_FILE_PROGRESS_PROGRESS_BAR
transfer_state mFileTransferState
State of the current file transfer (in progress, completed, etc.)
#define IDD_FILE_TRANSFER_PROGRESS
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.
#define WM_EVENT(_event)
Translation from an application event to the corresponding Windows message.
void stopFileTransfer()
Stop a file transfer protocol.
afx_msg LRESULT OnFileTransferStateChange(WPARAM, LPARAM)
Handle a File Transfer State Change event.