securitydialogs/SecUi/Src/SecUiManualSecuritySettings.cpp
branchRCL_3
changeset 14 33ad376816a8
parent 0 164170e6151a
child 21 09b1ac925e3f
equal deleted inserted replaced
13:53af9c3d61e4 14:33ad376816a8
   397 
   397 
   398     #if defined(_DEBUG)
   398     #if defined(_DEBUG)
   399     RDebug::Print(_L("(SECUI)CManualSecuritySettings::LockSimL(): Param length: %d"), length);
   399     RDebug::Print(_L("(SECUI)CManualSecuritySettings::LockSimL(): Param length: %d"), length);
   400     #endif
   400     #endif
   401 
   401 
   402     if(aLockCode.Length() <= KSimLockMaxPasswordSize)
       
   403     {
       
   404     if (aType.CompareF(Operator) == 0)
   402     if (aType.CompareF(Operator) == 0)
   405         {
   403         {
   406         aLockType = RMmCustomAPI::EOperator;
   404         aLockType = RMmCustomAPI::EOperator;
   407         ret = iCustomPhone.ActivateSimLock( aLockCode,aLockType );
   405         ret = iCustomPhone.ActivateSimLock( aLockCode,aLockType );
   408         }
   406         }
   434     if (aType.CompareF(Operator_Gid2) == 0)
   432     if (aType.CompareF(Operator_Gid2) == 0)
   435         {
   433         {
   436         aLockType = RMmCustomAPI::EOperator_Gid2;
   434         aLockType = RMmCustomAPI::EOperator_Gid2;
   437         ret = iCustomPhone.ActivateSimLock( aLockCode,aLockType );
   435         ret = iCustomPhone.ActivateSimLock( aLockCode,aLockType );
   438         }
   436         }
   439     }
       
   440 
   437 
   441     #if defined(_DEBUG)
   438     #if defined(_DEBUG)
   442     RDebug::Print(_L("(SECUI)CManualSecuritySettings::LockSimL() RESULT: %d"), ret);
   439     RDebug::Print(_L("(SECUI)CManualSecuritySettings::LockSimL() RESULT: %d"), ret);
   443     #endif
   440     #endif
   444     switch (ret)
   441     switch (ret)
   501     TInt length = aUnlockCode.Length();
   498     TInt length = aUnlockCode.Length();
   502 
   499 
   503     #if defined(_DEBUG)
   500     #if defined(_DEBUG)
   504     RDebug::Print(_L("(SECUI)CManualSecuritySettings::UnLockSimL(): Param length: %d"), length);
   501     RDebug::Print(_L("(SECUI)CManualSecuritySettings::UnLockSimL(): Param length: %d"), length);
   505     #endif
   502     #endif
   506     if(aUnlockCode.Length() <= KSimLockMaxPasswordSize)
   503     
   507     {
       
   508     if (aType.CompareF(Operator) == 0)
   504     if (aType.CompareF(Operator) == 0)
   509         {
   505         {
   510         aLockType = RMmCustomAPI::EOperator;
   506         aLockType = RMmCustomAPI::EOperator;
   511         ret = iCustomPhone.DeActivateSimLock( aUnlockCode,aLockType );
   507         ret = iCustomPhone.DeActivateSimLock( aUnlockCode,aLockType );
   512         }
   508         }
   544         {
   540         {
   545         aLockType = RMmCustomAPI::EGlobalUnlock;
   541         aLockType = RMmCustomAPI::EGlobalUnlock;
   546         ret = iCustomPhone.DeActivateSimLock( aUnlockCode,aLockType );
   542         ret = iCustomPhone.DeActivateSimLock( aUnlockCode,aLockType );
   547         }    
   543         }    
   548         
   544         
   549     }
       
   550     #if defined(_DEBUG)
   545     #if defined(_DEBUG)
   551     RDebug::Print(_L("(SECUI)CManualSecuritySettings::UnLockSimL() RESULT: %d"), ret);
   546     RDebug::Print(_L("(SECUI)CManualSecuritySettings::UnLockSimL() RESULT: %d"), ret);
   552     #endif
   547     #endif
   553     switch (ret)
   548     switch (ret)
   554         {
   549         {