Indy 9 | Content | Index | Reference

TIdMessageEncoderInfoMIME
Hierarchy, Properties, Methods, See Also, Unit: IdMessageCoderMIME
Represents the registered encoder class and updates properties for an associated message.

    TIdMessageEncoderInfoMIME = class(TIdMessageEncoderInfo)

Unit
IdMessageCoderMIME
Description
TIdMessageEncoderInfoMIME is a TIdMessageEncoderInfo descendant that implements the extensions necessary to represent the registered encoder classes for MIME-encoded message parts. TIdMessageEncoderInfoMIME also provides a mechanism to update properties in an associated TIdMessage instance based on the content and type of the message part.

TIdMessageEncoderInfoMIME.Create
TIdMessageEncoderInfoMIME, See Also
Constructor for the object instance.

    constructor Create; override;

Description
Create is the Constructor for the object instance, and relies on the inherited Create method. Create also sets the MessageEncoderClass to an instance of TIdMessageEncoderMIME, to represent the class used to create new instances of the decoder from the TIdMessageEncoderList that represents registered encoder classes.

TIdMessageEncoderInfoMIME.InitializeHeaders
TIdMessageEncoderInfoMIME, See Also
Updates message properties from headers in the message part.

    procedure InitializeHeaders(AMsg: TIdMessage); override;

Parameters
AMsg: TIdMessage
Message associated with the encoder instance.
Description
InitializeHeaders is an overridden Procedure in TIdMessageEncoderInfoMIME that updates properties in an associated TIdMessage instance based on the contents of the message.

InitializeHeaders updates the TIdMessage.ContentType property to indicate the RFC message headers needed for the message specified in AMsg.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.