CNfcTagDiscovery Class Reference
#include
<mw/nfctagdiscovery.h>
Link against: nfcdiscoveryservice.lib
class CNfcTagDiscovery : public CActive |
Protected Member Functions |
---|
virtual void | DoCancel() |
virtual void | RunL() |
Detailed Description
CNfcTagDiscovery provides the mechanism to discover NFC tags at the device's near field.
Constructor & Destructor Documentation
~CNfcTagDiscovery ( )
IMPORT_C | ~CNfcTagDiscovery | ( | ) | |
Member Function Documentation
AddTagConnectionListener ( MNfcTagConnectionListener & )
Adds a new MNfcTagConnectionListener object to receive notification, when specified tag has detected in the proximity of the device. Only one listener can be added at time. The MNfcTagConnectionListener must be added before calling any other method of this interface.
Parameter | Description | aListener | Listener to be added. |
Return Values
KErrAlreadyExists |
If listener already exists.
|
KErrNone |
If successful otherwise one of the system-wide errcodes.
|
AddTagSubscriptionL ( const CNfcTagSubscription & )
Adds new Tag subscription to the NFC server.
Parameter | Description | aSubscription | A new subscription to be added. |
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.
RemoveTagConnectionListener ( )
IMPORT_C void | RemoveTagConnectionListener | ( | ) | |
RemoveTagSubscription ( )
IMPORT_C void | RemoveTagSubscription | ( | ) | |
Removes current Tag subscription from the NFC server.
RunL ( )
void | RunL | ( | ) | [protected, virtual] |
TagSubscriptionL ( )
Returns current Tag subscription from the NFC server.
Returns: Pointer to NfcTagSubscription-object. May leave:KErrNotFound, if CNfcTagSubscription has not been added yet.