FzApiStructures.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // FileZilla - a Windows ftp client
  2. // Copyright (C) 2002-2004 - Tim Kosse <[email protected]>
  3. // This program is free software; you can redistribute it and/or
  4. // modify it under the terms of the GNU General Public License
  5. // as published by the Free Software Foundation; either version 2
  6. // of the License, or (at your option) any later version.
  7. // This program is distributed in the hope that it will be useful,
  8. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. // GNU General Public License for more details.
  11. // You should have received a copy of the GNU General Public License
  12. // along with this program; if not, write to the Free Software
  13. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. #if !defined(FZAPISTRUCTURES__INCLUDED)
  15. #define FZAPISTRUCTURES__INCLUDED
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. class t_server
  20. {
  21. public:
  22. t_server();
  23. ~t_server();
  24. CString host;
  25. int port;
  26. CString user, pass, account;
  27. BOOL fwbypass;
  28. CString path;
  29. BOOL bDontRememberPass;
  30. int nServerType;
  31. CString name; //Name of server, used in SiteManager
  32. int nPasv;
  33. int nTimeZoneOffset;
  34. int nUTF8;
  35. #ifdef MPEXT
  36. int iForcePasvIp;
  37. int iUseMlsd;
  38. #endif
  39. bool operator<(const t_server &op) const; //Needed by STL map
  40. };
  41. const bool operator == (const t_server &a,const t_server &b);
  42. const bool operator != (const t_server &a,const t_server &b);
  43. #include "ServerPath.h"
  44. typedef struct
  45. {
  46. CString localfile;
  47. CString remotefile;
  48. CServerPath remotepath;
  49. BOOL get;
  50. __int64 size;
  51. t_server server;
  52. int nType;
  53. int nUserData;
  54. } t_transferfile;
  55. #endif