MNdefHandler Class Reference
#include
<mw/ndefhandler.h>
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.
Member Function Documentation
HandleError ( TInt )
void | HandleError | ( | TInt | aError | ) | [pure virtual] |
This method is called by CNdefConnection when a request can not be accomplished. Running this method should not take long.
Parameters |
---|
aError | Error 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 )
This method is called by CNdefConnection when a read record request has been completed. Running this method should not take long.
Parameters |
---|
aRecord | NDEF Record that was read from the peer. |
aPart | Which part of a NDEF Message this record is. |
ReadComplete ( CNdefMessage * )
This method is called by CNdefConnection when a read message request has been completed. Running this method should not take long.
Parameters |
---|
aMessage | NDEF Message that was read from the peer. |
ReadComplete ( const RPointerArray< CNdefMessage > & )
WriteComplete ( )
void | WriteComplete | ( | ) | [pure virtual] |
This method is called by CNdefConnection when a write request has been completed. Running this method should not take long.