void CEmTubeSplashViewContainer::ConstructL(const TRect& aRect)
	{
	iAlpha = KAlphaMax;

	iAppUi = STATIC_CAST(CEmTubeAppUi*, CEikonEnv::Static()->EikAppUi());

	CreateWindowL();

	TSize size( KBitmapSize, KBitmapSize );
	CFbsBitmap *bmp = AknIconUtils::CreateIconL( KBitmapFileName, EMbmOpenvideohubLogo_white );
	CleanupStack::PushL( bmp );
	AknIconUtils::SetSize( bmp, size );

    iBitmap = new (ELeave) CFbsBitmap();
    iBitmap->Create( size, EColor16MU );
    CFbsBitmapDevice* bitmapDevice = CFbsBitmapDevice::NewL( iBitmap );
    CleanupStack::PushL( bitmapDevice );
    CFbsBitGc* bitmapGc = CFbsBitGc::NewL();
    CleanupStack::PushL( bitmapGc );
    bitmapGc->Activate( bitmapDevice );
    bitmapGc->DrawBitmap( size, bmp );

	CleanupStack::PopAndDestroy( bitmapGc );
	CleanupStack::PopAndDestroy( bitmapDevice );
	CleanupStack::PopAndDestroy( bmp );

	iTmpBitmap = new (ELeave) CFbsBitmap;
	iTmpBitmap->Create( TSize(KBitmapSize, KBitmapSize), EColor16MU );

	SetRect(aRect);
	iClientRect = aRect;
	ActivateL();

	SetExtentToWholeScreen();
	iAppUi->StopDisplayingPopupToolbar();

	iFadeTimer = CEmTubeTimeOutTimer::NewL( *this );
	iFadeTimer->After( KFadePeriod, ECommandFadeIn );

	iTimer = CEmTubeTimeOutTimer::NewL( *this );
	iTimer->After( KSplashTime, ECommandFinish );

#ifdef __S60_50__
	MTouchFeedback* feedback = MTouchFeedback::Instance();
	if ( feedback )
		{
		feedback->EnableFeedbackForControl( this, ETrue );
		}
#endif
	}
// ---------------------------------------------------------------------------
// CBCTestMix50Case::TestTouchFeedback()
// ( menu item -21- )
// ---------------------------------------------------------------------------
//
void CBCTestMix50Case::TestTouchFeedback()   
    {
    MTouchFeedback* feedback = MTouchFeedback::Instance();
    _LIT( KMTouchFeedbackInstance,
          "MTouchFeedback::Instance" );
    AssertTrueL( ETrue, KMTouchFeedbackInstance );   
    
    feedback->TouchFeedbackSupported();
    _LIT(KMTouchFBSupported, "TouchFeedbackSuppoted()!");
    AssertTrueL( ETrue, KMTouchFBSupported );  
    
    feedback->SetFeedbackEnabledForThisApp( ETrue );
    _LIT(KMSetFeedbackEnabledForThisApp, "SetFeedbackEnabledForThisApp()!");
    AssertTrueL( ETrue, KMSetFeedbackEnabledForThisApp );  
    
    TBool fb;
    fb = feedback->FeedbackEnabledForThisApp();
    _LIT(KMFeedbackEnabledForThisApp, "FeedbackEnabledForThisApp()!");
    AssertTrueL( ETrue, KMFeedbackEnabledForThisApp );  
    //AssertTrueL( ETrue, fb );
    
    feedback->FlushRegistryUpdates();
    _LIT(KMFlushRegUpdates, "FlushRegistryUpdates()!");
    AssertTrueL(ETrue, KMFlushRegUpdates);
    
 
    TTouchLogicalFeedback type;
    feedback->InstantFeedback(type);
    _LIT(KMInstantFeedback, "InstantFeedback()!");
    AssertTrueL(ETrue, KMInstantFeedback);
    
    CAknButton* aknCAknButton = CAknButton::NewL(); 
    CleanupStack::PushL( aknCAknButton );
    
    TUint32 index;
    TRect rect;
    TTouchEventType etype;
    feedback->SetFeedbackArea( aknCAknButton, index, rect, type, etype);
    _LIT(KMSetFeedbackArea, "SetFeedbackArea()!");
    AssertTrueL(ETrue, KMSetFeedbackArea);
    
    feedback->RemoveFeedbackArea(aknCAknButton, index);
    _LIT(KMRemoveFeedbackArea, "RemoveFeedbackArea()!");
    AssertTrueL( ETrue, KMRemoveFeedbackArea );
    
    feedback->RemoveFeedbackForControl(aknCAknButton);
    _LIT(KMRemoveFeedbackForControl, "RemoveFeedbackForControl()!");
    AssertTrueL( ETrue, KMRemoveFeedbackForControl );
    
    feedback->ChangeFeedbackArea(aknCAknButton, index, rect);
    _LIT(KMChangeFeedbackArea, "ChangeFeedbackArea()!");
    AssertTrueL( ETrue, KMChangeFeedbackArea );
    
    feedback->ChangeFeedbackType(aknCAknButton, index, type);
    _LIT(KMChangeFeedbackType, "ChangeFeedbackType()!");
    AssertTrueL( ETrue, KMChangeFeedbackType );
    
    feedback->MoveFeedbackAreaToFirstPriority(aknCAknButton, index);
    _LIT(KMMoveFeedbackAreaToFirstPriority, "MoveFeedbackAreaToFirstPriority()!");
    AssertTrueL(ETrue, KMMoveFeedbackAreaToFirstPriority);
    
    feedback->InstantFeedback(aknCAknButton, type);
    _LIT(KMInstantFeedback2, "InstantFeedback(aknCAknButton, type)!");
    AssertTrueL(ETrue, KMInstantFeedback2);
    
    feedback->ControlHasFeedback(aknCAknButton);
    _LIT(KMControlHasFeedback, "ControlHasFeedback()!");
    AssertTrueL(ETrue, KMControlHasFeedback);
    
    feedback->ControlHasFeedback(aknCAknButton, index);
    _LIT(KMControlHasFeedback2, "ControlHasFeedback(index)!");
    AssertTrueL(ETrue, KMControlHasFeedback2);
    
    feedback->EnableFeedbackForControl( aknCAknButton, fb );
    _LIT(KMEnableFeedbackForControl, "EnableFeedbackForControl()!");
    AssertTrueL(ETrue, KMEnableFeedbackForControl);
    
    
    
    
    CleanupStack::PopAndDestroy( aknCAknButton );
    
    if( !feedback )
        {
        MTouchFeedback*  feedbackCreated = MTouchFeedback::CreateInstanceL();
        _LIT( KMTouchFeedbackCreateInstanceL,
              "MTouchFeedback::CreateInstanceL" );
        AssertTrueL( ETrue, KMTouchFeedbackCreateInstanceL );     
        
        
        MTouchFeedback::DestroyInstance();
        _LIT( KMTouchFeedbackDestroyInstance,
              "MTouchFeedback::DestroyInstance" );
        AssertTrueL( ETrue, KMTouchFeedbackDestroyInstance );     
                
        }

		
    }