Garmin Fleet Management Controller  2.19.0
CFileTransferDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CFileTransferDlg.h
5 *
6 * Copyright 2008-2011 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CFileTransferDlg_H
11 #define CFileTransferDlg_H
12 
13 #include "FmiApplicationLayer.h"
14 
15 //----------------------------------------------------------------------
19 //----------------------------------------------------------------------
20 class CFileTransferDlg : public CDialog
21 {
22  DECLARE_DYNAMIC( CFileTransferDlg )
23  DECLARE_MESSAGE_MAP()
24 
25 public:
27  (
28  CWnd * aParent,
29  FmiApplicationLayer & aCom
30  );
31  virtual ~CFileTransferDlg();
32 
34  typedef struct
35  {
37  CString text;
38  CString extension;
39  CString filter;
40  } file_type;
41 
42 private:
43  virtual void DoDataExchange
44  (
45  CDataExchange* aDataExchange
46  );
47 
48  BOOL OnInitDialog();
49  afx_msg void OnEnChangeFile();
50  afx_msg void OnBnClickedFind();
51  afx_msg void OnBnClickedOk();
52 #if( FMI_SUPPORT_A614 )
53  void AddPSRtoStopList( char* file, uint32& itemId );
54 
56 #endif
57 
60 
63  CString mFilePath;
64 
66  int mFileType;
67 
70 
72  CString mVersion;
73 };
74 
75 #endif
CFileTransferDlg(CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
afx_msg void OnEnChangeFile()
Edit Change handler for all text boxes.
Defines file type for a supported file type.
afx_msg void OnBnClickedFind()
Click handler for Find (file to send) button.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
CString mVersion
File string specified by the user.
CString mFilePath
Path and file name of the file to transfer, as specified by the user.
Data structure to hold details of an A603 stop that the server needs to keep.
Definition: StopListItem.h:21
StopListItem mOldListItem
Serial communication controller for Garmin and FMI packets.
int mFileTypeIndex
Index into the file_types array.
BOOL OnInitDialog()
Initialize the dialog.
Modal dialog allowing the user to select a file to transfer to the client.
unsigned char uint8
8-bit unsigned integer
Definition: garmin_types.h:62
virtual ~CFileTransferDlg()
Destructor.
unsigned long int uint32
32-bit unsigned integer
Definition: garmin_types.h:66
void AddPSRtoStopList(char *file, uint32 &itemId)
Adds the transferred PSR to the stop list.
afx_msg void OnBnClickedOk()
Click handler for OK button.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
int mFileType
File type to be transferred, as specified by the user.