fep/aknfep/src/AknFepUiInputStateEntryQwertyWesternPredictive.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 46 bd83ceabce89
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
    44 #include <aknfep.rsg>
    44 #include <aknfep.rsg>
    45 #include <PtiKeyMappings.h>
    45 #include <PtiKeyMappings.h>
    46 
    46 
    47 
    47 
    48 static const TInt KKeyMappingsLength = 63;
    48 static const TInt KKeyMappingsLength = 63;
    49 
       
    50 
    49 
    51 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    50 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    52 //
    51 //
    53 TAknFepInputStateEntryQwertyWesternPredictive::
    52 TAknFepInputStateEntryQwertyWesternPredictive::
    54 TAknFepInputStateEntryQwertyWesternPredictive(MAknFepUIManagerStateInterface* aOwner)
    53 TAknFepInputStateEntryQwertyWesternPredictive(MAknFepUIManagerStateInterface* aOwner)
   604         	return ETrue;
   603         	return ETrue;
   605         
   604         
   606         // Framework will handle the key event.
   605         // Framework will handle the key event.
   607        	return EFalse;
   606        	return EFalse;
   608     }
   607     }
   609 
       
   610 
       
   611 // use ptiengine's api to tell whether a character mapped on a given key.	
   608 // use ptiengine's api to tell whether a character mapped on a given key.	
   612 TBool TAknFepInputStateEntryQwertyWesternPredictive::MapAgainst(TInt aKey, TInt aMode, TInt16 aAgainst, TInt aCase) const
   609 TBool TAknFepInputStateEntryQwertyWesternPredictive::MapAgainst(TInt aKey, TInt aMode, TInt16 aAgainst, TInt aCase) const
   613     {    
   610     {    
   614     CPtiEngine* ptiengine = iOwner->PtiEngine();
   611     CPtiEngine* ptiengine = iOwner->PtiEngine();
   615     if(ptiengine)
   612     if(ptiengine)
   622             return (data[0] == aAgainst);                
   619             return (data[0] == aAgainst);                
   623             }
   620             }
   624         }
   621         }
   625     return EFalse;        
   622     return EFalse;        
   626     }
   623     }
   627 	
       
   628 	
       
   629 // Get Scancode from a given character and tell the case at the same time.
   624 // Get Scancode from a given character and tell the case at the same time.
   630 TInt TAknFepInputStateEntryQwertyWesternPredictive::ScanCodeForCharacter( TUint aChar, TPtiTextCase& aCase )
   625 TInt TAknFepInputStateEntryQwertyWesternPredictive::ScanCodeForCharacter( TUint aChar, TPtiTextCase& aCase )
   631     {
   626     {
   632     MAknFepManagerUIInterface* fepMan = iOwner->FepMan();
   627     MAknFepManagerUIInterface* fepMan = iOwner->FepMan();
   633     CPtiEngine* ptiengine = iOwner->PtiEngine();
   628     CPtiEngine* ptiengine = iOwner->PtiEngine();