CNfcTagDiscovery Class Reference

#include <mw/nfctagdiscovery.h>

Link against: nfcdiscoveryservice.lib

class CNfcTagDiscovery : public CActive

Inherits from

Detailed Description

CNfcTagDiscovery provides the mechanism to discover NFC tags at the device's near field.

Since
S60 ?S60_version

Constructor & Destructor Documentation

~CNfcTagDiscovery ( )

IMPORT_C~CNfcTagDiscovery()

Destructor.

Member Function Documentation

AddTagConnectionListener ( MNfcTagConnectionListener & )

IMPORT_C TIntAddTagConnectionListener(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
aListenerListener to be added.

Return Values

KErrAlreadyExists If listener already exists.
KErrNone If successful otherwise one of the system-wide errcodes.

AddTagSubscriptionL ( const CNfcTagSubscription & )

IMPORT_C voidAddTagSubscriptionL(const CNfcTagSubscription &aSubscription)

Adds new Tag subscription to the NFC server.

May Leave:

Parameters
aSubscriptionA new subscription to be added.

DoCancel ( )

voidDoCancel()[protected, virtual]

Reimplemented from CActive::DoCancel()

See also: CActive

NewL ( RNfcServer & )

IMPORT_C CNfcTagDiscovery *NewL(RNfcServer &aNfcServer)[static]

Creates a new instance of this class.

Parameters
aNfcServerReference to NFC server.
Return Value
Pointer to the newly created instance.

NewLC ( RNfcServer & )

IMPORT_C CNfcTagDiscovery *NewLC(RNfcServer &aNfcServer)[static]

Creates a new instance of this class.

Parameters
aNfcServerReference to NFC server.
Return Value
Pointer to the newly created instance.

RemoveTagConnectionListener ( )

IMPORT_C voidRemoveTagConnectionListener()

Removes MNfcTagConnectionListener object. After calling this method, all actions related to this listener will be canceled.

RemoveTagSubscription ( )

IMPORT_C voidRemoveTagSubscription()

Removes current Tag subscription from the NFC server.

RunL ( )

voidRunL()[protected, virtual]

Reimplemented from CActive::RunL()

See also: CActive

TagSubscriptionL ( )

IMPORT_C CNfcTagSubscription *TagSubscriptionL()

Returns current Tag subscription from the NFC server.

Return Value
Pointer to NfcTagSubscription-object. May leave:KErrNotFound, if CNfcTagSubscription has not been added yet.