bearermanagement/S60MCPR/src/s60mcprerrorrecoveryactivity.cpp
branchRCL_3
changeset 57 05bc53fe583b
parent 1 40cb640ef159
child 58 83ca720e2b9a
child 71 9f263f780e41
equal deleted inserted replaced
55:fc7b30ed2058 57:05bc53fe583b
   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();
       
   178         TCFMcpr::TReConnectComplete* msg = NULL;
   177         TCFMcpr::TReConnectComplete* msg = NULL;
   179         if ( iContext.iMessage.IsMessage<TCFMcpr::TReConnectComplete>() )
   178         if ( iContext.iMessage.IsMessage<TCFMcpr::TReConnectComplete>() )
   180             {
   179             {
   181             msg = message_cast<TCFMcpr::TReConnectComplete>(&iContext.iMessage);
   180             msg = message_cast<TCFMcpr::TReConnectComplete>(&iContext.iMessage);
   182             }
   181             }
   183 
   182 
   184         if ( !msg )
   183         if ( !msg )
   185             {
   184             {
   186             S60MCPRLOGSTRING1("S60MCPR<%x>::TRetryConnectionOrProcessErrorTagBackward::TransitionTag() KProcessError",(TInt*)&iContext.Node());
   185             S60MCPRLOGSTRING1("S60MCPR<%x>::TRetryConnectionOrProcessErrorTagBackward::TransitionTag() KProcessError",(TInt*)&iContext.Node());
   187             return S60MCprStates::KProcessError | NetStateMachine::EBackward;
   186             return S60MCprStates::KProcessError | NetStateMachine::EBackward;
   188             //return KErrorTag | NetStateMachine::EForward;
   187             }
   189             }
   188         else
   190         else// if ( node.ServiceProvider()->ProviderInfo().APId() == node.PolicyPrefs().IapId() )
       
   191             {
   189             {
   192             S60MCPRLOGSTRING1("S60MCPR<%x>::TRetryConnectionOrProcessErrorTagBackward::TransitionTag() KRetryConnection",(TInt*)&iContext.Node());
   190             S60MCPRLOGSTRING1("S60MCPR<%x>::TRetryConnectionOrProcessErrorTagBackward::TransitionTag() KRetryConnection",(TInt*)&iContext.Node());
   193             return S60MCprStates::KRetryConnection | NetStateMachine::EForward;
   191             return S60MCprStates::KRetryConnection | NetStateMachine::EForward;
   194             }
   192             }
   195         }
   193         }