void CRain::OnEndLoadingTexturesL() { if ( GetState() == ELoadingTextures ) { SetStateL( ERunning ); } }
// --------------------------------------------------------------------------- // CAknSignalNotify::SetGprsStateL // Sets a GPRS icon to the signal pane. // --------------------------------------------------------------------------- // EXPORT_C void CAknSignalNotify::SetGprsStateL( TInt aGprsState ) { if ( aGprsState >= 0 && aGprsState <= KAknSignalNumberOfGprsStates ) { SetStateL( aGprsState ); } }
// --------------------------------------------------------------------------- // From class CMccSymStreamBase. // Starts the stream. DTMF can be now sent and received. // --------------------------------------------------------------------------- // void CMccDtmfUlStream::PlayL( const TUint32 aEndpointId, TBool /*aStreamPaused*/, TBool /*aEnableRtcp*/ ) { __SUBCONTROLLER( "CMccDtmfUlStream::PlayL" ) __ASSERT_ALWAYS( iFormatEncode && iDatasink && iDatasource, User::Leave( KErrNotReady ) ); TBool controlNetworkResources = SetStateL( EStateStreaming, aEndpointId ); if ( controlNetworkResources ) { iRtpmanager->StartSessionL(); } LoadCodecL( iCodecInfo, KNullDesC8 ); if ( IsControlled( MCC_ENDPOINT_ID( iDatasink ) ) ) { iFormatEncode->SinkPlayL(); } if ( IsControlled( MCC_ENDPOINT_ID( iDatasource ) ) ) { iDatasource->SourcePlayL(); } InformStreamStateChange( KMccStreamStarted, aEndpointId ); __SUBCONTROLLER( "CMccDtmfUlStream::PlayL, exit" ) }
// ----------------------------------------------------------------------------- // CMccUlDataPath::PlayL // Starts the uplink playing // ----------------------------------------------------------------------------- void CMccUlDataPath::PlayL( TUint32 aEndpointId ) { __SUBCONTROLLER( "CMccUlDataPath::PlayL" ) __ASSERT_ALWAYS( iDataPathCreated, User::Leave( KErrNotReady ) ); __ASSERT_ALWAYS( iDataSource, User::Leave( KErrGeneral ) ); __ASSERT_ALWAYS( iDataSink, User::Leave( KErrGeneral ) ); __ASSERT_ALWAYS( iSinkBuffer, User::Leave( KErrGeneral ) ); iDataPathCompletedErrorCode = KErrNone; if ( ControlSink( aEndpointId ) ) { __SUBCONTROLLER( "CMccUlDataPath::PlayL, control sink" ) iDataSink->SinkPlayL(); } if ( ControlSource( aEndpointId ) ) { __SUBCONTROLLER( "CMccUlDataPath::PlayL, control source" ) SetStateL( EStreaming ); iDataSource->SourcePlayL(); } if ( State() == EStreaming && ChangeDataPathTransferState( ENeedSourceData ) ) { ActivateSinkBuffer(); } __SUBCONTROLLER( "CMccUlDataPath::PlayL, exit" ) }
void CLT3DEngine::OnEndLoadingTexturesL() { if (GetState() == ELoadingTextures) { SetStateL(ERunning); } }
// --------------------------------------------------------------------------- // From class CMccSymStreamBase. // Primes the stream ready. // --------------------------------------------------------------------------- // void CMccDtmfUlStream::PrimeL( const TUint32 aEndpointId ) { __SUBCONTROLLER( "CMccDtmfUlStream::PrimeL" ) __ASSERT_ALWAYS( iFormatEncode && iDatasink && iDatasource, User::Leave( KErrNotReady ) ); TBool controlNetworkResources = SetStateL( EStatePrepared, aEndpointId ); if ( controlNetworkResources ) { iRtpmanager->CreateTransmitStreamL( *iDatasink, iCodecInfo ); } LoadCodecL( iCodecInfo, KNullDesC8 ); if ( IsControlled( MCC_ENDPOINT_ID( iDatasink ) ) ) { iFormatEncode->SinkPrimeL(); } if ( IsControlled( MCC_ENDPOINT_ID( iDatasource ) ) ) { iDatasource->SourcePrimeL(); } InformStreamStateChange( KMccStreamPrepared, aEndpointId ); __SUBCONTROLLER( "CMccDtmfUlStream::PrimeL, exit" ) }
// --------------------------------------------------------------------------- // CAknSignalNotify::SetHsdpaStateL // Sets an HSDPA icon to the signal pane. // --------------------------------------------------------------------------- // EXPORT_C void CAknSignalNotify::SetHsdpaStateL( TInt aHsdpaState ) { if ( aHsdpaState >= EAknSignalHsdpaIndicatorOff && aHsdpaState <= EAknSignalHsdpaIndicatorMultipdp ) { SetStateL( aHsdpaState ); } }
// --------------------------------------------------------------------------- // CAknSignalNotify::SetWcdmaStateL // Sets a WCDMA icon to the signal pane. // --------------------------------------------------------------------------- // EXPORT_C void CAknSignalNotify::SetWcdmaStateL( TInt aWcdmaState ) { if ( aWcdmaState >= EAknSignalWcdmaIndicatorOff && aWcdmaState <= EAknSignalWcdmaIndicatorSuspended ) { SetStateL( aWcdmaState ); } }
// --------------------------------------------------------------------------- // CAknSignalNotify::SetCdmaStateL // Sets an EDGE icon to the signal pane. // --------------------------------------------------------------------------- // EXPORT_C void CAknSignalNotify::SetEdgeStateL( TInt aEdgeState ) { if ( aEdgeState >= EAknSignalEdgeIndicatorOff && aEdgeState <= EAknSignalEdgeIndicatorMultipdp ) { SetStateL( aEdgeState ); } }
EXPORT_C void CAknSignalNotify::SetCdmaStateL( TInt aCdmaState ) { // Only supported in CDMA builds. if ( aCdmaState >= EAknSignalCdmaIndicatorOff && aCdmaState <= EAknSignalCdmaIndicatorReceiving ) { SetStateL( aCdmaState ); } }
// --------------------------------------------------------------------------- // CAknSignalNotify::SetCommonPacketDataStateL // Sets a Common Packet Data icon to the signal pane. // --------------------------------------------------------------------------- // EXPORT_C void CAknSignalNotify::SetCommonPacketDataStateL( TInt aCommonPacketDataState ) { if ( aCommonPacketDataState >= EAknSignalCommonPacketDataIndicatorOff && aCommonPacketDataState <= EAknSignalCommonPacketDataIndicatorMultipdp ) { SetStateL( aCommonPacketDataState ); } }
// ----------------------------------------------------------------------------- // CMccUlDataPath::DoEndOfData // Worker function for data ending // ----------------------------------------------------------------------------- void CMccUlDataPath::DoEndOfDataL() { if ( KErrNone == iDataPathCompletedErrorCode ) { iDataPathCompletedErrorCode = KErrCompletion; } SignalDataPathCompleteL( iDataPathCompletedErrorCode ); SetStateL( EStopped ); }
// ----------------------------------------------------------------------------- // CMccUlDataPath::ResumeL // Resumes pause audio streaming // ----------------------------------------------------------------------------- void CMccUlDataPath::ResumeL( TUint32 aEndpointId ) { __SUBCONTROLLER( "CMccUlDataPath::ResumeL" ) __ASSERT_ALWAYS( iDataPathCreated, User::Leave( KErrNotReady ) ); __ASSERT_ALWAYS( iDataSource, User::Leave( KErrGeneral ) ); __ASSERT_ALWAYS( iDataSink, User::Leave( KErrGeneral ) ); iDataPathCompletedErrorCode = KErrNone; if ( ControlSink( aEndpointId ) ) { __SUBCONTROLLER( "CMccUlDataPath::ResumeL, control sink" ) iDataSink->SinkPlayL(); } if ( ControlSource( aEndpointId ) ) { __SUBCONTROLLER( "CMccUlDataPath::ResumeL, control source" ) SetStateL( EStreaming ); if ( IsMmfEndpoint( iAssociatedSource ) ) { __SUBCONTROLLER( "CMccUlDataPath::ResumeL, prime mmf source" ) // Resource was freed at pause, initialize it again iDataSource->SourcePrimeL(); } iDataSource->SourcePlayL(); } if ( State() == EStreaming && ChangeDataPathTransferState( ENeedSourceData ) ) { iSinkBuffer = NULL; TBool bufferReference; iSinkBuffer = iDataSink->CreateSinkBufferL( iMediaId, bufferReference ); __ASSERT_ALWAYS( iSinkBuffer, User::Leave( KErrGeneral ) ); __ASSERT_ALWAYS( bufferReference, User::Leave( KErrGeneral ) ); ActivateSinkBuffer(); } __SUBCONTROLLER( "CMccUlDataPath::ResumeL, exit" ) }
// ----------------------------------------------------------------------------- // CMccDlDataPath::PauseL // Pauses the uplink streaming // ----------------------------------------------------------------------------- void CMccUlDataPath::PauseL( TUint32 aEndpointId ) { __SUBCONTROLLER( "CMccUlDataPath::PauseL" ) __ASSERT_ALWAYS( iDataPathCreated, User::Leave( KErrNotReady ) ); __ASSERT_ALWAYS( iDataSource, User::Leave( KErrGeneral ) ); __ASSERT_ALWAYS( iDataSink, User::Leave( KErrGeneral ) ); if ( ControlSink( aEndpointId ) ) { __SUBCONTROLLER( "CMccUlDataPath::PauseL, control sink" ) iDataSink->SinkPauseL(); } if ( ControlSource( aEndpointId ) ) { __SUBCONTROLLER( "CMccUlDataPath::PauseL, control source" ) SetStateL( EPaused ); if ( IsMmfEndpoint( iAssociatedSource ) ) { __SUBCONTROLLER( "CMccUlDataPath::PauseL, stop mmf source" ) // Resource has to be freed iDataSource->SourceStopL(); } else { iDataSource->SourcePauseL(); } } if ( State() == EPaused ) { iSinkBuffer = NULL; // Pause the whole path Cancel(); ChangeDataPathTransferState( ECanceled ); } __SUBCONTROLLER( "CMccUlDataPath::PauseL, exit" ) }
// --------------------------------------------------------------------------- // From class CMccSymStreamBase. // Resumes the stream. // --------------------------------------------------------------------------- // void CMccDtmfUlStream::ResumeL( const TUint32 aEndpointId, TBool /*aEnableRtcp*/ ) { __SUBCONTROLLER( "CMccDtmfUlStream::ResumeL" ) __ASSERT_ALWAYS( iFormatEncode && iDatasink && iDatasource, User::Leave( KErrNotReady ) ); SetStateL( EStateStreaming, aEndpointId ); if ( IsControlled( MCC_ENDPOINT_ID( iDatasink ) ) ) { iFormatEncode->SinkPlayL(); } if ( IsControlled( MCC_ENDPOINT_ID( iDatasource ) ) ) { iDatasource->SourcePlayL(); } InformStreamStateChange( KMccStreamResumed, aEndpointId ); __SUBCONTROLLER( "CMccDtmfUlStream::ResumeL, exit" ) }
// --------------------------------------------------------------------------- // From class CMccSymStreamBase. // Stops the stream. // --------------------------------------------------------------------------- // void CMccDtmfUlStream::StopL( const TUint32 aEndpointId ) { __SUBCONTROLLER( "CMccDtmfUlStream::StopL" ) __ASSERT_ALWAYS( iFormatEncode && iDatasink && iDatasource, User::Leave( KErrNotReady ) ); SetStateL( EStateStopped, aEndpointId ); if ( IsControlled( MCC_ENDPOINT_ID( iDatasink ) ) ) { iFormatEncode->SinkStopL(); } if ( IsControlled( MCC_ENDPOINT_ID( iDatasource ) ) ) { iDatasource->SourceStopL(); } InformStreamStateChange( KMccStreamStopped, aEndpointId ); __SUBCONTROLLER( "CMccDtmfUlStream::StopL, exit" ) }
// ----------------------------------------------------------------------------- // CMccUlDataPath::Stop // Stop the datapath // ----------------------------------------------------------------------------- void CMccUlDataPath::StopL( TUint32 aEndpointId ) { __SUBCONTROLLER( "CMccUlDataPath::StopL" ) __ASSERT_ALWAYS( iDataPathCreated, User::Leave( KErrNotReady ) ); __ASSERT_ALWAYS( iDataSource, User::Leave( KErrGeneral ) ); __ASSERT_ALWAYS( iDataSink, User::Leave( KErrGeneral ) ); iDataPathCompletedErrorCode = KErrNone; if ( ControlSink( aEndpointId ) ) { __SUBCONTROLLER( "CMccUlDataPath::StopL, control sink" ) iDataSink->SinkStopL(); } if ( ControlSource( aEndpointId ) ) { __SUBCONTROLLER( "CMccUlDataPath::StopL, control source" ) SetStateL( EStopped ); iDataSource->SourceStopL(); } if ( State() == EStopped ) { iSinkBuffer = NULL; // Stop the whole path Cancel(); ChangeDataPathTransferState( ECanceled ); } __SUBCONTROLLER( "CMccUlDataPath::StopL, exit" ) }
// ----------------------------------------------------------------------------- // CMccUlDataPath::PrimeL // Primes the datapath // ----------------------------------------------------------------------------- void CMccUlDataPath::PrimeL( TUint32 aEndpointId ) { __SUBCONTROLLER( "CMccUlDataPath::PrimeL" ) __ASSERT_ALWAYS( iDataPathCreated, User::Leave( KErrNotReady ) ); __ASSERT_ALWAYS( iDataSource, User::Leave( KErrGeneral ) ); __ASSERT_ALWAYS( iDataSink, User::Leave( KErrGeneral ) ); if ( !iSinkBuffer ) { TBool bufferReference; iSinkBuffer = iDataSink->CreateSinkBufferL( iMediaId, bufferReference ); __ASSERT_ALWAYS ( iSinkBuffer, User::Leave( KErrGeneral ) ); __ASSERT_ALWAYS ( bufferReference, User::Leave( KErrGeneral ) ); } if ( ControlSink( aEndpointId ) ) { __SUBCONTROLLER( "CMccUlDataPath::PrimeL, control sink" ) iDataSink->SinkPrimeL(); } if ( ControlSource( aEndpointId ) ) { __SUBCONTROLLER( "CMccUlDataPath::PrimeL, control source" ) SetStateL( EPrimed ); iDataSource->SourcePrimeL(); } CreateCompleteCallBackL(); __SUBCONTROLLER( "CMccUlDataPath::PrimeL, exit" ) }
void CRain::OnStartLoadingTexturesL() { SetStateL( ELoadingTextures ); }
void CLT3DEngine::OnStartLoadingTexturesL() { SetStateL(ELoadingTextures); }