photosgallery/slideshow/engine/tsrc/t_cshwslideshowengine/t_cshwslideshowengine.cpp
branchRCL_3
changeset 18 bcb43dc84c44
parent 13 71da52165949
equal deleted inserted replaced
14:ce1c7ad1f18b 18:bcb43dc84c44
   274 
   274 
   275 // CONSTRUCTION
   275 // CONSTRUCTION
   276 T_CShwSlideshowEngine* T_CShwSlideshowEngine::NewL()
   276 T_CShwSlideshowEngine* T_CShwSlideshowEngine::NewL()
   277 	{
   277 	{
   278 	T_CShwSlideshowEngine* self = T_CShwSlideshowEngine::NewLC();
   278 	T_CShwSlideshowEngine* self = T_CShwSlideshowEngine::NewLC();
   279 	CleanupStack::Pop();
   279 	CleanupStack::Pop( self );
   280 
       
   281 	return self;
   280 	return self;
   282 	}
   281 	}
   283 
   282 
   284 T_CShwSlideshowEngine* T_CShwSlideshowEngine::NewLC()
   283 T_CShwSlideshowEngine* T_CShwSlideshowEngine::NewLC()
   285 	{
   284 	{
   441 TBool gResetThumbnailContextRequestCount = EFalse;
   440 TBool gResetThumbnailContextRequestCount = EFalse;
   442 void T_CShwSlideshowEngine::NotifyL( MShwEvent* aEvent )
   441 void T_CShwSlideshowEngine::NotifyL( MShwEvent* aEvent )
   443 	{
   442 	{
   444 	// got event so add a copy of it to the list 
   443 	// got event so add a copy of it to the list 
   445 	TInt error = iEvents.Append( aEvent->CloneLC() );
   444 	TInt error = iEvents.Append( aEvent->CloneLC() );
   446 	CleanupStack::Pop();
   445 	CleanupStack::Pop(); // aEvent->CloneLC()
   447 	// check that append succeeded
   446 	// check that append succeeded
   448 	if( error != KErrNone )
   447 	if( error != KErrNone )
   449 		{
   448 		{
   450 		// critical error, not enough space to append events
   449 		// critical error, not enough space to append events
   451 		User::Panic( _L("T_CShwSlideshowEngine::NotifyL"), __LINE__ );
   450 		User::Panic( _L("T_CShwSlideshowEngine::NotifyL"), __LINE__ );