|
1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32test\digitiser\d_kerneldigitisertest.h |
|
15 // |
|
16 // |
|
17 |
|
18 #if !defined(__D_KERNELDIGITISERTEST_H__) |
|
19 #define __D_KERNELDIGITISERTEST_H__ |
|
20 |
|
21 #include <e32cmn.h> |
|
22 #ifndef __KERNEL_MODE__ |
|
23 #include <e32std.h> |
|
24 #endif |
|
25 |
|
26 _LIT(KLddName,"D_KERNELDIGITISERTEST.LDD"); |
|
27 |
|
28 class TestTRawDigitiserEvent |
|
29 { |
|
30 public: |
|
31 TestTRawDigitiserEvent(TRawEvent::TType aType,TInt aX,TInt aY,TInt aZ,TInt aScanCode,TInt aPhi,TInt aTheta,TInt aAlpha,TUint8 aPointerNumber,TUint8 iTip); |
|
32 #ifdef __KERNEL_MODE__ |
|
33 TestTRawDigitiserEvent(); |
|
34 TInt TestEvents(); |
|
35 #endif |
|
36 private: |
|
37 TRawEvent::TType iType; |
|
38 TInt iX; |
|
39 TInt iY; |
|
40 TInt iZ; |
|
41 TInt iScanCode; |
|
42 TInt iPhi; |
|
43 TInt iTheta; |
|
44 TInt iAlpha; |
|
45 TUint8 iPointerNumber; |
|
46 TUint8 iTip; |
|
47 TRawEvent iDigitiser3DEvent; |
|
48 }; |
|
49 |
|
50 class RTestDigitiserLdd : public RBusLogicalChannel |
|
51 { |
|
52 public: |
|
53 |
|
54 enum TControl |
|
55 { |
|
56 EStartTest=1 |
|
57 }; |
|
58 |
|
59 |
|
60 public: |
|
61 inline TInt Open(); |
|
62 inline TInt StartTest(TestTRawDigitiserEvent &aEventObject); |
|
63 }; |
|
64 |
|
65 |
|
66 #ifndef __KERNEL_MODE__ |
|
67 inline TInt RTestDigitiserLdd::Open() |
|
68 { |
|
69 return DoCreate(KLddName,TVersion(0,1,0),KNullUnit,NULL,NULL); |
|
70 } |
|
71 |
|
72 inline TInt RTestDigitiserLdd::StartTest(TestTRawDigitiserEvent &aEventObject) |
|
73 { |
|
74 return DoControl(EStartTest,&aEventObject); |
|
75 } |
|
76 #endif //__KERNEL_MODE__ |
|
77 |
|
78 #endif //__D_KERNELDIGITISERTEST_H__ |