MNfcRawData Class Reference

#include <mw/nfcrawdata.h>

class MNfcRawData
Public Member Functions
pure virtual TUint ExportRawDataL(TDes8 &, TUint)
pure virtual TUint ImportRawDataL(const TDesC8 &, TUint)
pure virtual TUint SizeL()

Detailed Description

NFC raw data handling interface for importing/exporting data and querying the size of the data.

Since
S60 ?S60_version

Member Function Documentation

ExportRawDataL ( TDes8 &, TUint )

TUint ExportRawDataL(TDes8 &aBuf,
TUintaPos
)const [pure virtual]

Transforms this item into raw data. Writing is done by inserting, not by overwriting. Leave codes are to be defined within implementing classes because of context specific error cases.

Since
S60 ?S60_version
ParameterDescription
aBufDescriptor for a buffer to write raw data to.
aPosPosition to start writing.

Returns: Amount of bytes written.

ImportRawDataL ( const TDesC8 &, TUint )

TUint ImportRawDataL(const TDesC8 &aBuf,
TUintaPos
)[pure virtual]

Initializes this item from raw data. Leave codes are to be defined within implementing classes because of context specific error cases.

Since
S60 ?S60_version
ParameterDescription
aBufDescriptor for a buffer to read raw data from.
aPosPosition to start reading.

Returns: Amount of bytes read.

SizeL ( )

TUint SizeL()const [pure virtual]

Returns the size (bytes) of the item in NFC raw data format. Leave codes are to be defined within implementing classes because of context specific error cases.

Since
S60 ?S60_version

Returns: Amount of bytes this item takes in raw data format.