home *** CD-ROM | disk | FTP | other *** search
- // FtpGet.h : header file
- //
-
- // these enumurations must match the radio button ordering
- // within the dialog box.
- enum FileCopyType {
- FC_NONE= 0x00,
- FC_LEAFFILES= 0x01,
- FC_ALL= 0x02,
- };
-
- class CFtpConnection;
- class CFtpView;
- /////////////////////////////////////////////////////////////////////////////
- // CFtpGet window
-
- class CFtpGet : public CObject
- {
- // Construction
- public:
- CFtpGet();
- CFtpGet(CFtpView* pView, CString& Server, CString& FileTypes, CString& Path, CString& LocalRoot, CString& Gateway, int CopyType);
-
- // Attributes
- public:
- protected:
- CFtpView* m_pView;
- CString m_strServer;
- CString m_strFileTypes;
- CString m_strPath;
- CString m_strLocalRoot;
- CString m_strGateway;
- int m_CopyType;
-
- CFtpConnection* m_ftp;
- CStringArray m_arrStaticPath;
- CStringArray m_arrDynamicPath;
- DWORD m_TotalFileSize;
-
-
- // Operations
- public:
- void DoFtpTransfer();
- protected:
- BOOL CopyDirectory(int PathIndex);
- BOOL GetLocalDirectory(int index, CString& FullDir);
- BOOL SetFtpDirectory(int index);
- void BuildPath(int index, CString& path, CString& sep);
- void PathToArray(CString& path, CStringArray& strArray);
- BOOL CreateLocalDirectory(CString& path, CString& FullDir);
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CFtpGet)
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- DWORD m_count;
- virtual ~CFtpGet();
-
- };
-
- /////////////////////////////////////////////////////////////////////////////
-