RVPbkContactFieldDefaultPriorities Class Reference

#include <app/RVPbkContactFieldDefaultPriorities.h>

class RVPbkContactFieldDefaultPriorities

Detailed Description

An array of default field priorities.

A helper class for client to manage default attribute priorities of the contact fields. For accessing default information the client uses the attribute manager.

See also: CVPbkContactManager::ContactAttributeManagerL CVPbkDefaultAttribute

Constructor & Destructor Documentation

RVPbkContactFieldDefaultPriorities ( )


Default constructor for an empty array.

Member Function Documentation

Append ( const TVPbkDefaultType )

TInt Append(const TVPbkDefaultTypeaDefaultType)[inline]

Appends a default type to the array.

aDefaultTypeThe default type to append in to the array.

Returns: KErrNone or a system wide error code.

At ( const TInt )

TVPbkDefaultType At(const TIntaIndex)const [inline]

Returns a type at aIndex.

aIndexA zero based index of the element.

Returns: A type at aIndex.

Close ( )


/** Releases resources used for storing the array.

This object must not be used after Close() has been called to it.

Count ( )

TInt Count()const [inline]

Returns the number of elements in the array.

Returns: The number of elements in the array.

ExternalizeLC ( )

IMPORT_C HBufC8 *ExternalizeLC()const

unnamed namespace

Outputs this objects state to a buffer.

Default priority array pack format 1: stream := VersionNumber ElementCount Element* VersionNumber := TInt8 ElementCount := TInt8 Element := TInt8

Returns: A buffer containing the state of the object.

InternalizeL ( const TDesC8 & )

IMPORT_C voidInternalizeL(const TDesC8 &aBuffer)

Initializes the instance from the buffer.

aBufferA buffer that was created using ExternalizeLC.

IsEmpty ( )

TBool IsEmpty()const [inline]

Returns true if this array is empty.

Returns: ETrue if the array is empty.