structures.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 hasyear; // ignored and assumed true when hasseconds
  37. bool hasseconds;
  38. bool hasdate;
  39. bool utc;
  40. } date;
  41. CString linkTarget;
  42. } * direntry;
  43. t_server server;
  44. t_directory & operator=(const t_directory & a);
  45. };
  46. //---------------------------------------------------------------------------
  47. #endif // StructuresH