MPbkExtensionFactory Class Reference

class MPbkExtensionFactory

Abstract interface for creating phone book extensions. Instance of this factory should be kept as long as extensions are used, if resources are needed.

Public Member Functions
~MPbkExtensionFactory ()
void AddPbkFieldIconsL (CPbkIconInfoContainer *, CPbkIconArray *)
void AddPbkTabIconsL (CPbkIconInfoContainer *, CPbkIconArray *)
MPbkAppUiExtension * CreatePbkAppUiExtensionL (CPbkContactEngine &)
MPbkContactEditorExtension * CreatePbkContactEditorExtensionL (CPbkContactItem &, CPbkContactEngine &, MPbkContactEditorControl &)
MPbkContactUiControlExtension * CreatePbkUiControlExtensionL (CPbkContactEngine &)
MPbkViewExtension * CreatePbkViewExtensionL ( TUid , CPbkContactEngine &)
MPbkViewExtension * CreatePbkViewExtensionL ( TUid , CPbkContactEngine &, CPbkAppViewBase &)
CAknView * CreateViewL ( TUid )

Constructor & Destructor Documentation

~MPbkExtensionFactory()

~MPbkExtensionFactory ( ) [inline, virtual]

Destructor.

Member Functions Documentation

AddPbkFieldIconsL(CPbkIconInfoContainer *, CPbkIconArray *)

void AddPbkFieldIconsL ( CPbkIconInfoContainer * aIconInfoContainer = NULL,
CPbkIconArray * aIconArray = NULL
) [inline, virtual]

Adds new field icons to Phonebook. This should match with fields and icons added to Phonebook in engine extension, CPbkEngineExtensionInterface. Parameters are pointers because it is not necessary to give either of those. Default implementation is empty.Inline implementations to get rid of warnings.

Parameters

CPbkIconInfoContainer * aIconInfoContainer = NULL icons infos to be added to field icons
CPbkIconArray * aIconArray = NULL subset of field icons

AddPbkTabIconsL(CPbkIconInfoContainer *, CPbkIconArray *)

void AddPbkTabIconsL ( CPbkIconInfoContainer * aIconInfoContainer = NULL,
CPbkIconArray * aIconArray = NULL
) [inline, virtual]

Adds new tab icons to Phonebook. This should match with the tabs and icons added to Phonebook's view graph. Parameters are pointers because it is not necessary to give either of those. Default implementation is empty.

Parameters

CPbkIconInfoContainer * aIconInfoContainer = NULL icons infos to be added to field icons
CPbkIconArray * aIconArray = NULL subset of field icons

CreatePbkAppUiExtensionL(CPbkContactEngine &)

MPbkAppUiExtension * CreatePbkAppUiExtensionL ( CPbkContactEngine & aEngine ) [pure virtual]

Creates a phonebook appui extension.

Parameters

CPbkContactEngine & aEngine

CreatePbkContactEditorExtensionL(CPbkContactItem &, CPbkContactEngine &, MPbkContactEditorControl &)

MPbkContactEditorExtension * CreatePbkContactEditorExtensionL ( CPbkContactItem & aContact,
CPbkContactEngine & aEngine,
MPbkContactEditorControl & aEditorControl
) [pure virtual]

Creates a Phonebook contact editor extension.

Parameters

CPbkContactItem & aContact currently edited contact
CPbkContactEngine & aEngine for creating temporary contact
MPbkContactEditorControl & aEditorControl for requesting information

CreatePbkUiControlExtensionL(CPbkContactEngine &)

MPbkContactUiControlExtension * CreatePbkUiControlExtensionL ( CPbkContactEngine & aEngine ) [pure virtual]

Creates a Phonebook UI control extension.

Parameters

CPbkContactEngine & aEngine pbk engine to be provided to extensions.

CreatePbkViewExtensionL(TUid, CPbkContactEngine &)

MPbkViewExtension * CreatePbkViewExtensionL ( TUid aId,
CPbkContactEngine & aEngine
) [pure virtual]

Creates a Phonebook view extension.

Parameters

TUid aId id of the Phonebook view to create the extension for
CPbkContactEngine & aEngine pbk engine to be provided to extensions.

CreatePbkViewExtensionL(TUid, CPbkContactEngine &, CPbkAppViewBase &)

MPbkViewExtension * CreatePbkViewExtensionL ( TUid aId,
CPbkContactEngine & aEngine,
CPbkAppViewBase & aAppView
) [inline, virtual]

Creates a Phonebook view extension. Default implementation is empty.

Parameters

TUid aId id of the Phonebook view to create the extension for
CPbkContactEngine & aEngine pbk engine to be provided to extensions
CPbkAppViewBase & aAppView app view base to be provided to extensions

CreateViewL(TUid)

CAknView * CreateViewL ( TUid aId ) [pure virtual]

Creates a new extension-implemented Phonebook view.

Parameters

TUid aId id of the extension view to create.