CVPbkFilteredContactView Class Reference

class CVPbkFilteredContactView : public CBase

Virtual Phonebook filtered contact view. This class can be used for filtering an existing view. A client gives the view for filtering and also a contact selector that is used to select contacts from the given view.

Inherits from

Public Member Functions
~CVPbkFilteredContactView ()
IMPORT_C CVPbkFilteredContactView * NewL ( MVPbkContactViewBase &, MVPbkContactViewObserver &, MVPbkContactSelector &)
IMPORT_C CVPbkFilteredContactView * NewL ( MVPbkContactViewBase &, MVPbkContactViewObserver &, MVPbkContactSelector &, const MVPbkFieldTypeList &)
Protected Member Functions
void AddObserverL ( MVPbkContactViewObserver &)
void ChangeSortOrderL (const MVPbkFieldTypeList &)
const MVPbkViewContact & ContactAtL ( TInt )
TInt ContactCountL ()
MVPbkContactBookmark * CreateBookmarkLC ( TInt )
MVPbkContactLink * CreateLinkLC ( TInt )
TInt IndexOfBookmarkL (const MVPbkContactBookmark &)
TInt IndexOfLinkL (const MVPbkContactLink &)
TBool MatchContactStore (const TDesC &)
TBool MatchContactStoreDomain (const TDesC &)
void RefreshL ()
void RemoveObserver ( MVPbkContactViewObserver &)
const MVPbkFieldTypeList & SortOrder ()
TVPbkContactViewType Type ()
MVPbkContactViewFiltering * ViewFiltering ()
Private Member Functions
CVPbkFilteredContactView ( MVPbkContactViewBase &, MVPbkContactSelector &, const MVPbkFieldTypeList *)
void AddObserverError ( MVPbkContactViewObserver &, TInt )
void BuildViewMappingL ()
void ConstructL ( MVPbkContactViewObserver &)
void ContactAddedToView ( MVPbkContactViewBase &, TInt , const MVPbkContactLink &)
void ContactRemovedFromView ( MVPbkContactViewBase &, TInt , const MVPbkContactLink &)
void ContactViewError ( MVPbkContactViewBase &, TInt , TBool )
void ContactViewReady ( MVPbkContactViewBase &)
void ContactViewUnavailable ( MVPbkContactViewBase &)
MVPbkContactViewBase * CreateFilteredViewLC ( MVPbkContactViewObserver &, const MDesCArray &, const MVPbkContactBookmarkCollection *)
void DoAddObserverL ( MVPbkContactViewObserver &)
void HandleBuildViewMapping ()
void UpdateFilterL (const MDesCArray &, const MVPbkContactBookmarkCollection *)
TInt UpdateViewMappingAfterAddingL ( TInt )
TInt UpdateViewMappingAfterDeleting ( TInt )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
VPbkEngUtils::CVPbkAsyncOperation * iAsyncOperation
MVPbkContactViewBase & iBaseView
RArray < TInt > iContactMapping
MVPbkContactSelector & iContactSelector
TBool iIsReady
const MVPbkFieldTypeList * iMasterFieldTypeList
RPointerArray < MVPbkContactViewObserver > iObservers

Constructor & Destructor Documentation

CVPbkFilteredContactView(MVPbkContactViewBase &, MVPbkContactSelector &, const MVPbkFieldTypeList *)

CVPbkFilteredContactView ( MVPbkContactViewBase & aBaseView,
MVPbkContactSelector & aContactSelector,
const MVPbkFieldTypeList * aMasterFieldTypeList
) [private]

Parameters

MVPbkContactViewBase & aBaseView
MVPbkContactSelector & aContactSelector
const MVPbkFieldTypeList * aMasterFieldTypeList

~CVPbkFilteredContactView()

~CVPbkFilteredContactView ( )

Destructor.

Member Functions Documentation

AddObserverError(MVPbkContactViewObserver &, TInt)

