EPOC   SDK Home Glossary Indexes Previous Next Up

CContactStoreField class


Contents


CContactStoreField class — Storage for generic field data

Section Contents


Overview

Compatibility

Applications that use this class will not work correctly on a version of EPOC earlier than ER5.

Derivation

CBase

Abstract: CBase behaviour.

CContactFieldStorage

Abstract: Field data storage.

Defined in

cntfldst.h

Link against

cntmodel.lib

Description

This class is used to store, set and retrieve generic field data — this is data contained in a descriptor array, in a descriptor, or in a dynamic buffer. An object of this class can be retrieved using CContactItemField::StoreStorage().


Set / get stored data


SetThingL() — Set the data from an descriptor array

void SetThingL(MDesCArray* anArray);

Description

Set the data to be stored in the field from a descriptor array.

Arguments

MDesCArray* anArray

Pointer to a descriptor array containing the field data to be stored.


SetThingL() — Set the data from a descriptor

void SetThingL(const TDesC& aDes);

Description

Set the data to be stored in the field from a descriptor.

Arguments

const TDesC& aDes

Descriptor containing the data to be stored in the field.


SetThingL() — Set the data from a buffer

void SetThingL(CBufBase* abuf);

Description

Set the data to be stored in the field from a buffer.

Arguments

CBufBase* abuf

Pointer to a buffer containing the data to be stored in the field.


Thing() — Get the stored data

CBufBase* Thing() const;

Description

Retrieve the data stored in the field as a pointer to a buffer.

Return value

CBufBase*

Pointer to a buffer containing the data stored in the field.

EPOC       SDK Home Glossary Indexes Previous Next Up