TVPbkFieldTypeParameters Class Reference

class TVPbkFieldTypeParameters

A class for managing field type parameters.

Parameters are based on the Versit 2.1 standard and they can be found from TVPbkFieldTypeParameter in VPbkFieldType.hrh.

VBK_FIELD_VERSIT_PROPERTY in VPbkFieldType.rh TVPbkFieldVersitProperty VPbkEng.lib

Constructor & Destructor Documentation

TVPbkFieldTypeParameters()

TVPbkFieldTypeParameters()[inline]

Default constructor. Initializes this parameter set to empty.

TVPbkFieldTypeParameters(TResourceReader &)

TVPbkFieldTypeParameters(TResourceReader &aResReader)[inline]

Constructs this parameter set from a resource. The resource must have LEN BYTE BYTE[] layout.

Exceptions
VPbkError::Panic(

VPbkError::EInvalidTypeParameterResource) if the resource is invalid.

Parameters

TResourceReader & aResReaderA reader to resource LEN BYTE BYTE[] that contains the parameters.

Member Functions Documentation

Add(TVPbkFieldTypeParameter)

TVPbkFieldTypeParameters &Add(TVPbkFieldTypeParameteraParam)[inline]

Adds aParam to this parameter set.

Parameters

TVPbkFieldTypeParameter aParamA new parameter to this set. aParam >= 0 && aParam < KVPbkMaxVersitParams. VPbkError::Panic(VPbkError::EInvalidTypeParameter) is raised if the precondition does not hold.

AddAll(const TVPbkFieldTypeParameters &)

TVPbkFieldTypeParameters &AddAll(const TVPbkFieldTypeParameters &aParams)[inline]

Adds all parameters of another parameter set to this set.

Parameters

const TVPbkFieldTypeParameters & aParamsA set of paramters that are added to this set.

AddFromResource(TResourceReader &)

voidAddFromResource(TResourceReader &aResReader)

Adds parameter set from a resource. The resource must have LEN BYTE BYTE[] layout.

Exceptions
VPbkError::Panic(

VPbkError::EInvalidTypeParameterResource) if the resource is invalid.

Parameters

TResourceReader & aResReaderA reader to resource LEN BYTE BYTE[] that contains the parameters.

Contains(TVPbkFieldTypeParameter)

IMPORT_C TBoolContains(TVPbkFieldTypeParameteraParam)const

Returns true if aParam is included in this parameter set.

Parameters

TVPbkFieldTypeParameter aParamA parameter that is looked for. aParam >= 0 && aParam < KVPbkMaxVersitParams

ContainsAll(const TVPbkFieldTypeParameters &)

IMPORT_C TBoolContainsAll(const TVPbkFieldTypeParameters &aOtherParams)const

Returns true if this parameter set contains all the parameters in aOtherParams.

This function is more efficient than calling Contains(TVPbkFieldTypeParameter) in a loop when multiple parameters are checked.

Parameters

const TVPbkFieldTypeParameters & aOtherParamsA set of parameters that are looked for.

ContainsNone(const TVPbkFieldTypeParameters &)

IMPORT_C TBoolContainsNone(const TVPbkFieldTypeParameters &aOtherParams)const

Returns true if this parameter set contains none of the parameters in aOtherParams.

This function is more efficient than calling Contains(TVPbkFieldTypeParameter) in a loop when multiple parameters are checked.

Parameters

const TVPbkFieldTypeParameters & aOtherParamsA set of parameters that are looked for.

DoAdd(TVPbkFieldTypeParameter)

IMPORT_C voidDoAdd(TVPbkFieldTypeParameteraParam)[private]

Parameters

TVPbkFieldTypeParameter aParam

DoAddAll(const TVPbkFieldTypeParameters &)

IMPORT_C voidDoAddAll(const TVPbkFieldTypeParameters &aParams)[private]

Parameters

const TVPbkFieldTypeParameters & aParams

DoRemove(TVPbkFieldTypeParameter)

IMPORT_C voidDoRemove(TVPbkFieldTypeParameteraParam)[private]

Parameters

TVPbkFieldTypeParameter aParam

DoRemoveAll(const TVPbkFieldTypeParameters &)

IMPORT_C voidDoRemoveAll(const TVPbkFieldTypeParameters &aParams)[private]

Parameters

const TVPbkFieldTypeParameters & aParams

FieldTypeParameters()

TUint32 *FieldTypeParameters()

Returns field type params configuration.

ReadFromResource(TResourceReader &)

IMPORT_C voidReadFromResource(TResourceReader &aResReader)

Initializes this parameter set from a resource. The resource must have LEN BYTE BYTE[] layout.

Exceptions
VPbkError::Panic(

VPbkError::EInvalidTypeParameterResource) if the resource is invalid.

Parameters

TResourceReader & aResReaderA reader to resource LEN BYTE BYTE[] that contains the parameters.

Remove(TVPbkFieldTypeParameter)

TVPbkFieldTypeParameters &Remove(TVPbkFieldTypeParameteraParam)[inline]

Removes aParam from this parameter set.

Parameters

TVPbkFieldTypeParameter aParamA parameter that is removed from this set. aParam >= 0 && aParam < KVPbkMaxVersitParams. VPbkError::Panic(VPbkError::EInvalidTypeParameter) is raised if the precondition does not hold.

RemoveAll(const TVPbkFieldTypeParameters &)

TVPbkFieldTypeParameters &RemoveAll(const TVPbkFieldTypeParameters &aParams)[inline]

Removes all parameters of another parameter set from this set.

Parameters

const TVPbkFieldTypeParameters & aParamsParameters that are removed from this set.

Reset()

IMPORT_C voidReset()

Removes all parameters from this set.

Size()

TInt Size()

Size of field type params configuration.

Member Data Documentation

TUint32 iParams

TUint32 iParams[private]