Internet Direct (Indy)
Home
PreviousUpNext
TIdMessageEncoderList.RegisterEncoder Method

Registers and stores information about encoder class types.

Pascal
class procedure RegisterEncoder(
    const AMessageEncoderName: string; 
    AMessageEncoderInfo: TIdMessageEncoderInfo
);
Parameters 
Description 
AMessageEncoderName 
Name to be associated with the registered encoder class.
 
AMessageEncoderInfo 
Information about the registered encoder class. 

RegisterEncoder is a class procedure in TIdMessageEncoderList that provides a mechanism for registering and storing information about encoder class types. 

RegisterEncoder checks to ensure 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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.