CNfcTagSubscription Class Reference

#include <mw/nfctagsubscription.h>

Link against: nfcdiscoveryservice.lib

class CNfcTagSubscription : public CBase

Inherits from

Detailed Description

Nfc Tag subscription

Since
S60 ?S60_version

Constructor & Destructor Documentation

~CNfcTagSubscription ( )

IMPORT_C~CNfcTagSubscription()

Destructor.

Member Function Documentation

AddConnectionModeL ( TNfcConnectionInfo::TNfcConnectionMode )

IMPORT_C voidAddConnectionModeL(TNfcConnectionInfo::TNfcConnectionModeaConnectionMode)

Adds new connection mode to this CNfcTagSubscription object.

May leave:
  • KErrAlreadyExists if specified connection already exists.

Parameters
aConnectionModeConnection mode, which will be added to this CNfcTagSubscription.

Count ( )

IMPORT_C TIntCount()const

Counts number of added connection modes of tthis CNfcTagSubscription.

Return Value
Number of connection modes.

GetConnectionModes ( RArray< TNfcConnectionInfo::TNfcConnectionMode > & )

IMPORT_C TIntGetConnectionModes(RArray< TNfcConnectionInfo::TNfcConnectionMode > &aArray)const

Returns array of connection modes.

Parameters
aArrayWill contain all connection modes, which are added to this CNfcTagSubscription.
Return Value
KErrNoMemory if there is no memory.

Return Values

KErrNone if all connection modes are successfully added to RArray.

NewL ( )

IMPORT_C CNfcTagSubscription *NewL()[static]

Creates a new instance of this class.

NewL ( const CNfcTagSubscription & )

IMPORT_C CNfcTagSubscription *NewL(const CNfcTagSubscription &aSubscription)[static]

Creates a new instance of this class.

Parameters
aSubscriptionSubscription, which content is copied to this object.

NewLC ( )

IMPORT_C CNfcTagSubscription *NewLC()[static]

Creates a new instance of this class.

NewLC ( const CNfcTagSubscription & )

IMPORT_C CNfcTagSubscription *NewLC(const CNfcTagSubscription &aSubscription)[static]

Creates a new instance of this class.

Parameters
aSubscriptionSubscription, which content is copied to this object.

RemoveAllConnectionModes ( )

IMPORT_C voidRemoveAllConnectionModes()

Removes all connection modes from this CNfcTagSubscription.

RemoveConnectionMode ( TNfcConnectionInfo::TNfcConnectionMode )

IMPORT_C voidRemoveConnectionMode(TNfcConnectionInfo::TNfcConnectionModeaConnectionMode)

Removes specified connection mode from this CNfcTagSubscription.

Parameters
aConnectionModeConnection mode, which will be removed from this CNfcTagSubscription.

operator!= ( const CNfcTagSubscription & )

IMPORT_C TBooloperator!=(const CNfcTagSubscription &aList)const

Determines whether this CNfcTagSubscription is not equal with specified CNfcTagSubscription.

Parameters
aListCNfcTagSubscription which is compared to this CNfcTagSubscription.

operator= ( const CNfcTagSubscription & )

IMPORT_C voidoperator=(const CNfcTagSubscription &aList)

Copies data from specified CNfcTagSubscription to this CNfcTagSubscription by replacing any existing data.

Parameters
aListCNfcTagSubscription, which is copied to this CNfcTagSubscription.

operator== ( const CNfcTagSubscription & )

IMPORT_C TBooloperator==(const CNfcTagSubscription &aList)const

Determines whether this CNfcTagSubscription is equal with specified CNfcTagSubscription.

Parameters
aListCNfcTagSubscription which is compared to this CNfcTagSubscription.