CVPbkFieldTypeSelector Class Reference

#include <app/CVPbkFieldTypeSelector.h>

class CVPbkFieldTypeSelector : public CBase

Inherits from

  • CVPbkFieldTypeSelector

    Nested Classes and Structures

    Detailed Description

    Virtual Phonebook field type selector. Responsible for creating a field or field type selection object. Clients can create a selector and then use e.g. IsFieldIncluded to detect whether the field matches the set criteria.

    Constructor & Destructor Documentation

    ~CVPbkFieldTypeSelector ( )

    ~CVPbkFieldTypeSelector()

    Destructor.

    Member Function Documentation

    AddressFieldsIncluded ( const MVPbkStoreContactFieldCollection & )

    IMPORT_C TIntAddressFieldsIncluded(const MVPbkStoreContactFieldCollection &aFields)const

    Calculates the number of addresses

    ParameterDescription
    aFieldsA field collection to test.

    Returns: Calculated number of addresses.

    AppendL ( TResourceReader & )

    voidAppendL(TResourceReader &aReader)

    Appends a VPBK_FIELD_TYPE_SELECTOR resource to this selector.

    ParameterDescription
    aReaderResource reader initialized to the VPBK_FIELD_TYPE_SELECTOR resource structure.

    ExternalizeLC ( )

    IMPORT_C HBufC8 *ExternalizeLC()const

    Outputs this objects state to a buffer.

    Returns: Buffer containg this object.

    FieldTypeList ( )

    const MVPbkFieldTypeList &FieldTypeList()const

    Returns the field type list with which this object was initialized with.

    Returns: Field type list.

    InternalizeL ( const TDesC8 & )

    IMPORT_C voidInternalizeL(const TDesC8 &aBuffer)

    Initializes the instance from the buffer.

    ParameterDescription
    aBufferBuffer containing externalized object.

    IsFieldIncluded ( const MVPbkBaseContactField & )

    TBool IsFieldIncluded(const MVPbkBaseContactField &aField)const

    IsFieldTypeIncluded ( const MVPbkFieldType & )

    TBool IsFieldTypeIncluded(const MVPbkFieldType &aFieldType)const

    MatchingNonVersitType ( const MVPbkFieldType & )

    IMPORT_C TVPbkNonVersitFieldTypeMatchingNonVersitType(const MVPbkFieldType &aFieldType)const

    Returns the matching non-Versit type or EVPbkNonVersitTypeNone.

    ParameterDescription
    aFieldTypeThe field type to test.

    MatchingVersitProperty ( const MVPbkFieldType & )

    IMPORT_C const TVPbkFieldVersitProperty *MatchingVersitProperty(const MVPbkFieldType &aFieldType)const

    Returns the matching Versit property or NULL.

    ParameterDescription
    aFieldTypeThe field type to test.

    NewL ( TResourceReader &, const MVPbkFieldTypeList & )

    IMPORT_C CVPbkFieldTypeSelector *NewL(TResourceReader &aReader,
    const MVPbkFieldTypeList &aFieldTypeList
    )[static]

    Constructs this object from a VPBK_FIELD_TYPE_SELECTOR ( VPbkFieldType.rh ) resource.

    ParameterDescription
    aReaderResource reader initialized to the VPBK_FIELD_TYPE_SELECTOR resource structure.
    aFieldTypeListField type list used to search for the field.

    Returns: A new instance of this class.

    NewL ( const MVPbkFieldTypeList & )

    IMPORT_C CVPbkFieldTypeSelector *NewL(const MVPbkFieldTypeList &aFieldTypeList)[static]

    Constructs an empty selector. Can be used in combination with InternalizeL or AppendL to create a selector.

    ParameterDescription
    aFieldTypeListField type list used to search for the field.

    Returns: A new instance of this class.

    NewL ( const CVPbkFieldTypeSelector & )

    IMPORT_C CVPbkFieldTypeSelector *NewL(const CVPbkFieldTypeSelector &aSelector)[static]

    Copy constructs this object.

    ParameterDescription
    aSelectorThe object to copy construct from.

    Returns: A new instance of this class.

    SetContactActionType ( TInt )

    voidSetContactActionType(TIntaContactActionType)

    Sets contact action type. Contact action type is used to filter xsp id fields according to data and service type.

    ParameterDescription
    aContactActionTypecontact action type