CField Class Reference

class CField : public CBase

HID report field presentation Represents an individual field in a HID report, ie. the attributes of an input, output or feature Main item defined in the HID report descriptor.

The CField contains information such as the usage IDs sent in the the report, the type of the report (input, output or feature) and the logical range.

generichid.lib
Since
S60 v5.0

Inherits from

Public Member Functions
~CField()
IMPORT_C voidAddUsageL(TInt)
IMPORT_C TUint32Attributes()
IMPORT_C voidClearUsageList()
IMPORT_C TIntCount()
IMPORT_C TIntDesignatorIndex()
IMPORT_C TIntDesignatorMax()
IMPORT_C TIntDesignatorMin()
IMPORT_C TBoolHasUsage(TInt)
IMPORT_C TBoolIsArray()
IMPORT_C TBoolIsConstant()
IMPORT_C TBoolIsData()
IMPORT_C TBoolIsFeature()
IMPORT_C TBoolIsInReport(TInt)
IMPORT_C TBoolIsInput()
IMPORT_C TBoolIsOutput()
IMPORT_C TBoolIsVariable()
IMPORT_C TIntLastUsage()
IMPORT_C TIntLogicalMax()
IMPORT_C TIntLogicalMin()
CField *NewL()
CField *NewLC()
IMPORT_C TIntOffset()
IMPORT_C TIntPhysicalMax()
IMPORT_C TIntPhysicalMin()
IMPORT_C TIntReportId()
IMPORT_C voidSetAttributes(TUint32)
IMPORT_C voidSetCount(TInt)
IMPORT_C voidSetDesignatorIndex(TInt)
IMPORT_C voidSetDesignatorMax(TInt)
IMPORT_C voidSetDesignatorMin(TInt)
IMPORT_C voidSetDesignatorRange(TInt, TInt)
IMPORT_C voidSetLogicalMax(TInt)
IMPORT_C voidSetLogicalMin(TInt)
IMPORT_C voidSetLogicalRange(TInt, TInt)
IMPORT_C voidSetOffset(TInt)
IMPORT_C voidSetPhysicalMax(TInt)
IMPORT_C voidSetPhysicalMin(TInt)
IMPORT_C voidSetPhysicalRange(TInt, TInt)
IMPORT_C voidSetReportId(TInt)
IMPORT_C voidSetSize(TInt)
IMPORT_C voidSetStringIndex(TInt)
IMPORT_C voidSetStringMax(TInt)
IMPORT_C voidSetStringMin(TInt)
IMPORT_C voidSetStringRange(TInt, TInt)
IMPORT_C voidSetType(const TType &)
IMPORT_C voidSetUnit(TInt)
IMPORT_C voidSetUnitExponent(TInt)
IMPORT_C voidSetUsageMax(TInt)
IMPORT_C voidSetUsageMin(TInt)
IMPORT_C voidSetUsagePage(TInt)
IMPORT_C voidSetUsageRange(TInt, TInt)
IMPORT_C TIntSize()
IMPORT_C TIntStringIndex()
IMPORT_C TIntStringMax()
IMPORT_C TIntStringMin()
IMPORT_C TTypeType()
IMPORT_C TIntUnit()
IMPORT_C TIntUnitExponent()
IMPORT_C TIntUsage(TInt)
IMPORT_C TArray< TInt >UsageArray()
IMPORT_C TIntUsageCount()
IMPORT_C TIntUsageMax()
IMPORT_C TIntUsageMin()
IMPORT_C TIntUsagePage()
Private Member Functions
CField()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTType { EInput, EOutput, EFeature }
Private Attributes
TUint32 iAttributes
TInt iCount
TInt iDesignatorIndex
TInt iDesignatorMax
TInt iDesignatorMin
TInt iLogicalMax
TInt iLogicalMin
TInt iPhysicalMax
TInt iPhysicalMin
TInt iPos
TInt iReportId
TInt iSize
TInt iStringIndex
TInt iStringMax
TInt iStringMin
TType iType
TInt iUnit
TInt iUnitExponent
RArray< TInt >iUsageList
TInt iUsageMax
TInt iUsageMin
TInt iUsagePage

