home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c11 / lab03 / baseline / ftpget.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.5 KB  |  65 lines

  1. // FtpGet.h : header file
  2. //
  3.  
  4. // these enumurations must match the radio button ordering 
  5. // within the dialog box.
  6. enum FileCopyType {
  7.         FC_NONE= 0x00,
  8.         FC_LEAFFILES= 0x01,
  9.         FC_ALL= 0x02,
  10. };
  11.  
  12. class CFtpConnection;
  13. class CFtpView;
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CFtpGet window
  16.  
  17. class CFtpGet : public CObject
  18. {
  19. // Construction
  20. public:
  21.     CFtpGet();
  22.     CFtpGet(CFtpView* pView, CString& Server, CString& FileTypes, CString& Path,    CString& LocalRoot, CString& Gateway, int CopyType);
  23.  
  24. // Attributes
  25. public:
  26. protected:
  27.     CFtpView* m_pView;
  28.     CString    m_strServer;
  29.     CString    m_strFileTypes;
  30.     CString    m_strPath;
  31.     CString    m_strLocalRoot;
  32.     CString    m_strGateway;
  33.     int        m_CopyType;
  34.  
  35.     CFtpConnection* m_ftp;
  36.     CStringArray m_arrStaticPath;
  37.     CStringArray m_arrDynamicPath;
  38.     DWORD m_TotalFileSize;
  39.  
  40.  
  41. // Operations
  42. public:
  43.     void DoFtpTransfer();
  44. protected:
  45.     BOOL CopyDirectory(int PathIndex);
  46.     BOOL GetLocalDirectory(int index, CString& FullDir);
  47.     BOOL SetFtpDirectory(int index);
  48.     void BuildPath(int index, CString& path, CString& sep);
  49.     void PathToArray(CString& path, CStringArray& strArray);
  50.     BOOL CreateLocalDirectory(CString& path, CString& FullDir);
  51.  
  52. // Overrides
  53.     // ClassWizard generated virtual function overrides
  54.     //{{AFX_VIRTUAL(CFtpGet)
  55.     //}}AFX_VIRTUAL
  56.  
  57. // Implementation
  58. public:
  59.     DWORD m_count;
  60.     virtual ~CFtpGet();
  61.  
  62. };
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65.