fep/aknfep/inc/AknFepUiInputStateCandidateQwertyBase.h
changeset 0 eb1f2e154e89
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fep/aknfep/inc/AknFepUiInputStateCandidateQwertyBase.h	Tue Feb 02 01:02:04 2010 +0200
@@ -0,0 +1,64 @@
+/*
+* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0""
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:           
+*       Provides the TAknFepInputStateCandidateQwertyBase definition.
+*
+*/
+
+
+
+
+
+
+
+
+
+
+
+
+#ifndef __AKN_FEP_UI_INPUT_STATE_CANDIDATE_QWERTY_BASE_H__
+#define __AKN_FEP_UI_INPUT_STATE_CANDIDATE_QWERTY_BASE_H__
+
+#include "AknFepUiInputStateChineseBase.h"
+#include <PtiDefs.h>
+
+class TAknFepInputStateCandidateQwertyBase : public TAknFepInputStateChineseBase
+    {
+public:
+    /**
+     * Handling Command events.
+     * This Method is called by CAknFepUIManagerJapanese.
+     *
+     * @param aCommandId Command ID value
+     */
+    void HandleCommandL( TInt aCommandId );
+protected:
+    TAknFepInputStateCandidateQwertyBase(MAknFepUIManagerStateInterface* aOwner,
+                                    MAknFepUICtrlContainerChinese* aUIContainer);
+
+    TBool HandleKeyL(TInt aKey, TKeyPressLength aLength);
+    TBool HandleHorizontalNavigation(TInt aKey);
+    TBool HandleVerticalNavigation(TInt aKey);
+    inline TInt MapKeyToIndex(TInt aKey);
+    };
+
+inline TInt TAknFepInputStateCandidateQwertyBase::MapKeyToIndex(TInt aKey)
+    {
+    TInt index = aKey - EPtiKey0; // get zero-based value first
+    return !index ? 9 : --index; // map it for one-based keys...
+    }
+
+#endif //__AKN_FEP_UI_INPUT_STATE_CANDIDATE_QWERTY_BASE_H__
+
+// End of file