CContextPlugin Class Reference

class CContextPlugin : public CBase

This class implements the context plugin interface.

Inherits from

Constructor & Destructor Documentation

~CContextPlugin()

IMPORT_C~CContextPlugin()[virtual]

Destroys the implementation. This is virtual method and this class is not intended for derivation, so not exported.

Member Functions Documentation

ContextSnapshot(MContextPluginObserver &, CHarvesterData &)

voidContextSnapshot(MContextPluginObserver &aObserver,
CHarvesterData &aHD
)[pure virtual]

This pure virtual method takes the context snapshot for one metadata object and writes the information to the object received as parameter. The observer will be informed about the status of the operation.

Parameters

MContextPluginObserver & aObserverAn interface class to inform about finishing context snapshot.
CHarvesterData & aHD

ContextSnapshot(MContextPluginObserver &, RPointerArray< CHarvesterData > &)

voidContextSnapshot(MContextPluginObserver &aObserver,
RPointerArray< CHarvesterData > &aHDArray
)[pure virtual]

This pure virtual method takes the context snapshot for several metadata object and writes the information to the all the objects received as parameter. The observer will be informed about the status of the operation.

Parameters

MContextPluginObserver & aObserverAn interface class to inform about finishing context snapshot.
RPointerArray< CHarvesterData > & aHDArray

Init(MContextPluginObserver &)

voidInit(MContextPluginObserver &aObserver)[pure virtual]

A pure virtual interface method to initialize the plug-in.

Parameters

MContextPluginObserver & aObserverAn interface class to inform about initialization completion.

ListImplementationsL(RImplInfoPtrArray &)

IMPORT_C voidListImplementationsL(RImplInfoPtrArray &aImplInfoArray)[static]

Lists all available implementations which implement this interface.

Parameters

RImplInfoPtrArray & aImplInfoArrayA list of existing implementations of the interface.

NewL(const TUid &)

IMPORT_C CContextPlugin *NewL(const TUid &aUid)[static]

Creates an implementation of a desired implementation defined by the parameter.

Parameters

const TUid & aUid

SetMdeSession(CMdESession &)

voidSetMdeSession(CMdESession &aSession)[pure virtual]

Set a pointer to MdESession. Session is used to store harvested context data.

Parameters

CMdESession & aSessionSession pointer to set.

Member Data Documentation

TUid iDtor_ID_Key

TUid iDtor_ID_Key[private]

Instance identifier key. When instance of an implementation is created by ECOM framework, the framework will assign UID for it. The UID is used in destructor to notify framework that this instance is being destroyed and resources can be released.