#include <mw/ndefrecord.h>
class CNdefRecord : public CBase |
Public Member Enumerations | |
---|---|
enum | TNdefMessagePart { ENdefMessageBegin, ENdefMessageMiddle, ENdefMessageEnd, ENdefMessageSingle } |
enum | TNdefRecordChunk { ENotChunked, EChunkBegin, EChunkMiddle, EChunkEnd } |
enum | TNdefRecordFlag { EMessageBegin, EMessageEnd, EChunk, EShortRecord, EIdLength } |
enum | TNdefRecordTnf { EEmpty, ENfcWellKnown, EMime, EUri, ..., EReserved } |
NFC Forum defined NDEF record.
?more_complete_description
IMPORT_C void | AppendPayloadL | ( | const TDesC8 & | aBuf | ) |
Appends payload to the NDEF record. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aBuf | 8-bit descriptor containing the payload. |
IMPORT_C void | AppendPayloadL | ( | const CNdefMessage & | aMessage | ) |
Appends binary presentation of a NDEF Message to the payload of this NDEF record. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aMessage | NDEF Message |
IMPORT_C CNdefMessage * | ConstructNestedNdefMessageL | ( | TUint | aPos | ) | const |
Constructs a new NDEF Message from the payload of this NDEF record. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aPos | Byte position to start reading from. |
Returns: Pointer to the newly created NDEF Message.
IMPORT_C CNdefRecord::TNdefRecordChunk | GetChunk | ( | ) | const |
Tells whether payload is a chunk or not.
Returns: Chunking information for this record.
IMPORT_C const TDesC8 & | GetId | ( | ) | const |
Gets the identification string.
Returns: 8-bit descriptor containing the identifier string.
IMPORT_C CNdefRecord::TNdefMessagePart | GetMessagePart | ( | ) | const |
Returns the position of the record in a message.
Returns: Position in a message
IMPORT_C const TDesC8 & | GetPayload | ( | ) | const |
Returns a 8-bit descriptor which points to the payload of this NDEF record.
Returns: 8-bit descriptor containing the payload.
IMPORT_C TUint | GetPayloadSize | ( | ) | const |
Returns the size of the payload in bytes.
Returns: Size of payload in bytes.
IMPORT_C CNdefRecord::TNdefRecordTnf | GetTnf | ( | ) | const |
Returns the Type Name Format of the NDEF record.
Returns: Type Name Format
IMPORT_C const TDesC8 & | GetType | ( | ) | const |
Gets the type string.
Returns: 8-bit descriptor containing the type string.
IMPORT_C CNdefRecord * | NewL | ( | TNdefRecordTnf | aTnf = EEmpty, |
TNdefRecordChunk | aChunk = ENotChunked | |||
) | [static] |
Creates a new instance of this class. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aTnf | Type Name Format. |
aChunk | Which part of a chunk series this record is. |
Returns: Pointer to the newly created instance.
IMPORT_C CNdefRecord * | NewL | ( | TNdefRecordTnf | aTnf, |
const TDesC8 & | aType, | |||
TNdefRecordChunk | aChunk = ENotChunked | |||
) | [static] |
Creates a new instance of this class. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aTnf | Type Name Format. |
aType | Type string. |
aChunk | Which part of a chunk series this record is. |
Returns: Pointer to the newly created instance.
IMPORT_C CNdefRecord * | NewLC | ( | TNdefRecordTnf | aTnf = EEmpty, |
TNdefRecordChunk | aChunk = ENotChunked | |||
) | [static] |
Creates a new instance of this class and leaves a pointer to it into the CleanupStack. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aTnf | Type Name Format. |
aChunk | Which part of a chunk series this record is. |
Returns: Pointer to the newly created instance.
IMPORT_C CNdefRecord * | NewLC | ( | TNdefRecordTnf | aTnf, |
const TDesC8 & | aType, | |||
TNdefRecordChunk | aChunk = ENotChunked | |||
) | [static] |
Creates a new instance of this class and leaves a pointer to it into the CleanupStack. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aTnf | Type Name Format. |
aType | Type string. |
aChunk | Which part of a chunk series this record is. |
Returns: Pointer to the newly created instance.
IMPORT_C void | SetIdL | ( | const TDesC8 & | aId | ) |
Sets the identification string. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aId | 8-bit descriptor containing the identifier string. |
IMPORT_C void | SetMessagePart | ( | TNdefMessagePart | aPart | ) |
Sets the position of the record in a message. Note that this does not check whether message begin/end and chunking flags are legally combined.
Parameter | Description |
---|---|
aPart | Message part |
IMPORT_C void | SetTypeL | ( | const TDesC8 & | aType | ) |
Sets the type string. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aType | 8-bit descriptor containing the type string. |