Internet Direct (Indy) Version 9.0.1 Beta
TIdMessageDecoderList.RegisterDecoder
Adds a decoder class to the list of registered decoder classes.

class procedure RegisterDecoder(const AMessageCoderName: string; AMessageCoderInfo: TIdMessageDecoderInfo);
Parameters
const AMessageCoderName: string
Name to used for identification of the registered decoder class.

AMessageCoderInfo: TIdMessageDecoderInfo
Decoder class information to be registered.

Description
RegisterDecoder is a class procedure in TIdMessageDecoderList that adds information about decoder classes for RFC message parts to the list of registered decoder classes.

RegisterDecoder checks to make sure that the list for registered decoder classes has been initalized to an instance of TIdMessageDecoderList. RegisterDecoder then adds the decoder information in AMessageCoderInfo to the list with the name specified in AMessageCoderName.

RegisterDecoder is called in the initialization section of the unit that contains the decoder class, like IdMessageCoderMIME.pas, IdMessageCoderUUE.pas, and IdMessageCoderXXE.pas.