structures.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. #ifndef MPExtStructuresH
  15. #define MPExtStructuresH
  16. #pragma once
  17. class CServerPath;
  18. #include "FileZillaApi.h"
  19. class t_directory
  20. {
  21. public:
  22. t_directory();
  23. ~t_directory();
  24. CServerPath path;
  25. int num;
  26. class t_direntry
  27. {
  28. public:
  29. t_direntry();
  30. bool bUnsure; //Set by CControlSocket::FileTransfer when uploads fail after sending STOR/APPE
  31. CString name;
  32. CString lName; //Name in lowercase characters
  33. CString permissionstr;
  34. CString humanpermstr; // RFC format
  35. CString ownergroup;
  36. __int64 size;
  37. bool dir;
  38. bool bLink;
  39. class t_date
  40. {
  41. public:
  42. t_date();
  43. int year,month,day,hour,minute,second;
  44. bool hastime;
  45. bool hasseconds;
  46. bool hasdate;
  47. bool utc;
  48. } date;
  49. CTime EntryTime;
  50. CString linkTarget;
  51. } *direntry;
  52. void Merge(const t_directory &directory, CTime MergeTime);
  53. t_server server;
  54. #ifndef MPEXT_NO_CACHE
  55. BOOL bCached;
  56. #endif
  57. t_directory& operator=(const t_directory &a);
  58. };
  59. #ifndef MPEXT
  60. //View headers
  61. class CComboCompletion;
  62. typedef struct
  63. { SIZE m_LabelTextSize;
  64. CComboCompletion *m_pEdit;
  65. CStatic *m_pLabelBackground;
  66. CStatic *m_pLabel;
  67. BOOL bTreeHidden;
  68. } t_LocalViewHeader;
  69. typedef struct
  70. { SIZE m_LabelTextSize;
  71. CComboCompletion *m_pEdit;
  72. CStatic *m_pLabelBackground;
  73. CStatic *m_pLabel;
  74. BOOL bTreeHidden;
  75. } t_RemoteViewHeader;
  76. #endif
  77. #endif // MPExtStructuresH