bearermanagement/S60MCPR/src/s60mcprerrorrecoveryactivity.cpp
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
child 69 cf1b3ddbe9a1
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
   172     // -----------------------------------------------------------------------------
   172     // -----------------------------------------------------------------------------
   173     //
   173     //
   174     DEFINE_SMELEMENT(TRetryConnectionOrProcessErrorTagBackward, NetStateMachine::MStateFork, TContext)
   174     DEFINE_SMELEMENT(TRetryConnectionOrProcessErrorTagBackward, NetStateMachine::MStateFork, TContext)
   175     TInt TRetryConnectionOrProcessErrorTagBackward::TransitionTag()
   175     TInt TRetryConnectionOrProcessErrorTagBackward::TransitionTag()
   176         {
   176         {
       
   177         CS60MetaConnectionProvider& node = (CS60MetaConnectionProvider&)iContext.Node();
   177         TCFMcpr::TReConnectComplete* msg = NULL;
   178         TCFMcpr::TReConnectComplete* msg = NULL;
   178         if ( iContext.iMessage.IsMessage<TCFMcpr::TReConnectComplete>() )
   179         if ( iContext.iMessage.IsMessage<TCFMcpr::TReConnectComplete>() )
   179             {
   180             {
   180             msg = message_cast<TCFMcpr::TReConnectComplete>(&iContext.iMessage);
   181             msg = message_cast<TCFMcpr::TReConnectComplete>(&iContext.iMessage);
   181             }
   182             }
   182 
   183 
   183         if ( !msg )
   184         if ( !msg )
   184             {
   185             {
   185             S60MCPRLOGSTRING1("S60MCPR<%x>::TRetryConnectionOrProcessErrorTagBackward::TransitionTag() KProcessError",(TInt*)&iContext.Node());
   186             S60MCPRLOGSTRING1("S60MCPR<%x>::TRetryConnectionOrProcessErrorTagBackward::TransitionTag() KProcessError",(TInt*)&iContext.Node());
   186             return S60MCprStates::KProcessError | NetStateMachine::EBackward;
   187             return S60MCprStates::KProcessError | NetStateMachine::EBackward;
   187             }
   188             //return KErrorTag | NetStateMachine::EForward;
   188         else
   189             }
       
   190         else// if ( node.ServiceProvider()->ProviderInfo().APId() == node.PolicyPrefs().IapId() )
   189             {
   191             {
   190             S60MCPRLOGSTRING1("S60MCPR<%x>::TRetryConnectionOrProcessErrorTagBackward::TransitionTag() KRetryConnection",(TInt*)&iContext.Node());
   192             S60MCPRLOGSTRING1("S60MCPR<%x>::TRetryConnectionOrProcessErrorTagBackward::TransitionTag() KRetryConnection",(TInt*)&iContext.Node());
   191             return S60MCprStates::KRetryConnection | NetStateMachine::EForward;
   193             return S60MCprStates::KRetryConnection | NetStateMachine::EForward;
   192             }
   194             }
   193         }
   195         }