textinput/peninputfingerhwrar/src/peninputfingerhwrardatastore.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 44 ecbabf52600f
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
    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>
       
    28 
    27 
    29 //USER INCLUDE
    28 //USER INCLUDE
    30 #include "peninputfingerhwrarlayout.h"
    29 #include "peninputfingerhwrarlayout.h"
    31 #include "peninputfingerhwrardatastore.h"
    30 #include "peninputfingerhwrardatastore.h"
    32 #include "peninputfingerhwrarengine.h"
    31 #include "peninputfingerhwrarengine.h"
    71     iKeyMappingStringList.ResetAndDestroy();
    70     iKeyMappingStringList.ResetAndDestroy();
    72     iKeyMappingStringList.Close();
    71     iKeyMappingStringList.Close();
    73 
    72 
    74     delete iRepositoryFep;
    73     delete iRepositoryFep;
    75     delete iCommonEngineRepository;
    74     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 );
       
   163         }
   159         }
   164     if ( aPermittedRanges & ERangeEnglish )
   160     if ( aPermittedRanges & ERangeEnglish )
   165         {
   161         {
   166         iPermittedRanges.Append( ERangeEnglish );
   162         iPermittedRanges.Append( ERangeEnglish );
   167         }
   163         }
   200 	    return iPermittedRanges[0];			
   196 	    return iPermittedRanges[0];			
   201 		}
   197 		}
   202 	return -1;
   198 	return -1;
   203 	}
   199 	}
   204 	
   200 	
       
   201 // ----------------------------------------------------------------------------
       
   202 // get current range
       
   203 // ----------------------------------------------------------------------------
       
   204 //
       
   205 TFingerHwrRange CPeninputFingerHwrArDataStore::CurrentRange()
       
   206 	{
       
   207 	return iCurrentRange;
       
   208 	}
       
   209 
   205 // ----------------------------------------------------------------------------
   210 // ----------------------------------------------------------------------------
   206 // Set case
   211 // Set case
   207 // ----------------------------------------------------------------------------
   212 // ----------------------------------------------------------------------------
   208 //
   213 //
   209 void CPeninputFingerHwrArDataStore::SetCase( TInt aCase )
   214 void CPeninputFingerHwrArDataStore::SetCase( TInt aCase )
   698 // CPeninputFingerHwrArDataStore::IsNumberOnlyMode
   703 // CPeninputFingerHwrArDataStore::IsNumberOnlyMode
   699 // ----------------------------------------------------------------------------
   704 // ----------------------------------------------------------------------------
   700 //  
   705 //  
   701 TBool CPeninputFingerHwrArDataStore::IsNumberOnlyMode()
   706 TBool CPeninputFingerHwrArDataStore::IsNumberOnlyMode()
   702     {
   707     {
   703     if(PrimaryRange() == ERangeNumber || PrimaryRange() == ERangeNativeNumber)
   708     if(PrimaryRange() == ERangeNumber)
   704         {
   709         {
   705         return ETrue;
   710         return ETrue;
   706         }
   711         }
   707     return EFalse;
   712     return EFalse;
   708     }
   713     }