195 S60MCPRLOGSTRING1("S60MCPR<%x>::TNoTagOrInformMigrationAvailableBackwardsOrErrorOrCancel::TransitionTag() TMPMPreferredCarrierAvailableMsg",(TInt*)&iContext.Node()) |
195 S60MCPRLOGSTRING1("S60MCPR<%x>::TNoTagOrInformMigrationAvailableBackwardsOrErrorOrCancel::TransitionTag() TMPMPreferredCarrierAvailableMsg",(TInt*)&iContext.Node()) |
196 return S60MCprStates::KInformMigrationAvailable | NetStateMachine::EBackward; |
196 return S60MCprStates::KInformMigrationAvailable | NetStateMachine::EBackward; |
197 } |
197 } |
198 // else cancel |
198 // else cancel |
199 return KCancelTag | NetStateMachine::EForward; |
199 return KCancelTag | NetStateMachine::EForward; |
200 } |
|
201 |
|
202 // ----------------------------------------------------------------------------- |
|
203 // S60MCprMobilityActivity::TInformMigrationCompletedOrError::TransitionTag |
|
204 // ----------------------------------------------------------------------------- |
|
205 // |
|
206 DEFINE_SMELEMENT( TInformMigrationCompletedOrError, NetStateMachine::MStateFork, TContext ) |
|
207 TBool TInformMigrationCompletedOrError::TransitionTag() |
|
208 { |
|
209 // Error notification falls into the error -case. |
|
210 if ( iContext.iNodeActivity->Error() ) |
|
211 { |
|
212 return MeshMachine::KErrorTag | NetStateMachine::EForward; |
|
213 } |
|
214 else |
|
215 { |
|
216 return S60MCprStates::KInformMigrationCompleted; |
|
217 } |
|
218 } |
200 } |
219 |
201 |
220 // ----------------------------------------------------------------------------- |
202 // ----------------------------------------------------------------------------- |
221 // S60MCprMobilityActivity::TStartMobilityHandshakeBackwardsOrError::TransitionTag |
203 // S60MCprMobilityActivity::TStartMobilityHandshakeBackwardsOrError::TransitionTag |
222 // ----------------------------------------------------------------------------- |
204 // ----------------------------------------------------------------------------- |
693 ASSERT(EFalse); // error, IPCPR should not send TError in this case. |
675 ASSERT(EFalse); // error, IPCPR should not send TError in this case. |
694 return MeshMachine::KErrorTag | NetStateMachine::EForward; |
676 return MeshMachine::KErrorTag | NetStateMachine::EForward; |
695 } |
677 } |
696 |
678 |
697 // ----------------------------------------------------------------------------- |
679 // ----------------------------------------------------------------------------- |
698 // CS60MobilityActivity::TNoTagOrRequestReConnectToCurrentSPOrErrorTag::DoL |
|
699 // ----------------------------------------------------------------------------- |
|
700 // |
|
701 DEFINE_SMELEMENT( CS60MobilityActivity::TNoTagOrRequestReConnectToCurrentSPOrErrorTag, |
|
702 NetStateMachine::MStateFork, CS60MobilityActivity::TContext ) |
|
703 TInt CS60MobilityActivity::TNoTagOrRequestReConnectToCurrentSPOrErrorTag::TransitionTag() |
|
704 { |
|
705 CS60MetaConnectionProvider& node = (CS60MetaConnectionProvider&)iContext.Node(); |
|
706 RMetaServiceProviderInterface* sp = (RMetaServiceProviderInterface*)node.ServiceProvider(); |
|
707 |
|
708 if ( iContext.iNodeActivity->Error() ) |
|
709 { |
|
710 S60MCPRLOGSTRING1("S60MCPR<%x>::TNoTagOrBearerPresentOrError::TransitionTag() KErrorTag",(TInt*)&iContext.Node()) |
|
711 return MeshMachine::KErrorTag | NetStateMachine::EForward; |
|
712 } |
|
713 // Check whether we're bound to a provider for the given IAP ID already |
|
714 else if (sp && sp->ProviderInfo().APId() == node.PolicyPrefs().IapId()) |
|
715 { |
|
716 // Restart the whole layer |
|
717 S60MCPRLOGSTRING1("S60MCPR<%x>::TNoTagOrBearerPresentOrError::TransitionTag() Re-establishment",(TInt*)&iContext.Node()); |
|
718 return S60MCprStates::KRequestReConnectToCurrentSP | NetStateMachine::EForward; |
|
719 } |
|
720 else |
|
721 { |
|
722 S60MCPRLOGSTRING1("S60MCPR<%x>::TNoTagOrBearerPresentOrError::TransitionTag() KNoTag",(TInt*)&iContext.Node()) |
|
723 return MeshMachine::KNoTag | NetStateMachine::EForward; |
|
724 } |
|
725 } |
|
726 |
|
727 // ----------------------------------------------------------------------------- |
|
728 // CS60MobilityActivity::ClearHandshakingFlag |
680 // CS60MobilityActivity::ClearHandshakingFlag |
729 // ----------------------------------------------------------------------------- |
681 // ----------------------------------------------------------------------------- |
730 // |
682 // |
731 void CS60MobilityActivity::SetHandshakingFlag() |
683 void CS60MobilityActivity::SetHandshakingFlag() |
732 { |
684 { |