structures.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //---------------------------------------------------------------------------
  2. #ifndef StructuresH
  3. #define StructuresH
  4. //---------------------------------------------------------------------------
  5. class CServerPath;
  6. //---------------------------------------------------------------------------
  7. #include "FileZillaApi.h"
  8. //---------------------------------------------------------------------------
  9. class t_directory
  10. {
  11. public:
  12. t_directory();
  13. ~t_directory();
  14. CServerPath path;
  15. int num;
  16. class t_direntry
  17. {
  18. public:
  19. t_direntry();
  20. bool bUnsure; // Set by CFtpControlSocket::FileTransfer when uploads fail after sending STOR/APPE
  21. CString name;
  22. CString permissionstr;
  23. CString humanpermstr; // RFC format
  24. CString ownergroup;
  25. __int64 size;
  26. bool dir;
  27. bool bLink;
  28. class t_date
  29. {
  30. public:
  31. t_date();
  32. int year,month,day,hour,minute,second;
  33. bool hastime;
  34. bool hasseconds;
  35. bool hasdate;
  36. bool utc;
  37. } date;
  38. CString linkTarget;
  39. } * direntry;
  40. t_server server;
  41. t_directory & operator=(const t_directory & a);
  42. };
  43. //---------------------------------------------------------------------------
  44. #endif // StructuresH