sl@0: /* sl@0: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #if (!defined __T_DIGITISER_DRIVER_DATA_H__) sl@0: #define __T_DIGITISER_DRIVER_DATA_H__ sl@0: sl@0: // EPOC includes sl@0: #include sl@0: sl@0: sl@0: // User Includes sl@0: #include "T_HALData.h" sl@0: sl@0: sl@0: class CT_DigitiserDriverData : public CT_HALData sl@0: /** sl@0: * Test Active Notification class sl@0: @test sl@0: @publishedPartner sl@0: @see CT_HALData sl@0: */ sl@0: { sl@0: public: sl@0: /** sl@0: * Public destructor sl@0: */ sl@0: ~CT_DigitiserDriverData(); sl@0: sl@0: /** sl@0: * Two phase constructor sl@0: * sl@0: * @leave system wide error sl@0: */ sl@0: static CT_DigitiserDriverData* NewL(); sl@0: sl@0: virtual TAny* GetObject(); sl@0: virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); sl@0: sl@0: sl@0: protected: sl@0: /** sl@0: * Protected constructor. First phase construction sl@0: */ sl@0: CT_DigitiserDriverData(); sl@0: void ConstructL(); sl@0: static TBool GetPrepareData(CDataWrapperBase* aThis, const TDesC& aSection, TInt& aValueStart, TInt& /*aValueEnd*/); sl@0: sl@0: static TBool GetPrepareDummy(CDataWrapperBase* /*aThis*/, const TDesC& /*aSection*/, TInt& /*aValueStart*/, TInt& /*aValueEnd*/); sl@0: static void GetValidation(CDataWrapperBase* aThis, const TDesC& aSection, TInt aValue, TBool aForceValidation); sl@0: //for the touch screen device sl@0: static void SetPen(CDataWrapperBase* aThis, TInt aValue); sl@0: static void SetPenX(CDataWrapperBase* aThis, TInt aValue); sl@0: static void SetPenY(CDataWrapperBase* aThis, TInt aValue); sl@0: static void SetPenState(CDataWrapperBase* aThis, TInt aValue); sl@0: sl@0: //for the sound driver device sl@0: static void SetPenClick(CDataWrapperBase* aThis, TInt aValue); sl@0: static void SetPenClickVolumeMax(CDataWrapperBase* aThis, TInt aValue); sl@0: static void SetPenClickState(CDataWrapperBase* aThis, TInt aValue); sl@0: static void SetPenClickVolume(CDataWrapperBase* aThis, TInt aValue); sl@0: sl@0: //for the power controller sl@0: static void SetPenDisplayOn(CDataWrapperBase* aThis, TInt aValue); sl@0: sl@0: //for the LCD screen sl@0: static void SetDisplayState(CDataWrapperBase* aThis, TInt aValue); sl@0: static void SetDisplayMode(CDataWrapperBase* aThis, TInt aValue); sl@0: sl@0: private: sl@0: sl@0: sl@0: protected: sl@0: TInt iPenState; sl@0: TInt iPen; sl@0: TInt iPenX; sl@0: TInt iPenY; sl@0: TInt iPenClick; sl@0: TInt iPenClickVolumeMax; sl@0: TInt iPenClickState; sl@0: TInt iPenClickVolume; sl@0: TInt iPenDisplayOn; sl@0: TInt iDisplayState; sl@0: TInt iDisplayMode; sl@0: sl@0: private: sl@0: static const THalTableLookup iTableLookup[]; sl@0: }; sl@0: sl@0: #endif /* __T_DIGITISER_DRIVER_DATA_H__ */ sl@0: