structures.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 ownergroup;
  35. __int64 size;
  36. bool dir;
  37. bool bLink;
  38. class t_date
  39. {
  40. public:
  41. t_date();
  42. int year,month,day,hour,minute;
  43. bool hastime;
  44. bool hasdate;
  45. } date;
  46. CTime EntryTime;
  47. CString linkTarget;
  48. } *direntry;
  49. void Merge(const t_directory &directory, CTime MergeTime);
  50. t_server server;
  51. #ifndef MPEXT_NO_CACHE
  52. BOOL bCached;
  53. #endif
  54. t_directory& operator=(const t_directory &a);
  55. };
  56. #ifndef MPEXT
  57. //View headers
  58. class CComboCompletion;
  59. typedef struct
  60. { SIZE m_LabelTextSize;
  61. CComboCompletion *m_pEdit;
  62. CStatic *m_pLabelBackground;
  63. CStatic *m_pLabel;
  64. BOOL bTreeHidden;
  65. } t_LocalViewHeader;
  66. typedef struct
  67. { SIZE m_LabelTextSize;
  68. CComboCompletion *m_pEdit;
  69. CStatic *m_pLabelBackground;
  70. CStatic *m_pLabel;
  71. BOOL bTreeHidden;
  72. } t_RemoteViewHeader;
  73. #endif
  74. #endif // MPExtStructuresH