FzApiStructures.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. #endif
  38. bool operator<(const t_server &op) const; //Needed by STL map
  39. };
  40. const bool operator == (const t_server &a,const t_server &b);
  41. const bool operator != (const t_server &a,const t_server &b);
  42. #include "ServerPath.h"
  43. typedef struct
  44. {
  45. CString localfile;
  46. CString remotefile;
  47. CServerPath remotepath;
  48. BOOL get;
  49. __int64 size;
  50. t_server server;
  51. int nType;
  52. int nUserData;
  53. } t_transferfile;
  54. #endif