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
Public Member Functions
TBool GetIndexOfUsage(const CField *, TInt, TInt &)
TInt ReadData(const TDesC8 &, const CField *, TInt, TInt &)
TInt UsageAtIndex(const CField *, TInt)
TInt WriteData(HBufC8 &, const CField *, TInt, TInt)

Member Functions Documentation

GetIndexOfUsage(const CField *, TInt, TInt &)

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

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

Since
S60 v5.0

Parameters

const CField * aFieldPointer to the field.
TInt aUsageIdUsage ID to find.
TInt & aUsageIndexReference to variable to receive the index.

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

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

Read a value from a field at a given index.

Since
S60 v5.0

Parameters

const TDesC8 & aDataBuffer containing the HID report.
const CField * aFieldThe field from which to read.
TInt aIndexPosition in the field to read.
TInt & aValueReference to variable to receive the value read from the field.

UsageAtIndex(const CField *, TInt)

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

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

Since
S60 v5.0

Parameters

const CField * aFieldPointer to the field.
TInt aUsageIndexThe index.

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

TInt WriteData(HBufC8 &aData,
const CField *aField,
TIntaIndex,
TIntaValue
)[static]

Write a value to a field at a given index.

Since
S60 v5.0

Parameters

HBufC8 & aDataBuffer containing the HID report.
const CField * aFieldThe field in which to write.
TInt aIndexPosition in the field to write.
TInt aValueValue to write to the field.