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 & aResReader A reader to resource LEN BYTE BYTE[] that contains the parameters.

Member Functions Documentation

Add(TVPbkFieldTypeParameter)

TVPbkFieldTypeParameters & Add ( TVPbkFieldTypeParameter aParam ) [inline]

Adds aParam to this parameter set.

Parameters

TVPbkFieldTypeParameter aParam A 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 & aParams A set of paramters that are added to this set.

AddFromResource(TResourceReader &)

void AddFromResource ( 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 & aResReader A reader to resource LEN BYTE BYTE[] that contains the parameters.

Contains(TVPbkFieldTypeParameter)

IMPORT_C TBool Contains ( TVPbkFieldTypeParameter aParam ) const

Returns true if aParam is included in this parameter set.

Parameters

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

ContainsAll(const TVPbkFieldTypeParameters &)

IMPORT_C TBool ContainsAll ( 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 & aOtherParams A set of parameters that are looked for.

ContainsNone(const TVPbkFieldTypeParameters &)

IMPORT_C TBool ContainsNone ( 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 & aOtherParams A set of parameters that are looked for.

DoAdd(TVPbkFieldTypeParameter)

IMPORT_C void DoAdd ( TVPbkFieldTypeParameter aParam ) [private]

Parameters

TVPbkFieldTypeParameter aParam

DoAddAll(const TVPbkFieldTypeParameters &)

IMPORT_C void DoAddAll ( const TVPbkFieldTypeParameters & aParams ) [private]

Parameters

const TVPbkFieldTypeParameters & aParams

DoRemove(TVPbkFieldTypeParameter)

IMPORT_C void DoRemove ( TVPbkFieldTypeParameter aParam ) [private]

Parameters

TVPbkFieldTypeParameter aParam

DoRemoveAll(const TVPbkFieldTypeParameters &)

IMPORT_C void DoRemoveAll ( const TVPbkFieldTypeParameters & aParams ) [private]

Parameters

const TVPbkFieldTypeParameters & aParams

FieldTypeParameters()

TUint32 * FieldTypeParameters ( )

Returns field type params configuration.

ReadFromResource(TResourceReader &)

IMPORT_C void ReadFromResource ( 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 & aResReader A reader to resource LEN BYTE BYTE[] that contains the parameters.

Remove(TVPbkFieldTypeParameter)

TVPbkFieldTypeParameters & Remove ( TVPbkFieldTypeParameter aParam ) [inline]

Removes aParam from this parameter set.

Parameters

TVPbkFieldTypeParameter aParam A 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 & aParams Parameters that are removed from this set.

Reset()

IMPORT_C void Reset ( )

Removes all parameters from this set.

Size()

TInt Size ( )

Size of field type params configuration.

Member Data Documentation

TUint32 iParams

TUint32 iParams [private]