This tutorial explains how to set the mobility policy handler component to accept a newly-available bearer.
Derive a class from the CImMobilityPolicyPlugin class.
Implement the PreferredCarrierAvailable and MigrationComplete functions in the derived CImMobilityPolicyPlugin class to get the required behaviour when a new bearer is available.
When a new bearer is available, the Network bearer mobility framework calls the MMobilityProtocolResp::PreferredCarrierAvailable function to notify the bearer mobility policy manager. This happens only if the bearer mobility policy manager is registered with the PreferredCarrierAvailable (Network bearer mobility framework) for bearer mobility notification.
Call the CImMobilityManager::AcceptNewCarrier() function on the instance of CImMobilityManager identified in the PreferredCarrierAvailable() function.
Set the CImMobilityManager::AcceptNewCarrier() function value to any of the following:
KAcceptCompleteCurrent to specify that any operations in progress should be allowed to continue before migrating.
KAcceptStopCurrent to specify that any operations in progress should be stopped before migrating.
KAcceptImmediately to specify that the migration should be performed immediately.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.