FzApiStructures.h 1.6 KB

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