Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <btdevice.h>
Link against: btdevice.lib

Class BTDeviceNameConverter

class BTDeviceNameConverter;

Description

Utility class to convert between a wide TBTDeviceName and a narrow TBTDeviceName8.

Members

Defined in BTDeviceNameConverter:


Member functions


ToUnicodeL(const TBTDeviceName8 &)

IMPORT_C static TBTDeviceName ToUnicodeL(const TBTDeviceName8 &aName);

Description

Convert a narrow TBTDeviceName8 to a wide TBTDeviceName. Uses utf8->unicode conversion.

Parameters

const TBuf8 &aName

"The name to be converted"

Return value

TBuf

"The converted name"

Leave codes

"This

method will leave if an error occurs with the utf8->unicode conversion"


ToUTF8L(const TBTDeviceName &)

IMPORT_C static TBTDeviceName8 ToUTF8L(const TBTDeviceName &aName);

Description

Convert a wide TBTDeviceName to a narrow TBTDeviceName8. Uses unicode->utf8 conversion.

Parameters

const TBuf &aName

"The name to be converted"

Return value

TBuf8

"The converted name"

Leave codes

"This

method will leave if an error occurs with the unicode->utf8 conversion"