diff -r 6ceef9a83b1a -r 6defe5d1bd39 textinput/peninputfingerhwrar/src/peninputfingerhwrardatastore.cpp --- a/textinput/peninputfingerhwrar/src/peninputfingerhwrardatastore.cpp Mon Mar 15 12:42:02 2010 +0200 +++ b/textinput/peninputfingerhwrar/src/peninputfingerhwrardatastore.cpp Wed Mar 31 22:08:20 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005-2010 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" @@ -183,50 +183,6 @@ { iPermittedCases = aPermittedCases; } - -// ---------------------------------------------------------------------------- -// Set Primary range -// ---------------------------------------------------------------------------- -// -void CPeninputFingerHwrArDataStore::SetPrimaryRange( TInt aPrimaryRange ) - { - const TInt oldIndex = iPermittedRanges.Find( aPrimaryRange ); - - // store the current range - switch(aPrimaryRange) - { - case ERangeNative: - { - iCurrentRange = EFingerHwrNativeRange; - } - break; - case ERangeEnglish: - { - iCurrentRange = EFingerHwrEnglishRange; - } - break; - case ERangeNumber: - { - iCurrentRange = EFingerHwrNumberRange; - } - break; - default: - break; - } - - if ( oldIndex > 0 ) - { - iPermittedRanges.Sort(); - const TInt index = iPermittedRanges.Find( aPrimaryRange ); - - iPermittedRanges.Remove( index ); - iPermittedRanges.Insert( aPrimaryRange, 0 ); - - // set primary range for hwr engine - iHwrEngine->SetRanges( iPermittedRanges ); - } - } - // ---------------------------------------------------------------------------- // get Primary range // ---------------------------------------------------------------------------- @@ -437,68 +393,7 @@ return rs.AllocL(); } - -// ------------------------------------------------------------------------ -// CPeninputFingerHwrArDataStore::IsSpecialDisplayChars -// ------------------------------------------------------------------------ -// -TBool CPeninputFingerHwrArDataStore::IsSpecialDisplayChars( const TDesC& aChar ) const - { - if( aChar.Compare( KGestureEnter ) == 0 - || aChar.Compare( KDisplayBackspace ) == 0 - || aChar.Compare( KGestureSpace )== 0 ) - { - return ETrue; - } - - return EFalse; - } - -// ----------------------------------------------------------------------------- -// CPeninputFingerHwrArDataStore::IsDirectlySentCandidate -// ----------------------------------------------------------------------------- -// -TBool CPeninputFingerHwrArDataStore::IsDirectlySentCandidate( const TDesC& aChar ) const - { - if( aChar.Compare( KGestureEnter ) == 0 || - aChar.Compare( KDisplayBackspace ) == 0) - { - return ETrue; - } - - return EFalse; - } - -// ------------------------------------------------------------------------ -// CPeninputFingerHwrArDataStore::ConvertDisplayChars -// ------------------------------------------------------------------------ -// -HBufC* CPeninputFingerHwrArDataStore::ConvertDisplayChars( const TDesC& aChar ) const - { - HBufC* convertedCan = NULL; - TBuf str; - if( aChar.Compare( KGestureEnter ) == 0 ) - { - str.Append( EKeyEnter ); - } - else if( aChar.Compare( KDisplayBackspace ) == 0 ) - { - str.Append( EKeyBackspace ); - } - else if( aChar.Compare( KGestureSpace )== 0 ) - { - str.Append( EKeySpace ); - } - - if( str.Length() > 0 ) - { - convertedCan = str.Alloc(); - } - - return convertedCan; - } - // ----------------------------------------------------------------------------- // CPeninputFingerHwrArDataStore::StartCharacter // ----------------------------------------------------------------------------- @@ -686,34 +581,6 @@ iLanguageShowText ); } - - // ---------------------------------------------------------------------------- - // Reset key board type - // ---------------------------------------------------------------------------- - // -void CPeninputFingerHwrArDataStore::ResetKeyboardType() - { - iHwrEngine->ResetKeyboardType(); - } - - // ---------------------------------------------------------------------------- - // Set key board type to Qwerty - // ---------------------------------------------------------------------------- - // -void CPeninputFingerHwrArDataStore::SetKeyboardToQwerty() - { - iHwrEngine->SetKeyboardToQwerty(); - } - - // ---------------------------------------------------------------------------- - // Get key board type - // ---------------------------------------------------------------------------- - // -void CPeninputFingerHwrArDataStore::GetKeyboardType() - { - iHwrEngine->GetKeyboardType(); - } - // ---------------------------------------------------------------------------- // CPeninputFingerHwrArDataStore::GetTopGuideLinePos // ----------------------------------------------------------------------------