예제 #1
0
void CRain::OnEndLoadingTexturesL()
	{
	if ( GetState() == ELoadingTextures )
		{
		SetStateL( ERunning );
		}
	}
예제 #2
0
// ---------------------------------------------------------------------------
// CAknSignalNotify::SetGprsStateL
// Sets a GPRS icon to the signal pane.
// ---------------------------------------------------------------------------
//
EXPORT_C void CAknSignalNotify::SetGprsStateL( TInt aGprsState )
    {
    if ( aGprsState >= 0 && aGprsState <= KAknSignalNumberOfGprsStates )
        {
        SetStateL( aGprsState );
        }
    }
예제 #3
0
// ---------------------------------------------------------------------------
// 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" )
    }
예제 #4
0
// -----------------------------------------------------------------------------
// 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" )
    }
예제 #5
0
void CLT3DEngine::OnEndLoadingTexturesL()
	{
	if (GetState() == ELoadingTextures)
		{
		SetStateL(ERunning);
		}
	}
예제 #6
0
// ---------------------------------------------------------------------------
// 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" )
    }
예제 #7
0
// ---------------------------------------------------------------------------
// CAknSignalNotify::SetHsdpaStateL
// Sets an HSDPA icon to the signal pane.
// ---------------------------------------------------------------------------
//
EXPORT_C void CAknSignalNotify::SetHsdpaStateL( TInt aHsdpaState )
    {
    if ( aHsdpaState >= EAknSignalHsdpaIndicatorOff && 
         aHsdpaState <= EAknSignalHsdpaIndicatorMultipdp )
        {
        SetStateL( aHsdpaState );
        }
    }
예제 #8
0
// ---------------------------------------------------------------------------
// CAknSignalNotify::SetWcdmaStateL
// Sets a WCDMA icon to the signal pane.
// ---------------------------------------------------------------------------
//
EXPORT_C void CAknSignalNotify::SetWcdmaStateL( TInt aWcdmaState )
    {
    if ( aWcdmaState >= EAknSignalWcdmaIndicatorOff && 
         aWcdmaState <= EAknSignalWcdmaIndicatorSuspended )
        {
        SetStateL( aWcdmaState );
        }
    }
예제 #9
0
// ---------------------------------------------------------------------------
// CAknSignalNotify::SetCdmaStateL
// Sets an EDGE icon to the signal pane.
// ---------------------------------------------------------------------------
//
EXPORT_C void CAknSignalNotify::SetEdgeStateL( TInt aEdgeState )
    {
    if ( aEdgeState >= EAknSignalEdgeIndicatorOff && 
         aEdgeState <= EAknSignalEdgeIndicatorMultipdp )
        {
        SetStateL( aEdgeState );
        }
    }
예제 #10
0
EXPORT_C void CAknSignalNotify::SetCdmaStateL( TInt aCdmaState )
    {
    // Only supported in CDMA builds.
    if ( aCdmaState >= EAknSignalCdmaIndicatorOff && 
         aCdmaState <= EAknSignalCdmaIndicatorReceiving )
        {
        SetStateL( aCdmaState );
        }
    }
예제 #11
0
// ---------------------------------------------------------------------------
// 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 );
        }
    }
예제 #12
0
// -----------------------------------------------------------------------------
// CMccUlDataPath::DoEndOfData
// Worker function for data ending
// -----------------------------------------------------------------------------
void CMccUlDataPath::DoEndOfDataL()
    {
    if ( KErrNone == iDataPathCompletedErrorCode )
        {
        iDataPathCompletedErrorCode = KErrCompletion;
        }

    SignalDataPathCompleteL( iDataPathCompletedErrorCode );

    SetStateL( EStopped );
    }
예제 #13
0
// -----------------------------------------------------------------------------
// 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" )
    }
예제 #14
0
// -----------------------------------------------------------------------------
// 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" )
    }
예제 #15
0
// ---------------------------------------------------------------------------
// 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" )
    }
예제 #16
0
// ---------------------------------------------------------------------------
// 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" )
    }
예제 #17
0
// -----------------------------------------------------------------------------
// 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" )
    }
예제 #18
0
// -----------------------------------------------------------------------------
// 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" )
    }
예제 #19
0
void CRain::OnStartLoadingTexturesL()
	{
	SetStateL( ELoadingTextures );
	}
예제 #20
0
void CLT3DEngine::OnStartLoadingTexturesL()
	{
	SetStateL(ELoadingTextures);
	}