#include <bttypes.h>
class TBluetoothNameRecordWrapper |
Public Member Functions | |
---|---|
TBluetoothNameRecordWrapper(const TNameRecord &) | |
IMPORT_C TInt | GetDeviceName(TDes16 &, TBool &) |
IMPORT_C TInt | GetDeviceNameLength() |
IMPORT_C TInt | GetFlags(TDes8 &) |
IMPORT_C TInt | GetFlagsLength() |
IMPORT_C TInt | GetServiceClassUuids(RExtendedInquiryResponseUUIDContainer &) |
IMPORT_C TInt | GetTxPowerLevel(TInt8 &) |
IMPORT_C TInt | GetVendorSpecificData(TDes8 &) |
IMPORT_C TInt | GetVendorSpecificDataLength() |
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.
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
Parameter | Description |
---|---|
aNameRecord | for Device Name and Extended Inquiry Response |
Obtain the Device Name from inquiry response. This may be a complete or partial name depending on what is available.
Parameter | Description |
---|---|
aName | is where the Device Name converted into Unicode format is to be stored |
aIsComplete | indicates whether the name is complete or partial. |
Returns: an error code (KErrNotFound means no name is present in this EIR packet)
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.
Returns: the length of Device Name
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.
Returns: the length of Flags
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.
Returns: an error code
Retrieve the Transmission Power Level from EIR.
Parameter | Description |
---|---|
aTxPowerLevel | where the Transmission Power Level from this EIR is to be stored |
Returns: an error code (KErrNotFound means no Transmission Power Level is present in this EIR packet)
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.
Returns: the length of Manufacturer Specific Data