CPbk2StoreProperty Class Reference

class CPbk2StoreProperty : public CBase

Phonebook 2 contact store property. Responsible for presenting contact store related information.

Inherits from

Public Member Functions
~CPbk2StoreProperty()
IMPORT_C voidAppendViewDefinitionL(CPbk2StoreViewDefinition *)
IMPORT_C MPbk2FieldPropertyArray *CreateStoreSpecificFieldPropertiesL(const MVPbkFieldTypeList &)
IMPORT_C TIntFieldPropertiesResId()
IMPORT_C const CPbk2StoreViewDefinition *FindView(TPbk2ContactViewType)
IMPORT_C TUint32Flags()
IMPORT_C TUint32MemoryInfoTypes()
IMPORT_C CPbk2StoreProperty *NewL()
IMPORT_C CPbk2StoreProperty *NewLC(TResourceReader &)
IMPORT_C CPbk2StoreProperty *NewLC(const CPbk2StoreProperty &)
IMPORT_C CPbk2Content *RetrieveContentLC(TPbk2ContentId)
IMPORT_C voidSetFieldPropertiesResId(TInt)
IMPORT_C voidSetFlags(TUint32)
IMPORT_C voidSetMemoryInfoTypes(TUint32)
IMPORT_C voidSetStoreNameL(const TDesC &)
IMPORT_C voidSetStoreUriL(const TDesC &)
IMPORT_C const TDesC &StoreName()
IMPORT_C TVPbkContactStoreUriPtrStoreUri()
IMPORT_C TArray< const CPbk2StoreViewDefinition * >Views()
Private Member Functions
CPbk2StoreProperty()
voidConstructFieldPropertiesL(TInt)
voidConstructL(TResourceReader &)
voidConstructL(const CPbk2StoreProperty &)
voidCreateLocalizedTextsL(const CPbk2StoreProperty &)
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
TInt iFieldPropertiesResId
TUint32 iFlags
RPointerArray< const CPbk2LocalizedText >iLocalizedTexts
TUint32 iMemoryInfoTypes
HBufC *iStoreName
HBufC *iStoreUri
RPointerArray< const CPbk2StoreViewDefinition >iStoreViews

Constructor & Destructor Documentation

CPbk2StoreProperty()

CPbk2StoreProperty()[private]

~CPbk2StoreProperty()

~CPbk2StoreProperty()

Destructor

Member Functions Documentation

AppendViewDefinitionL(CPbk2StoreViewDefinition *)

IMPORT_C voidAppendViewDefinitionL(CPbk2StoreViewDefinition *aViewDefinition)

Appends a new view definition.

Parameters

CPbk2StoreViewDefinition * aViewDefinitionView definition to append. Ownership changes. Client must release the ownership after the call.

ConstructFieldPropertiesL(TInt)

voidConstructFieldPropertiesL(TIntaFieldPropertyArrayResId)[private]

Parameters

TInt aFieldPropertyArrayResId

ConstructL(TResourceReader &)

voidConstructL(TResourceReader &aReader)[private]

Parameters

TResourceReader & aReader

ConstructL(const CPbk2StoreProperty &)

voidConstructL(const CPbk2StoreProperty &aProperty)[private]

Parameters

const CPbk2StoreProperty & aProperty

CreateLocalizedTextsL(const CPbk2StoreProperty &)

voidCreateLocalizedTextsL(const CPbk2StoreProperty &aProperty)[private]

Parameters

const CPbk2StoreProperty & aProperty

CreateStoreSpecificFieldPropertiesL(const MVPbkFieldTypeList &)

IMPORT_C MPbk2FieldPropertyArray *CreateStoreSpecificFieldPropertiesL(const MVPbkFieldTypeList &aFieldTypeList)const

Returns the store specific field properties. The store property contains a link to the field property array. If the field property resource has been defined then those properties are returned. The related field types must be given to create properties because each property links to one single field type.

Parameters

const MVPbkFieldTypeList & aFieldTypeListIn most cases this is the Virtual Phonebook master field type list because it contains all the field types.

FieldPropertiesResId()

IMPORT_C TIntFieldPropertiesResId()const

Returns the resource id of the store's field property array.

PHONEBOOK2_FIELD_PROPERTY_ARRAY

