FtpPublic.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:1k
源码类别:

网格计算

开发平台:

Visual C++

  1. // FtpPublic.h : Definition of trfAgent Ftp Data Structure.
  2. #ifndef _FTPPUBLIC_H
  3. #define _FTPPUBLIC_H
  4. class CFtpSite
  5. {
  6. public:
  7. CFtpSite();
  8. virtual ~CFtpSite(){};
  9. public:
  10. BOOL m_bPASVMode; //PASV-Mode flag.
  11. BOOL m_bAnonymous; //Anonymous-Mode flag.
  12. int m_nPort; //ftp port number.
  13. CString m_sProfile; //profile name
  14. CString m_sHost; //ftp server host name.
  15. CString m_sUser; //user name.
  16. CString m_sPassword; //user password.
  17. CString m_sDowntoDir; //downloading dest dir.
  18. CString m_sDescription; //profile's description.
  19. };
  20. inline CFtpSite::CFtpSite()
  21. {
  22. this->m_bPASVMode = FALSE;
  23. this->m_bAnonymous = TRUE;
  24. this->m_nPort = 21;
  25. this->m_sProfile = "";
  26. this->m_sHost = "";
  27. this->m_sUser = "anonymous";
  28. this->m_sPassword = "mail@mail";
  29. this->m_sDowntoDir = "C:\Downloads";
  30. this->m_sDescription= "FTP Site Desc";
  31. }
  32. //get all ftp profile names list.
  33. extern BOOL GetAllFtpProfileNames(CStringList &oProfileNamesList);
  34. //get the ftp setting from profile name.
  35. extern BOOL GetFtpSiteInfo(LPCSTR szProfileName, CFtpSite &oFtpSite);
  36. //add one ftp site setting into the registry.
  37. extern BOOL AddFtpSiteInfo(CFtpSite &oFtpSite);
  38. //delete one existing ftp site setting from the registry.
  39. extern BOOL RemoveFtpSiteInfo(LPCSTR szProfileName);
  40. #endif //!_FTPPUBLIC_H