generate_subtype


Description:

public static Type generate_subtype (string protocol, Type settings_type)

Generates a custom SourceCamel subtype for protocol.

Instances of the new subtype will contain a Settings instance of type settings_type.

This function is called as part of register_types and should not be called explicitly, except by some groupware packages that need to share package-specific settings across their mail, calendar and address book components. In that case the groupware package may choose to subclass Settings rather than SourceExtension since libcamel is the lowest common denominator across all components. This function provides a way for the calendar and address book components of such a package to generate an SourceCamel subtype for its Settings subtype without having to load all available Provider modules.

Parameters:

protocol

a Provider protocol

settings_type

a subtype of Settings

Returns:

the Type of the generated SourceCamel subtype