Constructor & Destructor Documentation

CField()

CField()[private]

~CField()

~CField()[virtual]

Destructor.

Member Functions Documentation

AddUsageL(TInt)

IMPORT_C voidAddUsageL(TIntaUsage)

Add usage

Since
S60 v5.0

Parameters

TInt aUsageusage to be added

Attributes()

IMPORT_C TUint32Attributes()const

Return attributes

Since
S60 v5.0

ClearUsageList()

IMPORT_C voidClearUsageList()

Clear usage list

Since
S60 v5.0

Count()

IMPORT_C TIntCount()const

Return count

Since
S60 v5.0

DesignatorIndex()

IMPORT_C TIntDesignatorIndex()const

Return Designator index

Since
S60 v5.0

DesignatorMax()

IMPORT_C TIntDesignatorMax()const

Return designator maximium

Since
S60 v5.0

DesignatorMin()

IMPORT_C TIntDesignatorMin()const

Return designator minimium

Since
S60 v5.0

HasUsage(TInt)

IMPORT_C TBoolHasUsage(TIntaUsage)const

Check if usage exsist

Since
S60 v5.0

Parameters

TInt aUsageUsage id

IsArray()

IMPORT_C TBoolIsArray()const

Return array status

Since
S60 v5.0

IsConstant()

IMPORT_C TBoolIsConstant()const

Return constant status

Since
S60 v5.0

IsData()

IMPORT_C TBoolIsData()const

Return data status

Since
S60 v5.0

IsFeature()

IMPORT_C TBoolIsFeature()const

Return feature status

Since
S60 v5.0

IsInReport(TInt)

IMPORT_C TBoolIsInReport(TIntaReportId)const

Check if reportid is in report

Since
S60 v5.0

Parameters

TInt aReportIdreport id

IsInput()

IMPORT_C TBoolIsInput()const

Return input status

Since
S60 v5.0

IsOutput()

IMPORT_C TBoolIsOutput()const

Return output status

Since
S60 v5.0

IsVariable()

IMPORT_C TBoolIsVariable()const

Return variable status

Since
S60 v5.0

LastUsage()

IMPORT_C TIntLastUsage()const

Return last usage

Since
S60 v5.0

LogicalMax()

IMPORT_C TIntLogicalMax()const

Return logical maximum

Since
S60 v5.0

LogicalMin()

IMPORT_C TIntLogicalMin()const

Return logical minimium

Since
S60 v5.0

NewL()

CField *NewL()[static]

NewLC()

CField *NewLC()[static]

Offset()

IMPORT_C TIntOffset()const

Return offset

Since
S60 v5.0

PhysicalMax()

IMPORT_C TIntPhysicalMax()const

Return Physical max

Since
S60 v5.0

PhysicalMin()

IMPORT_C TIntPhysicalMin()const

Return Physical minimum

Since
S60 v5.0

ReportId()

IMPORT_C TIntReportId()const

Return report id

Since
S60 v5.0

SetAttributes(TUint32)

IMPORT_C voidSetAttributes(TUint32aAttributes)

Set attributes

Since
S60 v5.0

Parameters

TUint32 aAttributesattributes to be set

SetCount(TInt)

IMPORT_C voidSetCount(TIntaCount)

Set count

Since
S60 v5.0

Parameters

TInt aCountCount to be set

SetDesignatorIndex(TInt)

IMPORT_C voidSetDesignatorIndex(TIntaValue)

Set Designator index

Since
S60 v5.0

Parameters

TInt aValueDesignator index value

SetDesignatorMax(TInt)

IMPORT_C voidSetDesignatorMax(TIntaValue)

Set designator maximium value

Since
S60 v5.0

Parameters

TInt aValuedesignator maximium value

SetDesignatorMin(TInt)

IMPORT_C voidSetDesignatorMin(TIntaValue)

