#include <mw/nfctagdiscovery.h>
Link against: nfcdiscoveryservice.lib
class CNfcTagDiscovery : public CActive |
Public Member Functions | |
---|---|
~CNfcTagDiscovery() | |
IMPORT_C TInt | AddTagConnectionListener(MNfcTagConnectionListener &) |
IMPORT_C void | AddTagSubscriptionL(const CNfcTagSubscription &) |
IMPORT_C CNfcTagDiscovery * | NewL(RNfcServer &) |
IMPORT_C CNfcTagDiscovery * | NewLC(RNfcServer &) |
IMPORT_C void | RemoveTagConnectionListener() |
IMPORT_C void | RemoveTagSubscription() |
IMPORT_C CNfcTagSubscription * | TagSubscriptionL() |
Protected Member Functions | |
---|---|
virtual void | DoCancel() |
virtual void | RunL() |
Inherited Attributes | |
---|---|
CActive::iStatus |
Inherited Enumerations | |
---|---|
CActive:TPriority |
CNfcTagDiscovery provides the mechanism to discover NFC tags at the device's near field.
IMPORT_C TInt | AddTagConnectionListener | ( | MNfcTagConnectionListener & | aListener | ) |
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.
Parameters | |
---|---|
aListener | Listener to be added. |
KErrAlreadyExists | If listener already exists. |
KErrNone | If successful otherwise one of the system-wide errcodes. |
IMPORT_C void | AddTagSubscriptionL | ( | const CNfcTagSubscription & | aSubscription | ) |
Adds new Tag subscription to the NFC server.
KErrAlreadyExists, if CNfcTagSubscription is already added to NFC server.
Parameters | |
---|---|
aSubscription | A new subscription to be added. |
IMPORT_C CNfcTagDiscovery * | NewL | ( | RNfcServer & | aNfcServer | ) | [static] |
Creates a new instance of this class.
Parameters | |
---|---|
aNfcServer | Reference to NFC server. |
IMPORT_C CNfcTagDiscovery * | NewLC | ( | RNfcServer & | aNfcServer | ) | [static] |
Creates a new instance of this class.
Parameters | |
---|---|
aNfcServer | Reference to NFC server. |
IMPORT_C void | RemoveTagConnectionListener | ( | ) |
Removes MNfcTagConnectionListener object. After calling this method, all actions related to this listener will be canceled.
IMPORT_C void | RemoveTagSubscription | ( | ) |
Removes current Tag subscription from the NFC server.
IMPORT_C CNfcTagSubscription * | TagSubscriptionL | ( | ) |
Returns current Tag subscription from the NFC server.