void AddObserverError ( MVPbkContactViewObserver & aObserver,
TInt aError
) [private]

Parameters

MVPbkContactViewObserver & aObserver
TInt aError

AddObserverL(MVPbkContactViewObserver &)

void AddObserverL ( MVPbkContactViewObserver & aObserver ) [protected]

Parameters

MVPbkContactViewObserver & aObserver

BuildViewMappingL()

void BuildViewMappingL ( ) [private]

ChangeSortOrderL(const MVPbkFieldTypeList &)

void ChangeSortOrderL ( const MVPbkFieldTypeList & aSortOrder ) [protected]

Parameters

const MVPbkFieldTypeList & aSortOrder

ConstructL(MVPbkContactViewObserver &)

void ConstructL ( MVPbkContactViewObserver & aObserver ) [private, inline]

Parameters

MVPbkContactViewObserver & aObserver

ContactAddedToView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)

void ContactAddedToView ( MVPbkContactViewBase & aView,
TInt aIndex,
const MVPbkContactLink & aContactLink
) [private]

Parameters

MVPbkContactViewBase & aView
TInt aIndex
const MVPbkContactLink & aContactLink

ContactAtL(TInt)

const MVPbkViewContact & ContactAtL ( TInt aIndex ) const [protected]

Parameters

TInt aIndex

ContactCountL()

TInt ContactCountL ( ) const [protected]

ContactRemovedFromView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)

void ContactRemovedFromView ( MVPbkContactViewBase & aView,
TInt aIndex,
const MVPbkContactLink & aContactLink
) [private]

Parameters

MVPbkContactViewBase & aView
TInt aIndex
const MVPbkContactLink & aContactLink

ContactViewError(MVPbkContactViewBase &, TInt, TBool)

void ContactViewError ( MVPbkContactViewBase & aView,
TInt aError,
TBool aErrorNotified
) [private]

Parameters

MVPbkContactViewBase & aView
TInt aError
TBool aErrorNotified

ContactViewReady(MVPbkContactViewBase &)

void ContactViewReady ( MVPbkContactViewBase & aView ) [private]

Parameters

MVPbkContactViewBase & aView

ContactViewUnavailable(MVPbkContactViewBase &)

void ContactViewUnavailable ( MVPbkContactViewBase & aView ) [private]

Parameters

MVPbkContactViewBase & aView

CreateBookmarkLC(TInt)

MVPbkContactBookmark * CreateBookmarkLC ( TInt aIndex ) const [protected]

Parameters

TInt aIndex

CreateFilteredViewLC(MVPbkContactViewObserver &, const MDesCArray &, const MVPbkContactBookmarkCollection *)

MVPbkContactViewBase * CreateFilteredViewLC ( MVPbkContactViewObserver & aObserver,
const MDesCArray & aFindWords,
const MVPbkContactBookmarkCollection * aAlwaysIncludedContacts
) [private]

Parameters

MVPbkContactViewObserver & aObserver
const MDesCArray & aFindWords
const MVPbkContactBookmarkCollection * aAlwaysIncludedContacts

CreateLinkLC(TInt)

MVPbkContactLink * CreateLinkLC ( TInt aIndex ) const [protected]

Parameters

TInt aIndex

DoAddObserverL(MVPbkContactViewObserver &)

void DoAddObserverL ( MVPbkContactViewObserver & aObserver ) [private]

Parameters

MVPbkContactViewObserver & aObserver

HandleBuildViewMapping()

void HandleBuildViewMapping ( ) [private]

IndexOfBookmarkL(const MVPbkContactBookmark &)

TInt IndexOfBookmarkL ( const MVPbkContactBookmark & aContactBookmark ) const [protected]

Parameters

const MVPbkContactBookmark & aContactBookmark

IndexOfLinkL(const MVPbkContactLink &)

TInt IndexOfLinkL ( const MVPbkContactLink & aContactLink ) const [protected]

Parameters

