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_C TBluetoothNameRecordWrapper ( 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 & aNameRecord for 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 TInt GetDeviceName ( 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 & aName is where the Device Name converted into Unicode format is to be stored
TBool & aIsComplete indicates whether the name is complete or partial.

GetDeviceNameLength()

IMPORT_C TInt GetDeviceNameLength ( ) 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 TInt GetFlags ( TDes8 & aDes ) const

Obtain the Flags from EIR if present.

Parameters

TDes8 & aDes a descriptor where the Flags is to be stored

GetFlagsLength()

IMPORT_C TInt GetFlagsLength ( ) 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 TInt GetServiceClassUuids ( 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 TInt GetTxPowerLevel ( TInt8 & aTxPowerLevel ) const

Retrieve the Transmission Power Level from EIR.

Parameters

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

GetVendorSpecificData(TDes8 &)

IMPORT_C TInt GetVendorSpecificData ( TDes8 & aDes ) const

Retrieve the vendor specific data from this EIR.

Parameters

TDes8 & aDes

GetVendorSpecificDataLength()

IMPORT_C TInt GetVendorSpecificDataLength ( ) 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]