FindView(TPbk2ContactViewType)

IMPORT_C const CPbk2StoreViewDefinition *FindView(TPbk2ContactViewTypeaViewType)const

Finds the view definitions from the property.

TPbk2ContactViewType

Parameters

TPbk2ContactViewType aViewTypeView type.

Flags()

IMPORT_C TUint32Flags()const

Returns store property flags.

Pbk2StoreProperty.hrh

MemoryInfoTypes()

IMPORT_C TUint32MemoryInfoTypes()const

Returns a set of info types that define what information is requested from the store's MVPbkContactStoreInfo interface.

Pbk2StoreProperty.hrh

NewL()

IMPORT_C CPbk2StoreProperty *NewL()[static]

Creates a new instance of this class.

NewLC(TResourceReader &)

IMPORT_C CPbk2StoreProperty *NewLC(TResourceReader &aReader)[static]

Creates a new instance of this class.

PHONEBOOK2_STORE_PROPERTY

Parameters

TResourceReader & aReaderResource reader pointed to a PHONEBOOK2_STORE_PROPERTY resource.

NewLC(const CPbk2StoreProperty &)

IMPORT_C CPbk2StoreProperty *NewLC(const CPbk2StoreProperty &aProperty)[static]

Creates a new instance of this class.

Parameters

const CPbk2StoreProperty & aPropertyAn existing store property.

RetrieveContentLC(TPbk2ContentId)

IMPORT_C CPbk2Content *RetrieveContentLC(TPbk2ContentIdaContext)const

Returns a content object that is mapped to the requested context. Ownership of the returned object is passed. The client is able to acquire content to a certain context using this method. The client can pass information of the context to the content generation implementation. The client is then responsible for finding the contents type dynamically.

Parameters

TPbk2ContentId aContextIdentifier of the context of the query.

SetFieldPropertiesResId(TInt)

IMPORT_C voidSetFieldPropertiesResId(TIntaFieldPropertiesResId)

Sets the store specific field property array resource id.

Parameters

TInt aFieldPropertiesResIdResource id of a PHONEBOOK2_FIELD_PROPERTY_ARRAY resource.

SetFlags(TUint32)

IMPORT_C voidSetFlags(TUint32aFlags)

Sets the store property flags. Overwrites existing flags.

Pbk2StoreProperty.hrh

Parameters

TUint32 aFlagsStore property flags to set.

SetMemoryInfoTypes(TUint32)

IMPORT_C voidSetMemoryInfoTypes(TUint32aInfoTypes)

Sets the info types that define which data is requested from the MVPbkContactStoreInfo interface.

Pbk2StoreProperty.hrh

Parameters

TUint32 aInfoTypesMemory info types.

SetStoreNameL(const TDesC &)

IMPORT_C voidSetStoreNameL(const TDesC &aStoreName)

Sets the name for the store. The name is used in the UI.

Parameters

const TDesC & aStoreNameName for the store.

SetStoreUriL(const TDesC &)

IMPORT_C voidSetStoreUriL(const TDesC &aStoreUri)

Sets the store URI for the property.

Parameters

const TDesC & aStoreUriThe URI that is used to load the store from the Virtual Phonebook.

StoreName()

IMPORT_C const TDesC &StoreName()const

Returns the name of the store.

StoreUri()

IMPORT_C TVPbkContactStoreUriPtrStoreUri()const

Returns the store URI of the property.

Views()

IMPORT_C TArray< const CPbk2StoreViewDefinition * >Views()const

Returns an array of view definitions for the store.

Member Data Documentation

TInt iFieldPropertiesResId

TInt iFieldPropertiesResId[private]

TUint32 iFlags

TUint32 iFlags[private]

RPointerArray< const CPbk2LocalizedText > iLocalizedTexts

RPointerArray< const CPbk2LocalizedText >iLocalizedTexts[private]

TUint32 iMemoryInfoTypes

TUint32 iMemoryInfoTypes[private]

HBufC * iStoreName

HBufC *iStoreName[private]

HBufC * iStoreUri

HBufC *iStoreUri[private]

RPointerArray< const CPbk2StoreViewDefinition > iStoreViews

RPointerArray< const CPbk2StoreViewDefinition >iStoreViews[private]