TBluetoothNameRecordWrapper Class Reference

class TBluetoothNameRecordWrapper

Extended Inquiry Response Class This class takes a reference from inquiry result, which could hold both local name and Extended Inquiry Response. It provides API to parse and return the local name and data for any Extended Inquiry Response tag. To get Device Name, Manufacturer Specific Data or Flags, firstly getting length of the data, and then allocating a suitable buffer, which is where the data will be placed.

Constructor & Destructor Documentation

TBluetoothNameRecordWrapper(const TNameRecord &)

IMPORT_CTBluetoothNameRecordWrapper(const TNameRecord &aNameRecord)[explicit]

Constructs an TBluetoothNameRecordWrapper object from an TNameRecord object. The reference of aNameRecord is stored in the object. This will contain sensible data only if KHostResEir was used in the Inquiry

Parameters

const TNameRecord & aNameRecordfor Device Name and Extended Inquiry Response

Member Functions Documentation

AddUuids128(RExtendedInquiryResponseUUIDContainer &, TPtrC8 &)

TInt AddUuids128(RExtendedInquiryResponseUUIDContainer &aEIRContainer,
TPtrC8 &aUuids
)const [private]

Parameters

RExtendedInquiryResponseUUIDContainer & aEIRContainer
TPtrC8 & aUuids

AddUuids16(RExtendedInquiryResponseUUIDContainer &, TPtrC8 &)

TInt AddUuids16(RExtendedInquiryResponseUUIDContainer &aEIRContainer,
TPtrC8 &aUuids
)const [private]

Parameters

RExtendedInquiryResponseUUIDContainer & aEIRContainer
TPtrC8 & aUuids

GetDeviceName(TDes16 &, TBool &)

IMPORT_C TIntGetDeviceName(TDes16 &aName,
TBool &aIsComplete
)const

Obtain the Device Name from inquiry response. This may be a complete or partial name depending on what is available.

Parameters

TDes16 & aNameis where the Device Name converted into Unicode format is to be stored
TBool & aIsCompleteindicates whether the name is complete or partial.

GetDeviceNameLength()

IMPORT_C TIntGetDeviceNameLength()const

Obtain the length for Device Name in EIR if present. This function should be called before GetDeviceName() to initialize size of the buffer, whose reference will be passed into GetDeviceName() as an argument.

GetFlags(TDes8 &)

IMPORT_C TIntGetFlags(TDes8 &aDes)const

Obtain the Flags from EIR if present.

Parameters

TDes8 & aDesa descriptor where the Flags is to be stored

GetFlagsLength()

IMPORT_C TIntGetFlagsLength()const

Obtain the length for Flags in EIR if present. This function should be called before GetFlags() to initialize size of the buffer, whose reference will be passed into GetFlags() as an argument.

GetServiceClassUuids(RExtendedInquiryResponseUUIDContainer &)

IMPORT_C TIntGetServiceClassUuids(RExtendedInquiryResponseUUIDContainer &aEIRContainer)const

Retrieve the full list of UUIDs contained in this EIR. Please note that all types of UUID will be merged together in the single array.

Parameters

RExtendedInquiryResponseUUIDContainer & aEIRContainer

GetTxPowerLevel(TInt8 &)

IMPORT_C TIntGetTxPowerLevel(TInt8 &aTxPowerLevel)const

Retrieve the Transmission Power Level from EIR.

Parameters

TInt8 & aTxPowerLevelwhere the Transmission Power Level from this EIR is to be stored

GetVendorSpecificData(TDes8 &)

IMPORT_C TIntGetVendorSpecificData(TDes8 &aDes)const

Retrieve the vendor specific data from this EIR.

Parameters

TDes8 & aDes

GetVendorSpecificDataLength()

IMPORT_C TIntGetVendorSpecificDataLength()const

Obtain the length for Manufacturer Specific Data in EIR if present. This function should be called before GetVendorSpecificData() to initialize size of the buffer, whose reference will be passed into GetVendorSpecificData() as an argument.

Member Data Documentation

TExtendedInquiryResponseDataCodec iEirCodec

TExtendedInquiryResponseDataCodec iEirCodec[private]

TUint32 iPadding1

TUint32 iPadding1[private]

TUint32 iPadding2

TUint32 iPadding2[private]