1 // Copyright (c) 1995-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 "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32\include\e32ktran.h
25 #ifndef __E32KTRAN_H__
26 #define __E32KTRAN_H__
31 class TMaskedModifiers
64 TMaskedModifiers iModifiers;
65 TKeyCodePattern iKeyCodePattern;
80 class CCaptureKeys: public CBase
83 IMPORT_C CCaptureKeys();
84 IMPORT_C ~CCaptureKeys();
85 IMPORT_C void Construct();
86 IMPORT_C void AddCaptureKeyL(const TCaptureKey &aCaptureKey);
87 IMPORT_C void AddCaptureKeyL(const TCaptureKey &aCaptureKey, TUint8 aPriority);
88 IMPORT_C void SetCaptureKey(TUint32 aHandle, const TCaptureKey &aCaptureKey);
89 IMPORT_C void SetCaptureKey(TUint32 aHandle, const TCaptureKey &aCaptureKey, TUint8 aPriority);
90 IMPORT_C void CancelCaptureKey(TUint32 aHandle);
91 IMPORT_C void CancelAllCaptureKeys(TUint32 aApp);
92 IMPORT_C void ProcessCaptureKeys(TKeyData &aKeyData) const;
94 void CheckCaptureKey(const TCaptureKey &aCaptureKey);
95 void removeCaptureKey(TUint index);
97 RArray<TCaptureKey> iCKarray;
100 class CKeyTranslator: public CBase
103 IMPORT_C static CKeyTranslator *New();
104 virtual TInt GetModifierState()=0;
105 virtual void SetModifierState(TEventModifier aModifier,TModifierState aState)=0;
106 virtual TBool TranslateKey(TUint aScanCode,TBool aKeyUp,const CCaptureKeys &aCaptureKeys,TKeyData &aKeyData)=0;
107 virtual void UpdateModifiers(TInt aModifiers)=0;
108 virtual TInt ChangeKeyData(const TDesC& aLibraryName)=0;