sysstatemgmt/systemstatereferenceplugins/custcmd/src/cmdsimsecuritycheck.cpp
changeset 63 09d657f1ee00
parent 12 e978f818f9bd
equal deleted inserted replaced
54:072a9626b290 63:09d657f1ee00
   152 */
   152 */
   153 void CCustomCmdSimSecurityCheck::StartStateChange(const TSecurityState aState, const TStrtSecurityNoteType aNoteType)
   153 void CCustomCmdSimSecurityCheck::StartStateChange(const TSecurityState aState, const TStrtSecurityNoteType aNoteType)
   154 	{
   154 	{
   155 	__ASSERT_ALWAYS(!IsActive(), PanicNow(KPanicCustomCmdSimSecurityCheck, EInternalStateError));
   155 	__ASSERT_ALWAYS(!IsActive(), PanicNow(KPanicCustomCmdSimSecurityCheck, EInternalStateError));
   156 	__ASSERT_ALWAYS(!iStateChangePending, PanicNow(KPanicCustomCmdSimSecurityCheck, EInternalStateError));
   156 	__ASSERT_ALWAYS(!iStateChangePending, PanicNow(KPanicCustomCmdSimSecurityCheck, EInternalStateError));
       
   157 
       
   158 	DEBUGPRINT2A("CCustomCmdSimSecurityCheck StartStateChange with State - %d ", aState);
   157 
   159 
   158 	iSubState = ESecuritySubStateNone;
   160 	iSubState = ESecuritySubStateNone;
   159 	iStateChangePending = ETrue;
   161 	iStateChangePending = ETrue;
   160 	iNoteType = aNoteType;
   162 	iNoteType = aNoteType;
   161 	iState = aState;
   163 	iState = aState;
   260 	delete iSsmSecurityCheckNotifier;
   262 	delete iSsmSecurityCheckNotifier;
   261 	iSsmSecurityCheckNotifier = NULL;
   263 	iSsmSecurityCheckNotifier = NULL;
   262 
   264 
   263 	TInt errorCode = KErrNone;
   265 	TInt errorCode = KErrNone;
   264     //Handle the state transition
   266     //Handle the state transition
       
   267 	
       
   268 	DEBUGPRINT2A("CCustomCmdSimSecurityCheck SecurityCheckL with State - %d ", iState);
   265     switch (iState)
   269     switch (iState)
   266         {
   270         {
   267         case StartupAdaptation::ESIMPresent:
   271         case StartupAdaptation::ESIMPresent:
   268 			HandleSIMPresent();
   272 			HandleSIMPresent();
   269             break;
   273             break;
   330         };
   334         };
   331     }
   335     }
   332 
   336 
   333 void CCustomCmdSimSecurityCheck::DoSecurityCheck()
   337 void CCustomCmdSimSecurityCheck::DoSecurityCheck()
   334     {
   338     {
       
   339 	DEBUGPRINT2A("CCustomCmdSimSecurityCheck DoSecurityCheck with State - %d ", iState);
   335     //Handle pending state transition
   340     //Handle pending state transition
   336     switch (iState)
   341     switch (iState)
   337         {
   342         {
   338         case StartupAdaptation::ESIMLock:
   343         case StartupAdaptation::ESIMLock:
   339             HandleSIMLock();
   344             HandleSIMLock();