CNdefDiscovery Class Reference
#include
<mw/ndefdiscovery.h>
Link against: nfcdiscoveryservice.lib
| class CNdefDiscovery : public CActive |
Detailed Description
CNdefDiscovery provides the mechanism to discover NDEF messages, which are read from the NFC tags.
Constructor & Destructor Documentation
~CNdefDiscovery ( )
| IMPORT_C | ~CNdefDiscovery | ( | ) | |
Member Function Documentation
AddNdefMessageListener ( MNdefMessageListener & )
Adds a new MNdefMessageListener object to listen received NDEF-message actions. Only one listener can be added at the time. MNfcNdefListener must be added before calling any other method of this interface.
See also: ndefmessagelistener.h
| Parameter | Description | | aListener | Listener to be added. |
Return Values
| KErrAlreadyExists |
If listener already exists.
|
| KErrNone |
If successful, otherwise one of the system-wide errcodes.
|
AddNdefSubscription ( const CNdefRecord::TNdefRecordTnf, const TDesC8 & )
Adds NDEF-subscription to NFC server.
| Parameter | Description | | aTnf | TNF of the message the application is interested in. |
| aType | Type of the message the application is interested in. |
Return Values
| KErrBadHandle |
If MNdefMessageListener isn't added.
|
| KErrNone |
If successful, otherwise one of the system-wide errcodes.
|
DoCancel ( )
| void | DoCancel | ( | ) | [protected, virtual] |
NewL ( RNfcServer & )
Creates a new instance of this class.
| Parameter | Description | | aNfcServer | Reference to NFC server. |
Returns: Pointer to the newly created instance.
NewLC ( RNfcServer & )
Creates a new instance of this class.
| Parameter | Description | | aNfcServer | Reference to NFC server. |
Returns: Pointer to the newly created instance.
RemoveAllNdefSubscription ( )
| IMPORT_C void | RemoveAllNdefSubscription | ( | ) | |
Removes all NDEF subscription from the NFC server.
RemoveNdefMessageListener ( )
| IMPORT_C void | RemoveNdefMessageListener | ( | ) | |
Removes MNdefMessageListener object. After calling this method, all actions related to this listener will be canceled.
RemoveNdefSubscription ( const CNdefRecord::TNdefRecordTnf, const TDesC8 & )
Removes NDEF-subscription from the NFC server. If specified NDEF-subscription is not found, this method returns silently without any actions.
| Parameter | Description | | aTnf | TNF of the message. |
| aType | Type of the message. |
RunError ( TInt )
|
TInt
| RunError | ( | TInt | aError | ) | [protected, virtual] |
RunL ( )
| void | RunL | ( | ) | [protected, virtual] |
SendNdefMessageL ( const CNdefMessage & )
Sends NDEF message to NFC server to handle it. If contain of given message is unknown for NFC server confirmation query with warning message will be launched.
| Parameter | Description | | aMessage | Pointer to CNdefMessage, which will be handled in NFC server. |