Indy 9
|
TIdMessageEncoderList = class(TObject)
The RegisterEncoder class method is used to register new encoder classes. RegisterEncoder is called in the initialization section of Units that contain an encoder class, like IdMessageCoder.pas, IdMessageCoderMIME.pas, IdMessageCoderUUE.pas, and IdMessageCoderXXE.pas.
The class method ByName is used to access an existing class instance in the container.
class function ByName(const AName: string): TIdMessageEncoderInfo;
ByName is used by TIdMessage and TIdMessageParts when updating the value of the AttachmentEncoding property.
constructor Create;
destructor Destroy; override;
class procedure RegisterEncoder(const AMessageEncoderName: string; AMessageEncoderInfo: TIdMessageEncoderInfo);
RegisterEncoder checks to insure that the list for registered encoder classed has be initialized to a valid TIdMessageEncoderList instance. RegisterEncoder adds the class information in AMessageEncoderInfo to the list, and associates the name in AName with the registered class type.
RegisterEncoder is called from the initialization section of the Unit that contains the class type, like IdMessageCoder.pas, IdMessageCoderMIME.pas, IdMessageCoderUUE.pas, and IdMessageCoderXXE.pas.