CMifareClassicDataBlock Class Reference

#include <mw/mifareclassicdatablock.h>

class CMifareClassicDataBlock : public CBase

Inherits from

  • CMifareClassicDataBlock

    Detailed Description

    This helper class provides easy access to Mifare classic data blocks.

    {nfctagextension.lib}

    Since
    S60 ?S60_version

    Constructor & Destructor Documentation

    ~CMifareClassicDataBlock ( )

    ~CMifareClassicDataBlock()

    Destructor.

    Member Function Documentation

    Copy ( const CMifareClassicDataBlock & )

    IMPORT_C voidCopy(const CMifareClassicDataBlock &aDataBlock)

    Copies data from specified CMifareClassicDataBlock to this CMifareClassicDataBlock and replaces any existing data.

    ParameterDescription
    aDataBlockData block from which content is copied to this object.

    ExportDataL ( )

    HBufC8 *ExportDataL()const

    ExportDataLC ( )

    HBufC8 *ExportDataLC()const

    ImportData ( TInt32, TInt8 )

    IMPORT_C TIntImportData(TInt32aValue,
    TInt8aAddress
    )

    Imports new data to this object by initializing it to represent value block. This method will overwrite all current data of the block.

    ParameterDescription
    aValueValue which will be saved to the value block.
    aAddressAddress which will be saved to the value block.

    Returns: May return with one of the system wide error codes.

    ImportData ( const TDesC8 & )

    TInt ImportData(const TDesC8 &aBuf)

    IsValueBlock ( )

    TBool IsValueBlock()const

    NewL ( )

    IMPORT_C CMifareClassicDataBlock *NewL()[static]

    Creates a new instance of this class. May leave with one of the system wide error codes.

    Returns: Pointer to the newly created instance.

    NewL ( const CMifareClassicDataBlock & )

    IMPORT_C CMifareClassicDataBlock *NewL(const CMifareClassicDataBlock &aDataBlock)[static]

    Creates a new instance of this class by copying contents of already created object. May leave with one of the system wide error codes.

    ParameterDescription
    aDataBlockData block which content is copied to this object.

    Returns: Pointer to the newly created instance.

    NewL ( const TDesC8 & )

    IMPORT_C CMifareClassicDataBlock *NewL(const TDesC8 &aData)[static]

    Creates a new instance of this class by importing data from a descriptor. May leave with one of the system wide error codes.

    ParameterDescription
    aDataDescriptor from which data is imported to this object.

    Returns: Pointer to the newly created instance.

    NewL ( TInt32, TInt8 )

    IMPORT_C CMifareClassicDataBlock *NewL(TInt32aValue,
    TInt8aAddress
    )[static]

    Creates a new instance of this class by initializing it to represent value block. May leave with one of the system wide error codes.

    ParameterDescription
    aValueValue which will be saved to the value block.
    aAddressAddress which will be saved to the value block.

    Returns: Pointer to the newly created instance.

    NewLC ( )

    IMPORT_C CMifareClassicDataBlock *NewLC()[static]

    Creates a new instance of this class. May leave with one of the system wide error codes.

    Returns: Pointer to the newly created instance.

    NewLC ( const CMifareClassicDataBlock & )

    IMPORT_C CMifareClassicDataBlock *NewLC(const CMifareClassicDataBlock &aDataBlock)[static]

    Creates a new instance of this class by copying contents of already created object. May leave with one of the system wide error codes.

    ParameterDescription
    aDataBlockData block which content is copied to this object.

    Returns: Pointer to the newly created instance.

    NewLC ( const TDesC8 & )

    IMPORT_C CMifareClassicDataBlock *NewLC(const TDesC8 &aData)[static]

    Creates a new instance of this class by importing data from a descriptor. May leave with one of the system wide error codes.

    Returns: Pointer to the newly created instance.

    NewLC ( TInt32, TInt8 )

    IMPORT_C CMifareClassicDataBlock *NewLC(TInt32aValue,
    TInt8aAddress
    )[static]

    Creates a new instance of this class by initializing it to represent value block. May leave with one of the system wide error codes.

    ParameterDescription
    aValueValue which will be saved to the value block.
    aAddressAddress which will be saved to the value block.

    Returns: Pointer to the newly created instance.

    operator!= ( const CMifareClassicDataBlock & )

    IMPORT_C TBooloperator!=(const CMifareClassicDataBlock &aDataBlock)const

    Determines whether this CMifareClassicDataBlock is not equal with specified CMifareClassicDataBlock.

    ParameterDescription
    aDataBlockCMifareClassicDataBlock which is compared to this CMifareClassicDataBlock.

    Return Values

    EFalse If blocks are equal.
    ETrue If blocks are not equal.

    operator== ( const CMifareClassicDataBlock & )

    IMPORT_C TBooloperator==(const CMifareClassicDataBlock &aDataBlock)const

    Determines whether this CMifareClassicDataBlock is equal with specified CMifareClassicDataBlock.

    ParameterDescription
    aDataBlockCMifareClassicDataBlock which is compared to this CMifareClassicDataBlock.

    Return Values

    EFalse If block are not equal.
    ETrue If blocks are equal.