Set designator minimium

Since
S60 v5.0

Parameters

TInt aValuedesignator minimum value

SetDesignatorRange(TInt, TInt)

IMPORT_C voidSetDesignatorRange(TIntaMin,
TIntaMax
)

Set designator range

Since
S60 v5.0

Parameters

TInt aMindesignator range minimium value
TInt aMaxdesignator range maximum value

SetLogicalMax(TInt)

IMPORT_C voidSetLogicalMax(TIntaMax)

Set logical maximum

Since
S60 v5.0

Parameters

TInt aMaxlogical maximum to be used

SetLogicalMin(TInt)

IMPORT_C voidSetLogicalMin(TIntaMin)

Set logical minimium

Since
S60 v5.0

Parameters

TInt aMinLogical minimium to be set

SetLogicalRange(TInt, TInt)

IMPORT_C voidSetLogicalRange(TIntaMin,
TIntaMax
)

Set Logical range

Since
S60 v5.0

Parameters

TInt aMinlogical range minimium value
TInt aMaxlogical range maximum value

SetOffset(TInt)

IMPORT_C voidSetOffset(TIntaOffset)

Set offset

Since
S60 v5.0

Parameters

TInt aOffsetoffset to be set

SetPhysicalMax(TInt)

IMPORT_C voidSetPhysicalMax(TIntaValue)

Set Physical maximum

Since
S60 v5.0

Parameters

TInt aValuephysical maximum value

SetPhysicalMin(TInt)

IMPORT_C voidSetPhysicalMin(TIntaValue)

Set physical minimium

Since
S60 v5.0

Parameters

TInt aValuephysical minimium value

SetPhysicalRange(TInt, TInt)

IMPORT_C voidSetPhysicalRange(TIntaMin,
TIntaMax
)

Set Physical range

Since
S60 v5.0

Parameters

TInt aMinphysical range minimium value
TInt aMaxphysical range maximum value

SetReportId(TInt)

IMPORT_C voidSetReportId(TIntaReportId)

Set Report ID

Since
S60 v5.0

Parameters

TInt aReportIdreport id to be set

SetSize(TInt)

IMPORT_C voidSetSize(TIntaSize)

Set size

Since
S60 v5.0

Parameters

TInt aSizesize to be set

SetStringIndex(TInt)

IMPORT_C voidSetStringIndex(TIntaValue)

Set string index

Since
S60 v5.0

Parameters

TInt aValuestring index

SetStringMax(TInt)

IMPORT_C voidSetStringMax(TIntaValue)

Set string maximum value

Since
S60 v5.0

Parameters

TInt aValuestring maximum value to be set

SetStringMin(TInt)

IMPORT_C voidSetStringMin(TIntaValue)

Set string minimium value

Since
S60 v5.0

Parameters

TInt aValuestring minimium value

SetStringRange(TInt, TInt)

IMPORT_C voidSetStringRange(TIntaMin,
TIntaMax
)

Set string range

Since
S60 v5.0

Parameters

TInt aMinstring range minimium value
TInt aMaxstring range maximum value

SetType(const TType &)

IMPORT_C voidSetType(const TType &aType)

Set type

Since
S60 v5.0

Parameters

const TType & aTypetype of field

SetUnit(TInt)

IMPORT_C voidSetUnit(TIntaValue)

Set unit value

Since
S60 v5.0

Parameters

TInt aValueunit value

SetUnitExponent(TInt)

IMPORT_C voidSetUnitExponent(TIntaValue)

Set unit exponent

Since
S60 v5.0

Parameters

TInt aValueunit exponent valut to be set

SetUsageMax(TInt)

IMPORT_C voidSetUsageMax(TIntaMax)

Set usage maximum

Since
S60 v5.0

Parameters

TInt aMaxusage max to be set

SetUsageMin(TInt)

IMPORT_C voidSetUsageMin(TIntaMin)

Set usage min

Since
S60 v5.0

Parameters

TInt aMinusage minimium to be set.

SetUsagePage(TInt)

