{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserved. } { $Log$ } { Rev 1.0 11/29/2004 2:44:16 AM JPMugaas New FTP list parsers for some legacy FTP servers. } unit IdFTPListParseChameleonNewt; interface {$i IdCompilerDefines.inc} uses Classes, IdFTPList, IdFTPListParseBase,IdFTPListTypes; type TIdChameleonNewtFTPListItem = class(TIdDOSBaseFTPListItem); TIdFTPLPChameleonNewt = class(TIdFTPLPBaseDOS) protected class function MakeNewItem(AOwner : TIdFTPListItems) : TIdFTPListItem; override; class function ParseLine(const AItem : TIdFTPListItem; const APath : String = ''): Boolean; override; public class function GetIdent : String; override; class function CheckListing(AListing : TStrings; const ASysDescript : String = ''; const ADetails : Boolean = True): Boolean; override; end; // RLebeau 2/14/09: this forces C++Builder to link to this unit so // RegisterFTPListParser can be called correctly at program startup... {$IFDEF HAS_DIRECTIVE_HPPEMIT_LINKUNIT} {$HPPEMIT LINKUNIT} {$ELSE} {$HPPEMIT '#pragma link "IdFTPListParseChameleonNewt"'} {$ENDIF} implementation uses IdFTPCommon, IdGlobal, IdGlobalProtocols, SysUtils; { TIdFTPLPChameleonNewt } class function TIdFTPLPChameleonNewt.CheckListing(AListing: TStrings; const ASysDescript: String; const ADetails: Boolean): Boolean; {Look for something like this: .