Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: CNTDB.H
Link against: cntmodel.lib

Class CContactViewDef

class CContactViewDef : public CBase;

Description

Specifies a subset of fields to be loaded when reading a contact item.

A default view definition is owned by the contact database. It is set using CContactDatabase::SetViewDefinitionL() and is used in calls to CContactDatabase::ReadContactL(), ReadContactLC() and ReadContactAndAgentL() when no view definition is specified.

The view definition owns the item view definition (see the CContactItemViewDef class), which stores the view definition's field types, use and mode.

The following functions declared in class CContactViewDef have not been implemented:- Groups(), AddL().

Derivation

Members

Defined in CContactViewDef:
AddL(), ExternalizeL(), Groups(), InternalizeL(), ItemDef(), NewL(), NewL(), NewLC(), NewLC(), ~CContactViewDef()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewL()

static IMPORT_C CContactViewDef *NewL();

Description

Allocates and constructs a view definition.

Return value

CContactViewDef *

Pointer to the new view definition.


NewLC()

static IMPORT_C CContactViewDef *NewLC();

Description

Allocates and constructs a view definition, leaving it on the cleanup stack.

Return value

CContactViewDef *

Pointer to the new view definition.


NewL()

static IMPORT_C CContactViewDef *NewL(CContactItemViewDef *aItemDef);

Description

Allocates and constructs a view definition.

Parameters

CContactItemViewDef *aItemDef

Pointer to the item view definition. This contains the view definition's field types, use and mode. The view definition takes ownership of this.

Return value

CContactViewDef *

Pointer to the new view definition.


NewLC()

static IMPORT_C CContactViewDef *NewLC(CContactItemViewDef *aItemDef);

Description

Allocates and constructs a view definition.

Parameters

CContactItemViewDef *aItemDef

Pointer to the item view definition. This contains the view definition's field types, use and mode. The view definition takes ownership of this.

Return value

CContactViewDef *

Pointer to the new view definition. This is left on the cleanup stack.


~CContactViewDef()

IMPORT_C ~CContactViewDef();

Description

Destroys the view definition object and deletes its owned item view definition.

[Top]


Member functions


InternalizeL()

IMPORT_C void InternalizeL(RReadStream &aStream);

Description

Internalises the object's item view definition from a read stream.

Parameters

RReadStream &aStream

Stream from which the object should be internalised.


ExternalizeL()

IMPORT_C void ExternalizeL(RWriteStream &aStream) const;

Description

Externalises the object's item view definition to a write stream.

Parameters

RWriteStream &aStream

Stream to which the object should be externalised.


ItemDef()

IMPORT_C CContactItemViewDef &ItemDef() const;

Description

Gets the object's item view definition.

Return value

CContactItemViewDef &

Reference to the item view definition.


Groups()

IMPORT_C CContactIdArray &Groups() const;

Description

This function is not implemented

Return value

CContactIdArray &


AddL()

inline void AddL(TFieldType aFieldType);

Description

This function is not implemented.

Parameters

TFieldType aFieldType

The field type to append to the array of field types.