CBCardEngine Class Reference

#include <app/BCardEng.h>

Link against: BCardEng.lib

class CBCardEngine : public CBase

Inherits from

  • CBCardEngine

    Detailed Description

    The business card engine is able to import and export vCards and Compact Business Cards to and from Phonebook.

    Constructor & Destructor Documentation

    ~CBCardEngine ( )

    IMPORT_C~CBCardEngine()

    Destructor

    Member Function Documentation

    ExportBusinessCardL ( RWriteStream &, CPbkContactItem & )

    IMPORT_C voidExportBusinessCardL(RWriteStream &aDestStream,
    CPbkContactItem &aSourceItem
    )

    Writes a vCard record with information from a Phonebook contact item. The main Export function.

    ParameterDescription
    aDestStreamA stream where the vCard data is written to. The data written to the stream is not Committed by this method.
    aSourceItemPhonebook contact item where the information should be read from

    ImportBusinessCardL ( CPbkContactItem &, RReadStream & )

    IMPORT_C voidImportBusinessCardL(CPbkContactItem &aDestItem,
    RReadStream &aSourceStream
    )

    Reads a vCard record from a stream into a Phonebook contact item.

    ParameterDescription
    aDestItemPhonebook contact item where the information should be written to. The item should be writable. The caller should commit the changes.
    aSourceStreamA stream where the vCard data is read from

    ImportCompactBusinessCardL ( CPbkContactItem &, RReadStream & )

    IMPORT_C TBoolImportCompactBusinessCardL(CPbkContactItem &aDestItem,
    RReadStream &aSourceStream
    )

    Reads a Compact Business Card record from a stream into a Phonebook contact item.

    ParameterDescription
    aDestItemPhonebook contact item where the information must be written to. The item must be writable. The caller should commit the changes.
    aSourceStreamA stream where the Compact Business Card is read from

    Returns: ETrue on success

    NewL ( CPbkContactEngine * )

    IMPORT_C CBCardEngine *NewL(CPbkContactEngine *aEngine)[static]

    Creates a new instance of this class.

    ParameterDescription
    aEngineAn open Phonebook Engine object which CBCardEngine uses to import and export vCard data.

    SupportsFieldType ( TPbkFieldId )

    IMPORT_C TBoolSupportsFieldType(TPbkFieldIdaFieldId)

    Checks if given field is supported by the vCard format

    ParameterDescription
    aFieldIdField id type

    Returns: ETrue if given field is supported, EFalse otherwise