os/kernelhwsrv/kerneltest/e32test/digitiser/d_ldddigitisertest.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2008-2009 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_ldddigitisertest.h
    15 // 
    16 //
    17 
    18 #if !defined(__DLDDDIGITISERTEST_H__)
    19 #define __DLDDDIGITISERTEST_H__
    20 
    21 #include <e32cmn.h>
    22 #ifndef __KERNEL_MODE__
    23 #include <e32std.h>
    24 #endif
    25 
    26 _LIT(KLddName,"D_LDDDIGITISERTEST.LDD");
    27 
    28 class RLddDigitiserTest : public RBusLogicalChannel
    29 	{
    30 public:
    31 
    32 	enum TControl
    33 		{
    34 		EADDHALENTRY = 1,
    35 		EREMOVEHALENTRY,
    36 		EGETREGISTEREDDEVICENUMBER,
    37 		EINITIALISEHALDATA,
    38 
    39 		EGET_EPOINTER3D,
    40 		ESET_EPOINTER3D,
    41 
    42 		EGET_EPOINTERMAXPROXIMITY,
    43 		ESET_EPOINTERMAXPROXIMITY,
    44 		
    45 		EGET_EPOINTER3DTHETASUPPORTED,
    46 		ESET_EPOINTER3DTHETASUPPORTED,
    47 
    48 		EGET_EPOINTER3DPHISUPPORTED,
    49 		ESET_EPOINTER3DPHISUPPORTED,
    50 
    51 		EGET_EPOINTER3DROTATIONSUPPORTED,
    52 		ESET_EPOINTER3DROTATIONSUPPORTED,
    53 
    54 		EGET_EPOINTER3DPRESSURESUPPORTED,
    55 		ESET_EPOINTER3DPRESSURESUPPORTED,
    56 
    57 		EGET_EPOINTER3DPROXIMITYSTEP,
    58 		ESET_EPOINTER3DPROXIMITYSTEP,
    59 
    60 		EGET_EPOINTER3DMAXPOINTERS,
    61 		ESET_EPOINTER3DMAXPOINTERS,
    62 
    63 		EGET_EPOINTER3DNUMBEROFPOINTERS,
    64 		ESET_EPOINTER3DNUMBEROFPOINTERS,
    65  
    66 		EGET_EPOINTER3DMAXPRESSURE,
    67 		ESET_EPOINTER3DMAXPRESSURE,
    68 
    69 		EGET_EPOINTER3DPRESSURESTEP,
    70 		ESET_EPOINTER3DPRESSURESTEP
    71 		};
    72 
    73 public:
    74 	inline TInt Open();
    75 	inline TInt registerHalHandler();
    76 	inline TInt removeHalHandler();
    77 	inline TInt getRegisteredDeviceNumber();
    78 	inline TInt initialiseHalData();
    79 
    80 	inline TInt getPointer3D();
    81 	inline TInt setPointer3D(TUint aPointer3D);
    82 
    83 	inline TInt getPointer3DMaxProximity();
    84 	inline TInt setPointer3DMaxProximity(TUint aPointer3DMaxProximity);
    85 	
    86 	inline TInt getPointer3DThetaSupported();
    87 	inline TInt setPointer3DThetaSupported(TUint aPointer3DThetaSupported);
    88 	
    89 	inline TInt getPointer3DPhiSupported();
    90 	inline TInt setPointer3DPhiSupported(TUint aPointer3DPhiSupported);
    91 	
    92 	inline TInt getPointer3DRotationSupported();
    93 	inline TInt setPointer3DRotationSupported(TUint aPointer3DRotationSupported);
    94 	
    95 	inline TInt getPointer3DPressureSupported();
    96 	inline TInt setPointer3DPressureSupported(TUint aPointer3DPressureSupported);
    97 
    98 	inline TInt getPointer3DProximityStep();
    99 	inline TInt setPointer3DProximityStep(TUint aPointer3DProximityStep);
   100 	
   101 	inline TInt getPointerMaxPointers();
   102 	inline TInt setPointerMaxPointers(TUint aPointerMaxPointers);
   103 	
   104 	inline TInt getPointerNumberOfPointers();
   105 	inline TInt setPointerNumberOfPointers(TUint aPointerNumberOfPointers);
   106 	
   107 	inline TInt getPointer3DMaxPressure();
   108 	inline TInt setPointer3DMaxPressure(TUint aPointer3DMaxPressure);
   109 	
   110 	inline TInt getPointer3DPressureStep();
   111 	inline TInt setPointer3DPressureStep(TUint aPointer3DPressureStep);
   112 	};
   113 
   114 #include "d_lddDigitisertest.inl"
   115 #endif   //__DLDDDIGITISERTEST_H__