sl@0
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// e32test\digitiser\d_ldddigitisertest.inl
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifndef __KERNEL_MODE__
|
sl@0
|
19 |
inline TInt RLddDigitiserTest::Open()
|
sl@0
|
20 |
{
|
sl@0
|
21 |
return DoCreate(KLddName,TVersion(0,1,1),KNullUnit,NULL,NULL);
|
sl@0
|
22 |
}
|
sl@0
|
23 |
|
sl@0
|
24 |
inline TInt RLddDigitiserTest::registerHalHandler()
|
sl@0
|
25 |
{
|
sl@0
|
26 |
return DoControl(EADDHALENTRY);
|
sl@0
|
27 |
}
|
sl@0
|
28 |
|
sl@0
|
29 |
inline TInt RLddDigitiserTest::removeHalHandler()
|
sl@0
|
30 |
{
|
sl@0
|
31 |
return DoControl(EREMOVEHALENTRY);
|
sl@0
|
32 |
}
|
sl@0
|
33 |
|
sl@0
|
34 |
inline TInt RLddDigitiserTest::getRegisteredDeviceNumber()
|
sl@0
|
35 |
{
|
sl@0
|
36 |
return DoControl(EGETREGISTEREDDEVICENUMBER);
|
sl@0
|
37 |
}
|
sl@0
|
38 |
|
sl@0
|
39 |
inline TInt RLddDigitiserTest::initialiseHalData()
|
sl@0
|
40 |
{
|
sl@0
|
41 |
return DoControl(EINITIALISEHALDATA);
|
sl@0
|
42 |
}
|
sl@0
|
43 |
|
sl@0
|
44 |
inline TInt RLddDigitiserTest::getPointer3D()
|
sl@0
|
45 |
{
|
sl@0
|
46 |
return DoControl(EGET_EPOINTER3D);
|
sl@0
|
47 |
}
|
sl@0
|
48 |
|
sl@0
|
49 |
inline TInt RLddDigitiserTest::setPointer3D(TUint aPointer3D)
|
sl@0
|
50 |
{
|
sl@0
|
51 |
return DoControl(ESET_EPOINTER3D, (TAny *)aPointer3D);
|
sl@0
|
52 |
}
|
sl@0
|
53 |
|
sl@0
|
54 |
inline TInt RLddDigitiserTest::getPointer3DMaxProximity()
|
sl@0
|
55 |
{
|
sl@0
|
56 |
return DoControl(EGET_EPOINTERMAXPROXIMITY);
|
sl@0
|
57 |
}
|
sl@0
|
58 |
|
sl@0
|
59 |
inline TInt RLddDigitiserTest::setPointer3DMaxProximity(TUint aPointer3DMaxProximity)
|
sl@0
|
60 |
{
|
sl@0
|
61 |
return DoControl(ESET_EPOINTERMAXPROXIMITY, (TAny *)aPointer3DMaxProximity);
|
sl@0
|
62 |
}
|
sl@0
|
63 |
|
sl@0
|
64 |
inline TInt RLddDigitiserTest::getPointer3DThetaSupported()
|
sl@0
|
65 |
{
|
sl@0
|
66 |
return DoControl(EGET_EPOINTER3DTHETASUPPORTED);
|
sl@0
|
67 |
}
|
sl@0
|
68 |
|
sl@0
|
69 |
inline TInt RLddDigitiserTest::setPointer3DThetaSupported(TUint aPointer3DThetaSupported)
|
sl@0
|
70 |
{
|
sl@0
|
71 |
return DoControl(ESET_EPOINTER3DTHETASUPPORTED, (TAny *)aPointer3DThetaSupported);
|
sl@0
|
72 |
}
|
sl@0
|
73 |
|
sl@0
|
74 |
inline TInt RLddDigitiserTest::getPointer3DPhiSupported()
|
sl@0
|
75 |
{
|
sl@0
|
76 |
return DoControl(EGET_EPOINTER3DPHISUPPORTED);
|
sl@0
|
77 |
}
|
sl@0
|
78 |
|
sl@0
|
79 |
inline TInt RLddDigitiserTest::setPointer3DPhiSupported(TUint aPointer3DPhiSupported)
|
sl@0
|
80 |
{
|
sl@0
|
81 |
return DoControl(ESET_EPOINTER3DPHISUPPORTED, (TAny *)aPointer3DPhiSupported);
|
sl@0
|
82 |
}
|
sl@0
|
83 |
|
sl@0
|
84 |
inline TInt RLddDigitiserTest::getPointer3DRotationSupported()
|
sl@0
|
85 |
{
|
sl@0
|
86 |
return DoControl(EGET_EPOINTER3DROTATIONSUPPORTED);
|
sl@0
|
87 |
}
|
sl@0
|
88 |
|
sl@0
|
89 |
inline TInt RLddDigitiserTest::setPointer3DRotationSupported(TUint aPointer3DRotationSupported)
|
sl@0
|
90 |
{
|
sl@0
|
91 |
return DoControl(ESET_EPOINTER3DROTATIONSUPPORTED, (TAny *)aPointer3DRotationSupported);
|
sl@0
|
92 |
}
|
sl@0
|
93 |
|
sl@0
|
94 |
inline TInt RLddDigitiserTest::getPointer3DPressureSupported()
|
sl@0
|
95 |
{
|
sl@0
|
96 |
return DoControl(EGET_EPOINTER3DPRESSURESUPPORTED);
|
sl@0
|
97 |
}
|
sl@0
|
98 |
|
sl@0
|
99 |
inline TInt RLddDigitiserTest::setPointer3DPressureSupported(TUint aPointer3DPressureSupported)
|
sl@0
|
100 |
{
|
sl@0
|
101 |
return DoControl(ESET_EPOINTER3DPRESSURESUPPORTED, (TAny *)aPointer3DPressureSupported);
|
sl@0
|
102 |
}
|
sl@0
|
103 |
|
sl@0
|
104 |
inline TInt RLddDigitiserTest::getPointer3DProximityStep()
|
sl@0
|
105 |
{
|
sl@0
|
106 |
return DoControl(EGET_EPOINTER3DPROXIMITYSTEP);
|
sl@0
|
107 |
}
|
sl@0
|
108 |
|
sl@0
|
109 |
inline TInt RLddDigitiserTest::setPointer3DProximityStep(TUint aPointer3DProximityStep)
|
sl@0
|
110 |
{
|
sl@0
|
111 |
return DoControl(ESET_EPOINTER3DPROXIMITYSTEP, (TAny *)aPointer3DProximityStep);
|
sl@0
|
112 |
}
|
sl@0
|
113 |
|
sl@0
|
114 |
inline TInt RLddDigitiserTest::getPointerMaxPointers()
|
sl@0
|
115 |
{
|
sl@0
|
116 |
return DoControl(EGET_EPOINTER3DMAXPOINTERS);
|
sl@0
|
117 |
}
|
sl@0
|
118 |
|
sl@0
|
119 |
inline TInt RLddDigitiserTest::setPointerMaxPointers(TUint aPointerMaxPointers)
|
sl@0
|
120 |
{
|
sl@0
|
121 |
return DoControl(ESET_EPOINTER3DMAXPOINTERS, (TAny *)aPointerMaxPointers);
|
sl@0
|
122 |
}
|
sl@0
|
123 |
|
sl@0
|
124 |
inline TInt RLddDigitiserTest::getPointerNumberOfPointers()
|
sl@0
|
125 |
{
|
sl@0
|
126 |
return DoControl(EGET_EPOINTER3DNUMBEROFPOINTERS);
|
sl@0
|
127 |
}
|
sl@0
|
128 |
|
sl@0
|
129 |
inline TInt RLddDigitiserTest::setPointerNumberOfPointers(TUint aPointerNumberOfPointers)
|
sl@0
|
130 |
{
|
sl@0
|
131 |
return DoControl(ESET_EPOINTER3DNUMBEROFPOINTERS, (TAny *)aPointerNumberOfPointers);
|
sl@0
|
132 |
}
|
sl@0
|
133 |
|
sl@0
|
134 |
inline TInt RLddDigitiserTest::getPointer3DMaxPressure()
|
sl@0
|
135 |
{
|
sl@0
|
136 |
return DoControl(EGET_EPOINTER3DMAXPRESSURE);
|
sl@0
|
137 |
}
|
sl@0
|
138 |
|
sl@0
|
139 |
inline TInt RLddDigitiserTest::setPointer3DMaxPressure(TUint aPointer3DMaxPressure)
|
sl@0
|
140 |
{
|
sl@0
|
141 |
return DoControl(ESET_EPOINTER3DMAXPRESSURE, (TAny *)aPointer3DMaxPressure);
|
sl@0
|
142 |
}
|
sl@0
|
143 |
|
sl@0
|
144 |
inline TInt RLddDigitiserTest::getPointer3DPressureStep()
|
sl@0
|
145 |
{
|
sl@0
|
146 |
return DoControl(EGET_EPOINTER3DPRESSURESTEP);
|
sl@0
|
147 |
}
|
sl@0
|
148 |
|
sl@0
|
149 |
inline TInt RLddDigitiserTest::setPointer3DPressureStep(TUint aPointer3DPressureStep)
|
sl@0
|
150 |
{
|
sl@0
|
151 |
return DoControl(ESET_EPOINTER3DPRESSURESTEP, (TAny *)aPointer3DPressureStep);
|
sl@0
|
152 |
}
|
sl@0
|
153 |
#endif
|
sl@0
|
154 |
|
sl@0
|
155 |
|