structures.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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; // deprecated, to be replaced with owner/group
  25. CString owner;
  26. CString group;
  27. __int64 size;
  28. bool dir;
  29. bool bLink;
  30. class t_date
  31. {
  32. public:
  33. t_date();
  34. int year,month,day,hour,minute,second;
  35. bool hastime;
  36. bool hasseconds;
  37. bool hasdate;
  38. bool utc;
  39. } date;
  40. CString linkTarget;
  41. } * direntry;
  42. t_server server;
  43. t_directory & operator=(const t_directory & a);
  44. };
  45. //---------------------------------------------------------------------------
  46. #endif // StructuresH