home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 September / Chip_2001-09_cd1.bin / zkuste / delphi / nastroje / d5 / MFTP.ZIP / src / mftp.Inc < prev    next >
Text File  |  2001-03-17  |  4KB  |  109 lines

  1. {
  2.   Header file of Monster FTP
  3.  
  4.   Please backup this file and read the comment carefully before
  5.   you make any changes of this file.
  6. }
  7.  
  8. {-$define COMPATIBLE}         // If you got any trouble in upgrading old
  9.                               // version, enable this
  10.  
  11. {-$define NODEBUG}            // Disable debug support
  12.  
  13. {-$define DISPLAY_REAL_SIZE}  // Display real size in bytes instead of
  14.                               // approximate size in kilobytes in
  15.                               // TMFtpListView
  16.  
  17. {-$define EXPORT_IMAGES}      // Define this if you want to make something
  18.                               // different
  19.  
  20. {-$define INCOMPLETE}         // Enable/Disable incompleted code
  21.  
  22. {$define OPTIMIZATION}        // Use optimized routines instead of ones
  23.                               // in sysutils.pas
  24.  
  25. {-$define OVERLAY_MASK}       // Display symbol-link as a shortcut in Explorer in
  26.                               // TMFtpListView and TMFtpTreeView
  27.  
  28. {-$define NOPATCH}            // No patch/fixes for those ftp servers which
  29.                               // disobey RFC documents
  30.  
  31. {-$define USE_RETRYING_TIMER} // Use TTimer instead of repeat/until during
  32.                               // the waiting time of two trying
  33.  
  34. {$define VIRTUAL_LISTVIEW}    // Make TMFtpListView virtual
  35.         
  36. {$define WINSOCK2}            // Determine weather use Winsock 2
  37.  
  38. {$define Y2K_DATE}           // Display 4-digital year in TMFtpListView
  39.  
  40. {$ifdef VIRTUAL_LISTVIEW}
  41.    {$define DISPLAY_PARENT_DIRECTORY}
  42. {$endif}
  43.  
  44. {$IFDEF VER120}               // Delphi 4
  45.    {$define COMPILER_OK}
  46. {$endif}
  47.  
  48. {$ifdef VER125}               // C++ Builder 4
  49.    {$define COMPILER_OK}
  50. {$endif}
  51.  
  52. {$IFDEF VER130}               // Delphi 5
  53.    {$define COMPILER_OK}
  54.    {$define DELPHI5}
  55. {$endif}
  56.  
  57. {$ifdef VER135}               // C++ Builder 5
  58.    {$define COMPILER_OK}
  59.    {$define DELPHI5}
  60. {$endif}
  61.  
  62. const
  63.    IN_BUFFER_SIZE  = 4096;   // Change the size of there two buffers
  64.    OUT_BUFFER_SIZE = 1514;   // will take effect of the speed of
  65.                              // downloading/uploading file
  66.  
  67.    EVENT_COUNT = 16;         // Just a counter
  68.    MAX_HANDLERS = 4;         // Normally, you should not change this value
  69.                              // if Register... always returns TRUE
  70.  
  71.    MAX_PRELOAD_LEVEL = 2;    // Specifies the levels of directories should be
  72.                              // loaded from cache when one directory is
  73.                              // selected. The value can be any unsigned
  74.                              // integer number except zero
  75.  
  76. {$ifndef Y2KDATE}
  77. const
  78.    DefaultDateTime = '1/1/80 12:00';
  79. {$else}
  80. const
  81.    DefaultDateTime = '1/1/1980 12:00';
  82. {$endif}
  83.  
  84. // Localization
  85.  
  86. {$define ENGLISH}    // you can choose your own language here
  87.                          
  88. {$ifdef ENGLISH}     {$I English.Msg}               {$endif}    // English
  89. {$ifdef FRENCH}      {$I Localization\French.Msg}   {$endif}    // French <Kostya>
  90. {$ifdef GERMAN}      {$I Localization\German.Msg}   {$endif}    // German <Dennis Gurock>
  91. {$ifdef ITALIAN}     {$I Localization\Italian.Msg}  {$endif}    // Italian <Martin Masci>
  92. {$ifdef POLISH}      {$I Localization\Polish.Msg}   {$endif}    // Polish <Tomasz Waraksa>
  93. {$ifdef PORTUGUESE}  {$I Localization\Portbz.Msg}   {$endif}    // Portuguese <Antonio Carlos Ribeiro Faria>
  94. {$ifdef PORTUGUESE2} {$I Localization\Portbz-2.Msg} {$endif}    // Portuguese <Cesar>
  95. {$ifdef CHINESE}     {$I Localization\Chinese.Msg}  {$endif}    // Simplified Chinese
  96. {$ifdef SPANISH}     {$I Localization\Spanish.Msg}  {$endif}    // Spanish <Jorge Rojas Mata>
  97. {$ifdef SWEDISH}     {$I Localization\SWEDISH.Msg}  {$endif}    // Swedish <Jesper Winer>
  98.  
  99. {$ifndef COMPILER_OK}
  100.    READ_FOLLOWING_LINES      // this line stops compiler
  101.  
  102.    {
  103.       Sorry, this version of MFTP requires
  104.       Delphi/C++ Builder 5 or later version.
  105.    }
  106.  
  107.    const Error_Here = 'Error here!';
  108. {$endif}
  109.