This topic gives information about the Tuning IP Platform.
The purpose of this tutorial is to set the desired IP platform.
The following tasks will be covered in this tutorial:
//Context: The following takes place in some method of an active object //(e.g. CExampleClient : public CActive). Its member iReceiver is //an RDvbhReceiver that has previously been initialized. Its member //iPlatform is a TDvbhPlatform. GetPlatformToSetFromEndUserL(iPlatform); //Get the platform to set (This is outside scope) User::LeaveIfError(iReceiver.SetPlatform(iPlatform, iStatus)); //When the SetPlatform() operation completes, CExampleClient::RunL() //will be called. If all went well, the receiver will now be in the Ready //state, ready to filter IP data streams from the broadcast to which it is //now tuned. void CExampleClient::RunL() { //SetPlatform() operation has completed. Check iStatus for completion //code (KErrNone, KErrCancelled, KErrNotReady, etc.) and act //accordingly. ... }
If you want to abort the platform setting, then call RDvbhReceiver::CancelSetPlatform(). This causes the active object to complete with reason KErrCancelled. If RDvbhReceiver::CancelSetPlatform() is called when no platform is set, then nothing happens.
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.