Indy 9
|
TIdMessageDecoderInfo = class(TObject)
All methods in TIdMessageDecoderInfo are virtual. Descendant classes, like TIdMessageDecoderInfoMIME and TIdMessageDecoderInfoUUE, should implement the constructor and pertinent methods to provide support for specific encoding algorithms.
Instances of TIdMessageDecoderInfo and descendant classes are stored in a global TIdMessageDecoderList variable to indicate that the decoder class is registered and available for use with message parts.
function CheckForStart(ASender: TIdMessage; ALine: string): TIdMessageDecoder; virtual; abstract;
ASender is the TIdMessage to be associated with the decoder class instance.
ALine is a line from the message part that will be examined to determine if the registered decoder can be used for decoding the message part.
Descendant classes, like TIdMessageDecoderInfoMIME and TIdMessageDecoderInfoUUE, must implement comparisons to determine if ALine contains a marker signifying the start of a block using the specific encoding algorithm. If ALine contains the appropriate signature, a message decoder instance is created for ASender in the function return value. Otherwise the function return value is Nil.
constructor Create; virtual;