CCollection Class Reference
class CCollection : public CBase
|
Collection of HID report descriptor A
CCollection
represents an individual collection within a HID report descriptor. Each collection may have a number of associated report fields (
CField
objects) and a number of child collection objects. The collections within a HID report descriptor form a tree structure, with a
CReportRoot
collection at the root. The tree is generated by
CParser
.
generichid.lib
-
Since
-
S60 v5.0
Constructor & Destructor Documentation
CCollection()
CCollection
|
(
|
)
|
[protected]
|
~CCollection()
~CCollection
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddCollectionL()
Called when a new collection object has been encountered in the report descriptor. This creates a new
CCollection
object and adds it to the current list
AddFieldL()
Called when a new field object has been encountered in the report descriptor. This creates a new field object and adds it the the current list
CollectionByIndex(TInt)
Returns a pointer to a specific collection from the list of collections
Parameters
TInt
aIndex
|
The index of the required collection
|
CollectionCount()
IMPORT_C
TInt
|
CollectionCount
|
(
|
)
|
const
|
Get number of collections
ConstructL()
void
|
ConstructL
|
(
|
)
|
[protected]
|
FieldByIndex(TInt)
IMPORT_C const
CField
*
|
FieldByIndex
|
(
|
TInt
|
aIndex
|
)
|
const
|
Returns a pointer to the field object at the given index within the field list
Parameters
TInt
aIndex
|
The offset within the current field list
|
FieldCount()
IMPORT_C
TInt
|
FieldCount
|
(
|
)
|
const
|
Gets numbers of field stored in collection
IsApplication()
IMPORT_C
TBool
|
IsApplication
|
(
|
)
|
const
|
Check if collection type is application
IsLogical()
IMPORT_C
TBool
|
IsLogical
|
(
|
)
|
const
|
Check if collection type is logical
IsNamedArray()
IMPORT_C
TBool
|
IsNamedArray
|
(
|
)
|
const
|
Check if collection type is name array
IsPhysical()
IMPORT_C
TBool
|
IsPhysical
|
(
|
)
|
const
|
Check if collection type is physical
IsReport()
IMPORT_C
TBool
|
IsReport
|
(
|
)
|
const
|
Check if collection type is report
IsUsageModifier()
IMPORT_C
TBool
|
IsUsageModifier
|
(
|
)
|
const
|
Check if collection type is usage modifier
IsUsageSwitch()
IMPORT_C
TBool
|
IsUsageSwitch
|
(
|
)
|
const
|
Check if collection type is usage switch
SetUsage(TInt)
void
|
SetUsage
|
(
|
TInt
|
aUsage
|
)
|
|
SetUsagePage(TInt)
void
|
SetUsagePage
|
(
|
TInt
|
aUsagePage
|
)
|
|
Usage()
IMPORT_C
TInt
|
Usage
|
(
|
)
|
const
|
UsagePage()
IMPORT_C
TInt
|
UsagePage
|
(
|
)
|
const
|
Member Enumerations Documentation
Enum TType
An enumerations giving the possible types of collection, as given in "USB Device Class Definition for Human Interface
Devices (HID)", Firmware Specification, Version 1.11, USB Implementers' Forum, June 2001.
Note that a TUint32 is used for
CCollection::iType
, as it is possible to have a vendor defined collection type that isn't included in this list.
Enumerators
EPhysical = 0x00
|
|
EApplication = 0x01
|
|
ELogical = 0x02
|
|
EReport = 0x03
|
|
ENamedArray = 0x04
|
|
EUsageSwitch = 0x05
|
|
EUsageModifier = 0x06
|
|
Member Data Documentation
RPointerArray< CCollection > iCollections
List of collections for the report descriptor
RPointerArray< CField > iFields
List of fields in the current collection
TInt
iUsagePage
TInt
|
iUsagePage
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.