TUsbStringDescriptor Class Reference

class TUsbStringDescriptor : public TUsbGenericDescriptor

String descriptor

See section 9.6.7 of the USB 2.0 specification.

Intended to be available to 3rd parties later

Inherits from

Constructor & Destructor Documentation

TUsbStringDescriptor()

IMPORT_CTUsbStringDescriptor()

Member Functions Documentation

Cast(TUsbGenericDescriptor *)

IMPORT_C TUsbStringDescriptor *Cast(TUsbGenericDescriptor *aOriginal)[static]

Parameters

TUsbGenericDescriptor * aOriginal

GetLangId(TInt)

IMPORT_C TIntGetLangId(TIntaIndex)const

For string descriptor zero, this function allows a means to iterate through the list of supported languages for strings on this device.

Parameters

TInt aIndexIndex into language ID table.

IsParent(TUsbGenericDescriptor &)

TBool IsParent(TUsbGenericDescriptor &aPotentialParent)[virtual]

Parameters

TUsbGenericDescriptor & aPotentialParent

IsPeer(TUsbGenericDescriptor &)

TBool IsPeer(TUsbGenericDescriptor &aPotentialPeer)[virtual]

Parameters

TUsbGenericDescriptor & aPotentialPeer

ParseL(TPtrC8 &, TUsbGenericDescriptor *)

TUsbStringDescriptor *ParseL(TPtrC8 &aUsbDes,
TUsbGenericDescriptor *aPreviousDesc
)[static]

Parameters

TPtrC8 & aUsbDes
TUsbGenericDescriptor * aPreviousDesc

StringData(TDes16 &)

IMPORT_C voidStringData(TDes16 &aString)const

Writes the string data into a Symbian descriptor of sufficient size.

Parameters

TDes16 & aStringThe Symbian descriptor that will have the string data written into it.