structures.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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,second;
  43. bool hastime;
  44. bool hasseconds;
  45. bool hasdate;
  46. bool utc;
  47. } date;
  48. CTime EntryTime;
  49. CString linkTarget;
  50. } *direntry;
  51. void Merge(const t_directory &directory, CTime MergeTime);
  52. t_server server;
  53. #ifndef MPEXT_NO_CACHE
  54. BOOL bCached;
  55. #endif
  56. t_directory& operator=(const t_directory &a);
  57. };
  58. #ifndef MPEXT
  59. //View headers
  60. class CComboCompletion;
  61. typedef struct
  62. { SIZE m_LabelTextSize;
  63. CComboCompletion *m_pEdit;
  64. CStatic *m_pLabelBackground;
  65. CStatic *m_pLabel;
  66. BOOL bTreeHidden;
  67. } t_LocalViewHeader;
  68. typedef struct
  69. { SIZE m_LabelTextSize;
  70. CComboCompletion *m_pEdit;
  71. CStatic *m_pLabelBackground;
  72. CStatic *m_pLabel;
  73. BOOL bTreeHidden;
  74. } t_RemoteViewHeader;
  75. #endif
  76. #endif // MPExtStructuresH