Chameleon

Chameleon Svn Source Tree

Root/branches/mozodojo/i386/include/IOKit/hid/IOHIDElement.h

1/*
2 *
3 * @APPLE_LICENSE_HEADER_START@
4 *
5 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
6 *
7 * This file contains Original Code and/or Modifications of Original Code
8 * as defined in and that are subject to the Apple Public Source License
9 * Version 2.0 (the 'License'). You may not use this file except in
10 * compliance with the License. Please obtain a copy of the License at
11 * http://www.opensource.apple.com/apsl/ and read it before using this
12 * file.
13 *
14 * The Original Code and all software distributed under the License are
15 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
19 * Please see the License for the specific language governing rights and
20 * limitations under the License.
21 *
22 * @APPLE_LICENSE_HEADER_END@
23 */
24
25#ifndef _IOKIT_HID_IOHIDELEMENT_H
26#define _IOKIT_HID_IOHIDELEMENT_H
27
28#include <libkern/c++/OSArray.h>
29#include <libkern/c++/OSData.h>
30#include <IOKit/hid/IOHIDKeys.h>
31
32//===========================================================================
33// An object that describes a single HID element.
34
35class IOHIDElement: public OSObject
36{
37 OSDeclareAbstractStructors( IOHIDElement )
38
39 struct ExpansionData {
40 };
41 /*! @var reserved
42 Reserved for future use. (Internal use only) */
43 ExpansionData * _reserved;
44
45
46public:
47
48 virtual IOHIDElementCookie getCookie() = 0;
49 virtual IOHIDElement * getParentElement() = 0;
50 virtual OSArray * getChildElements() = 0;
51 virtual IOHIDElementType getType() = 0;
52 virtual IOHIDElementCollectionType getCollectionType() = 0;
53 virtual UInt32 getUsagePage() = 0;
54 virtual UInt32 getUsage() = 0;
55 virtual UInt32 getLogicalMin() = 0;
56 virtual UInt32 getLogicalMax() = 0;
57 virtual UInt32 getPhysicalMin() = 0;
58 virtual UInt32 getPhysicalMax() = 0;
59 virtual UInt32 getUnitExponent() = 0;
60 virtual UInt32 getUnit() = 0;
61 virtual UInt32 getReportSize() = 0;
62 virtual UInt32 getReportCount() = 0;
63 virtual UInt32 getReportID() = 0;
64 virtual UInt32 getFlags() = 0;
65 virtual AbsoluteTime getTimeStamp() = 0;
66 virtual UInt32 getValue() = 0;
67 virtual OSData * getDataValue() = 0;
68 virtual void setValue(UInt32 value) = 0;
69 virtual void setDataValue(OSData * value) = 0;
70
71 OSMetaClassDeclareReservedUnused(IOHIDElement, 0);
72 OSMetaClassDeclareReservedUnused(IOHIDElement, 1);
73 OSMetaClassDeclareReservedUnused(IOHIDElement, 2);
74 OSMetaClassDeclareReservedUnused(IOHIDElement, 3);
75 OSMetaClassDeclareReservedUnused(IOHIDElement, 4);
76 OSMetaClassDeclareReservedUnused(IOHIDElement, 5);
77 OSMetaClassDeclareReservedUnused(IOHIDElement, 6);
78 OSMetaClassDeclareReservedUnused(IOHIDElement, 7);
79 OSMetaClassDeclareReservedUnused(IOHIDElement, 8);
80 OSMetaClassDeclareReservedUnused(IOHIDElement, 9);
81 OSMetaClassDeclareReservedUnused(IOHIDElement, 10);
82 OSMetaClassDeclareReservedUnused(IOHIDElement, 11);
83 OSMetaClassDeclareReservedUnused(IOHIDElement, 12);
84 OSMetaClassDeclareReservedUnused(IOHIDElement, 13);
85 OSMetaClassDeclareReservedUnused(IOHIDElement, 14);
86 OSMetaClassDeclareReservedUnused(IOHIDElement, 15);
87 OSMetaClassDeclareReservedUnused(IOHIDElement, 16);
88 OSMetaClassDeclareReservedUnused(IOHIDElement, 17);
89 OSMetaClassDeclareReservedUnused(IOHIDElement, 18);
90 OSMetaClassDeclareReservedUnused(IOHIDElement, 19);
91 OSMetaClassDeclareReservedUnused(IOHIDElement, 20);
92 OSMetaClassDeclareReservedUnused(IOHIDElement, 21);
93 OSMetaClassDeclareReservedUnused(IOHIDElement, 22);
94 OSMetaClassDeclareReservedUnused(IOHIDElement, 23);
95 OSMetaClassDeclareReservedUnused(IOHIDElement, 24);
96 OSMetaClassDeclareReservedUnused(IOHIDElement, 25);
97 OSMetaClassDeclareReservedUnused(IOHIDElement, 26);
98 OSMetaClassDeclareReservedUnused(IOHIDElement, 27);
99 OSMetaClassDeclareReservedUnused(IOHIDElement, 28);
100 OSMetaClassDeclareReservedUnused(IOHIDElement, 29);
101 OSMetaClassDeclareReservedUnused(IOHIDElement, 30);
102 OSMetaClassDeclareReservedUnused(IOHIDElement, 31);
103
104};
105
106#endif /* !_IOKIT_HID_IOHIDELEMENT_H */
107

Archive Download this file

Revision: 1232