TReportUtils Class Reference

class TReportUtils

HID report base object

Base class for report translator and report generator. Contains only static functions.

generichid.lib
Since
S60 v5.0

Member Functions Documentation

GetIndexOfUsage(const CField *, TInt, TInt &)

TBool GetIndexOfUsage ( const CField * aField,
TInt aUsageId,
TInt & aUsageIndex
) [static]

Find the index within the usages for a field of a given usage ID.

Since
S60 v5.0

Parameters

const CField * aField Pointer to the field.
TInt aUsageId Usage ID to find.
TInt & aUsageIndex Reference to variable to receive the index.

ReadData(const TDesC8 &, const CField *, TInt, TInt &)

TInt ReadData ( const TDesC8 & aData,
const CField * aField,
TInt aIndex,
TInt & aValue
) [static]

Read a value from a field at a given index.

Since
S60 v5.0

Parameters

const TDesC8 & aData Buffer containing the HID report.
const CField * aField The field from which to read.
TInt aIndex Position in the field to read.
TInt & aValue Reference to variable to receive the value read from the field.

UsageAtIndex(const CField *, TInt)

TInt UsageAtIndex ( const CField * aField,
TInt aUsageIndex
) [static]

Find the usage ID at a given index within the usages for a field.

Since
S60 v5.0

Parameters

const CField * aField Pointer to the field.
TInt aUsageIndex The index.

WriteData(HBufC8 &, const CField *, TInt, TInt)

TInt WriteData ( HBufC8 & aData,
const CField * aField,
TInt aIndex,
TInt aValue
) [static]

Write a value to a field at a given index.

Since
S60 v5.0

Parameters

HBufC8 & aData Buffer containing the HID report.
const CField * aField The field in which to write.
TInt aIndex Position in the field to write.
TInt aValue Value to write to the field.