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

  • CVPbkFilteredContactView
Public Member Functions
~CVPbkFilteredContactView()
IMPORT_C CVPbkFilteredContactView *NewL(MVPbkContactViewBase &, MVPbkContactViewObserver &, MVPbkContactSelector &)
IMPORT_C CVPbkFilteredContactView *NewL(MVPbkContactViewBase &, MVPbkContactViewObserver &, MVPbkContactSelector &, const MVPbkFieldTypeList &)
Protected Member Functions
voidAddObserverL(MVPbkContactViewObserver &)
voidChangeSortOrderL(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 &)
voidRefreshL()
voidRemoveObserver(MVPbkContactViewObserver &)
const MVPbkFieldTypeList &SortOrder()
TVPbkContactViewType Type()
MVPbkContactViewFiltering *ViewFiltering()
Private Member Functions
CVPbkFilteredContactView(MVPbkContactViewBase &, MVPbkContactSelector &, const MVPbkFieldTypeList *)
voidAddObserverError(MVPbkContactViewObserver &, TInt)
voidBuildViewMappingL()
voidConstructL(MVPbkContactViewObserver &)
voidContactAddedToView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)
voidContactRemovedFromView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)
voidContactViewError(MVPbkContactViewBase &, TInt, TBool)
voidContactViewReady(MVPbkContactViewBase &)
voidContactViewUnavailable(MVPbkContactViewBase &)
MVPbkContactViewBase *CreateFilteredViewLC(MVPbkContactViewObserver &, const MDesCArray &, const MVPbkContactBookmarkCollection *)
voidDoAddObserverL(MVPbkContactViewObserver &)
voidHandleBuildViewMapping()
voidUpdateFilterL(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)

voidAddObserverError(MVPbkContactViewObserver &aObserver,
TIntaError
)[private]

Parameters

MVPbkContactViewObserver & aObserver
TInt aError

AddObserverL(MVPbkContactViewObserver &)

voidAddObserverL(MVPbkContactViewObserver &aObserver)[protected]

Parameters

MVPbkContactViewObserver & aObserver

BuildViewMappingL()

voidBuildViewMappingL()[private]

ChangeSortOrderL(const MVPbkFieldTypeList &)

voidChangeSortOrderL(const MVPbkFieldTypeList &aSortOrder)[protected]

Parameters

const MVPbkFieldTypeList & aSortOrder

ConstructL(MVPbkContactViewObserver &)

voidConstructL(MVPbkContactViewObserver &aObserver)[private, inline]

Parameters

MVPbkContactViewObserver & aObserver

ContactAddedToView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)

voidContactAddedToView(MVPbkContactViewBase &aView,
TIntaIndex,
const MVPbkContactLink &aContactLink
)[private]

Parameters

MVPbkContactViewBase & aView
TInt aIndex
const MVPbkContactLink & aContactLink

ContactAtL(TInt)

const MVPbkViewContact &ContactAtL(TIntaIndex)const [protected]

Parameters

TInt aIndex

ContactCountL()

TInt ContactCountL()const [protected]

ContactRemovedFromView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)

voidContactRemovedFromView(MVPbkContactViewBase &aView,
TIntaIndex,
const MVPbkContactLink &aContactLink
)[private]

Parameters

MVPbkContactViewBase & aView
TInt aIndex
const MVPbkContactLink & aContactLink

ContactViewError(MVPbkContactViewBase &, TInt, TBool)

voidContactViewError(MVPbkContactViewBase &aView,
TIntaError,
TBoolaErrorNotified
)[private]

Parameters

MVPbkContactViewBase & aView
TInt aError
TBool aErrorNotified

ContactViewReady(MVPbkContactViewBase &)

voidContactViewReady(MVPbkContactViewBase &aView)[private]

Parameters

MVPbkContactViewBase & aView

ContactViewUnavailable(MVPbkContactViewBase &)

voidContactViewUnavailable(MVPbkContactViewBase &aView)[private]

Parameters

MVPbkContactViewBase & aView

CreateBookmarkLC(TInt)

MVPbkContactBookmark *CreateBookmarkLC(TIntaIndex)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(TIntaIndex)const [protected]

Parameters

TInt aIndex

DoAddObserverL(MVPbkContactViewObserver &)

voidDoAddObserverL(MVPbkContactViewObserver &aObserver)[private]

Parameters

MVPbkContactViewObserver & aObserver

HandleBuildViewMapping()

voidHandleBuildViewMapping()[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 & aBaseViewThe view to filter.
MVPbkContactViewObserver & aObserveran observer that is notified when this view is ready for use.
MVPbkContactSelector & aContactSelectorA 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 & aBaseViewThe view to filter.
MVPbkContactViewObserver & aObserveran observer that is notified when this view is ready for use.
MVPbkContactSelector & aContactSelectorA contact selector for selecting contacts to the view.
const MVPbkFieldTypeList & aMasterFieldTypeListField type list

RefreshL()

voidRefreshL()[protected]

RemoveObserver(MVPbkContactViewObserver &)

voidRemoveObserver(MVPbkContactViewObserver &aObserver)[protected]

Parameters

MVPbkContactViewObserver & aObserver

SortOrder()

const MVPbkFieldTypeList &SortOrder()const [protected]

Type()

TVPbkContactViewType Type()const [protected]

UpdateFilterL(const MDesCArray &, const MVPbkContactBookmarkCollection *)

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

Parameters

const MDesCArray & aFindWords
const MVPbkContactBookmarkCollection * aAlwaysIncludedContacts

UpdateViewMappingAfterAddingL(TInt)

TInt UpdateViewMappingAfterAddingL(TIntaBaseIndex)[private]

Parameters

TInt aBaseIndex

UpdateViewMappingAfterDeleting(TInt)

TInt UpdateViewMappingAfterDeleting(TIntaBaseIndex)[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]