IMPORT_C voidSetUsagePage(TIntaUsagePage)

Set usage page

Since
S60 v5.0

Parameters

TInt aUsagePageusagepage to be set

SetUsageRange(TInt, TInt)

IMPORT_C voidSetUsageRange(TIntaMin,
TIntaMax
)

Set Usage range

Since
S60 v5.0

Parameters

TInt aMinusage range minimium value
TInt aMaxusage range maximum value

Size()

IMPORT_C TIntSize()const

Return size

Since
S60 v5.0

StringIndex()

IMPORT_C TIntStringIndex()const

Return string index

Since
S60 v5.0

StringMax()

IMPORT_C TIntStringMax()const

Return string maximum

Since
S60 v5.0

StringMin()

IMPORT_C TIntStringMin()const

Return string minimum

Since
S60 v5.0

Type()

IMPORT_C TTypeType()const

Return type

Since
S60 v5.0

Unit()

IMPORT_C TIntUnit()const

Return unit

Since
S60 v5.0

UnitExponent()

IMPORT_C TIntUnitExponent()const

Return unit exponent

Since
S60 v5.0

Usage(TInt)

IMPORT_C TIntUsage(TIntaIndex)const

Return usage

Since
S60 v5.0

Parameters

TInt aIndexusage array index

UsageArray()

IMPORT_C TArray< TInt >UsageArray()const

Return usage array

Since
S60 v5.0

UsageCount()

IMPORT_C TIntUsageCount()const

Return usage count

Since
S60 v5.0

UsageMax()

IMPORT_C TIntUsageMax()const

Return usage max

Since
S60 v5.0

UsageMin()

IMPORT_C TIntUsageMin()const

Return usage min

Since
S60 v5.0

UsagePage()

IMPORT_C TIntUsagePage()const

Set Report root

Since
S60 v5.0

Member Enumerations Documentation

Enum TType

Enumerators

EInput
EOutput
EFeature

Member Data Documentation

TUint32 iAttributes

TUint32 iAttributes[private]

Flags associated with a main item (e.g. "array")

TInt iCount

TInt iCount[private]

Number of items in the report field (G)

TInt iDesignatorIndex

TInt iDesignatorIndex[private]

Body part used for a control (L)

TInt iDesignatorMax

TInt iDesignatorMax[private]

Ending designator index (L)

TInt iDesignatorMin

TInt iDesignatorMin[private]

Starting designator index (L)

TInt iLogicalMax

TInt iLogicalMax[private]

Maximum extent value in logical units (G)

TInt iLogicalMin

TInt iLogicalMin[private]

Minimum extent value in logical units (G)

TInt iPhysicalMax

TInt iPhysicalMax[private]

Maximum physical extent for a variable item (G)

TInt iPhysicalMin

TInt iPhysicalMin[private]

Minimum physical extent for a variable item (G)

TInt iPos

TInt iPos[private]

Field offset (in bits) from start of report

TInt iReportId

TInt iReportId[private]

ID for the HID report containing this field (G)

TInt iSize

TInt iSize[private]

Bit size of each item in the current field (G)

TInt iStringIndex

TInt iStringIndex[private]

String associated with a control (L)

TInt iStringMax

TInt iStringMax[private]

Last string index for a group of strings (L)

TInt iStringMin

TInt iStringMin[private]

First string index for a group of strings (L)

TType iType

TType iType[private]

Input, output or feature report

TInt iUnit

TInt iUnit[private]

Unit value (G)

TInt iUnitExponent

TInt iUnitExponent[private]

Value of the unit exponent in base 10 (G)

RArray< TInt > iUsageList

RArray< TInt >iUsageList[private]

The usage indexes associated with this field (G)

TInt iUsageMax

TInt iUsageMax[private]

Ending usage associated with array / bitmap (L)L)

TInt iUsageMin

TInt iUsageMin[private]

Starting usage associated with array / bitmap (L)

TInt iUsagePage

TInt iUsagePage[private]

The usage page this field is associated with (G)