MNdefHandler Class Reference

#include <mw/ndefhandler.h>

class MNdefHandler
Public Member Functions
pure virtual voidHandleError(TInt)
pure virtual voidReadComplete(CNdefRecord *, CNdefRecord::TNdefMessagePart)
pure virtual voidReadComplete(CNdefMessage *)
pure virtual voidReadComplete(const RPointerArray< CNdefMessage > &)
pure virtual voidWriteComplete()

Detailed Description

Callback interface for a class that wishes to handle NDEF Records/Messages.

ReadComplete is called, when reading of NDEF is completed. WriteComplete is called, when writing of NDEF is completed. HandleError is called, if something has failed during reading or writing.

Since
S60 ?S60_version

Member Function Documentation

HandleError ( TInt )

voidHandleError(TIntaError)[pure virtual]

This method is called by CNdefConnection when a request can not be accomplished. Running this method should not take long.

Since
S60 ?S60_version
Parameters
aErrorError code related to the problem. Possible values for aError:KErrAccessDenied, when reading or writing is not allowed (Eg. Authentication keys are not correct ).KErrEof when tag is not in field or Tag unexpectedly ended.KErrServerTerminated, if client's connection to the server is terminated.

ReadComplete ( CNdefRecord *, CNdefRecord::TNdefMessagePart )

voidReadComplete(CNdefRecord *aRecord,
CNdefRecord::TNdefMessagePartaPart
)[pure virtual]

This method is called by CNdefConnection when a read record request has been completed. Running this method should not take long.

Since
S60 ?S60_version
Parameters
aRecordNDEF Record that was read from the peer.
aPartWhich part of a NDEF Message this record is.

ReadComplete ( CNdefMessage * )

voidReadComplete(CNdefMessage *aMessage)[pure virtual]

This method is called by CNdefConnection when a read message request has been completed. Running this method should not take long.

Since
S60 ?S60_version
Parameters
aMessageNDEF Message that was read from the peer.

ReadComplete ( const RPointerArray< CNdefMessage > & )

voidReadComplete(const RPointerArray< CNdefMessage > &aMessages)[pure virtual]

WriteComplete ( )

voidWriteComplete()[pure virtual]

This method is called by CNdefConnection when a write request has been completed. Running this method should not take long.

Since
S60 ?S60_version