Ulogger::CPlugin Class Reference

#include <uloggerplugin.h>

Link against: uloggerpluginframework.lib

class Ulogger::CPlugin : public CBase

Base class for all ULogger plug-ins.

Inherits from

  • Ulogger::CPlugin

    Detailed Description

    ULogger is extensible through a plug-in framework that uses ECom for plug-in discovery. Deriving from this class means that all the ECom-specific logic is already provided for the plug-in implementer, out-of-the-box, leaving the plug-in code to deal with the domain-specific logic that the plug-in is supposed to implement only.

    Among the plug-in types that are currently supported are output plug-ins (see class ULogger::MOutputPlugin in uloggeroutputplugin.h) and input plug-ins (see class ULogger::MInputPlugin in uloggerinputplugin.h).

    Plug-ins must derive from this class in order to be compatible with ULogger.

    Member Enumeration Documentation

    Enum TPluginInterface

    Enum to signify plug-in interface types. Used by each specific plug-in interface (M-class) to identify itself as being of a particular type.

    EnumeratorValueDescription
    EOutputoutput plug-in interface type
    EInputinput plug-in interface type

    Constructor & Destructor Documentation

    ~CPlugin ( )

    ~CPlugin()[inline, virtual]

    Virtual destructor.

    Member Function Documentation

    GetInterfaceL ( TPluginInterface )

    TAny *GetInterfaceL(TPluginInterfaceaInterfaceId)[pure virtual]

    Return pointer to requested interface. If plug-in implements multiple interfaces, it should return pointer to proper interface trough this method.

    ParameterDescription
    aInterfaceIdNumber of requested interface.

    Returns: Pointer to requested interface or NULL if requested interface is not supported.

    NewL ( const TDesC8 & )

    CPlugin *NewL(const TDesC8 &aCue)[static, inline]

    Creates a CPlugin instance of the specified type and returns a pointer to it. The type is specified as the name of the ECom plug-in DLL (without the dll extension).

    ParameterDescription
    aCuea descriptor containing the name of the plug-in to be created

    Returns: A pointer to the newly created CPlugin object.