const MVPbkContactLink & aContactLink

MatchContactStore(const TDesC &)

TBool MatchContactStore ( const TDesC & aContactStoreUri ) const [protected]

Parameters

const TDesC & aContactStoreUri

MatchContactStoreDomain(const TDesC &)

TBool MatchContactStoreDomain ( const TDesC & aContactStoreDomain ) const [protected]

Parameters

const TDesC & aContactStoreDomain

NewL(MVPbkContactViewBase &, MVPbkContactViewObserver &, MVPbkContactSelector &)

IMPORT_C CVPbkFilteredContactView * NewL ( MVPbkContactViewBase & aBaseView,
MVPbkContactViewObserver & aObserver,
MVPbkContactSelector & aContactSelector
) [static]

Two-phase constructor. NOTE: Does not support find functionality.

Parameters

MVPbkContactViewBase & aBaseView The view to filter.
MVPbkContactViewObserver & aObserver an observer that is notified when this view is ready for use.
MVPbkContactSelector & aContactSelector A contact selector for selecting contacts to the view.

NewL(MVPbkContactViewBase &, MVPbkContactViewObserver &, MVPbkContactSelector &, const MVPbkFieldTypeList &)

IMPORT_C CVPbkFilteredContactView * NewL ( MVPbkContactViewBase & aBaseView,
MVPbkContactViewObserver & aObserver,
MVPbkContactSelector & aContactSelector,
const MVPbkFieldTypeList & aMasterFieldTypeList
) [static]

Two-phase constructor. Note: Supports find functionality.

Parameters

MVPbkContactViewBase & aBaseView The view to filter.
MVPbkContactViewObserver & aObserver an observer that is notified when this view is ready for use.
MVPbkContactSelector & aContactSelector A contact selector for selecting contacts to the view.
const MVPbkFieldTypeList & aMasterFieldTypeList Field type list

RefreshL()

void RefreshL ( ) [protected]

RemoveObserver(MVPbkContactViewObserver &)

void RemoveObserver ( MVPbkContactViewObserver & aObserver ) [protected]

Parameters

MVPbkContactViewObserver & aObserver

SortOrder()

const MVPbkFieldTypeList & SortOrder ( ) const [protected]

Type()

TVPbkContactViewType Type ( ) const [protected]

UpdateFilterL(const MDesCArray &, const MVPbkContactBookmarkCollection *)

void UpdateFilterL ( const MDesCArray & aFindWords,
const MVPbkContactBookmarkCollection * aAlwaysIncludedContacts
) [private]

Parameters

const MDesCArray & aFindWords
const MVPbkContactBookmarkCollection * aAlwaysIncludedContacts

UpdateViewMappingAfterAddingL(TInt)

TInt UpdateViewMappingAfterAddingL ( TInt aBaseIndex ) [private]

Parameters

TInt aBaseIndex

UpdateViewMappingAfterDeleting(TInt)

TInt UpdateViewMappingAfterDeleting ( TInt aBaseIndex ) [private]

Parameters

TInt aBaseIndex

ViewFiltering()

MVPbkContactViewFiltering * ViewFiltering ( ) [protected]

Member Data Documentation

VPbkEngUtils::CVPbkAsyncOperation * iAsyncOperation

VPbkEngUtils::CVPbkAsyncOperation * iAsyncOperation [private]

MVPbkContactViewBase & iBaseView

MVPbkContactViewBase & iBaseView [private]

RArray< TInt > iContactMapping

RArray < TInt > iContactMapping [private]

MVPbkContactSelector & iContactSelector

MVPbkContactSelector & iContactSelector [private]

TBool iIsReady

TBool iIsReady [private]

const MVPbkFieldTypeList * iMasterFieldTypeList

const MVPbkFieldTypeList * iMasterFieldTypeList [private]

RPointerArray< MVPbkContactViewObserver > iObservers

RPointerArray < MVPbkContactViewObserver > iObservers [private]