textinput/peninputfingerhwrar/src/peninputfingerhwrardatastore.cpp
branchRCL_3
changeset 19 ac7e4d1d9209
parent 12 5e18d8c489d6
equal deleted inserted replaced
18:b1ea1642412e 19:ac7e4d1d9209
    22 
    22 
    23 //FEP INCLUDE
    23 //FEP INCLUDE
    24 #include <aknfeppeninputenums.h>
    24 #include <aknfeppeninputenums.h>
    25 #include <AknFepGlobalEnums.h>
    25 #include <AknFepGlobalEnums.h>
    26 #include <AknFepInternalCRKeys.h>
    26 #include <AknFepInternalCRKeys.h>
       
    27 #include <peninputcommonlayoutglobalenum.h>
    27 
    28 
    28 //USER INCLUDE
    29 //USER INCLUDE
    29 #include "peninputfingerhwrarlayout.h"
    30 #include "peninputfingerhwrarlayout.h"
    30 #include "peninputfingerhwrardatastore.h"
    31 #include "peninputfingerhwrardatastore.h"
    31 #include "peninputfingerhwrarengine.h"
    32 #include "peninputfingerhwrarengine.h"
    70     iKeyMappingStringList.ResetAndDestroy();
    71     iKeyMappingStringList.ResetAndDestroy();
    71     iKeyMappingStringList.Close();
    72     iKeyMappingStringList.Close();
    72 
    73 
    73     delete iRepositoryFep;
    74     delete iRepositoryFep;
    74     delete iCommonEngineRepository;
    75     delete iCommonEngineRepository;
    75 //    delete iTriggerStr;   
       
    76     delete iHwrEngine;
    76     delete iHwrEngine;
    77     delete iUserDefinedResource;
    77     delete iUserDefinedResource;
    78     
    78     
    79     if ( iDefaultNumberMapping )
    79     if ( iDefaultNumberMapping )
    80         {
    80         {
   154     
   154     
   155     //order can not be changed
   155     //order can not be changed
   156     if ( aPermittedRanges & ERangeNative )
   156     if ( aPermittedRanges & ERangeNative )
   157         {
   157         {
   158         iPermittedRanges.Append( ERangeNative );
   158         iPermittedRanges.Append( ERangeNative );
       
   159         }
       
   160     if ( aPermittedRanges & ERangeNativeNumber )
       
   161         {
       
   162         iPermittedRanges.Append( ERangeNativeNumber );
   159         }
   163         }
   160     if ( aPermittedRanges & ERangeEnglish )
   164     if ( aPermittedRanges & ERangeEnglish )
   161         {
   165         {
   162         iPermittedRanges.Append( ERangeEnglish );
   166         iPermittedRanges.Append( ERangeEnglish );
   163         }
   167         }
   196 	    return iPermittedRanges[0];			
   200 	    return iPermittedRanges[0];			
   197 		}
   201 		}
   198 	return -1;
   202 	return -1;
   199 	}
   203 	}
   200 	
   204 	
   201 // ----------------------------------------------------------------------------
       
   202 // get current range
       
   203 // ----------------------------------------------------------------------------
       
   204 //
       
   205 TFingerHwrRange CPeninputFingerHwrArDataStore::CurrentRange()
       
   206 	{
       
   207 	return iCurrentRange;
       
   208 	}
       
   209 
       
   210 // ----------------------------------------------------------------------------
   205 // ----------------------------------------------------------------------------
   211 // Set case
   206 // Set case
   212 // ----------------------------------------------------------------------------
   207 // ----------------------------------------------------------------------------
   213 //
   208 //
   214 void CPeninputFingerHwrArDataStore::SetCase( TInt aCase )
   209 void CPeninputFingerHwrArDataStore::SetCase( TInt aCase )
   703 // CPeninputFingerHwrArDataStore::IsNumberOnlyMode
   698 // CPeninputFingerHwrArDataStore::IsNumberOnlyMode
   704 // ----------------------------------------------------------------------------
   699 // ----------------------------------------------------------------------------
   705 //  
   700 //  
   706 TBool CPeninputFingerHwrArDataStore::IsNumberOnlyMode()
   701 TBool CPeninputFingerHwrArDataStore::IsNumberOnlyMode()
   707     {
   702     {
   708     if(PrimaryRange() == ERangeNumber)
   703     if(PrimaryRange() == ERangeNumber || PrimaryRange() == ERangeNativeNumber)
   709         {
   704         {
   710         return ETrue;
   705         return ETrue;
   711         }
   706         }
   712     return EFalse;
   707     return EFalse;
   713     }
   708     }