690 |
690 |
691 CPodcastImageMessageQueryDialog* note = new ( ELeave ) CPodcastImageMessageQueryDialog( (TDesC*)&info->Description(), (TDesC*)&info->Title() ); |
691 CPodcastImageMessageQueryDialog* note = new ( ELeave ) CPodcastImageMessageQueryDialog( (TDesC*)&info->Description(), (TDesC*)&info->Title() ); |
692 |
692 |
693 note->PrepareLC( R_SHOW_INFO_NOTE ); // Adds to CleanupStack |
693 note->PrepareLC( R_SHOW_INFO_NOTE ); // Adds to CleanupStack |
694 |
694 |
695 if(feedInfo && feedInfo->ImageFileName().Length()>0) |
695 // if(feedInfo && feedInfo->ImageFileName().Length()>0) |
696 { |
696 // { |
697 CFbsBitmap * bitmap = new (ELeave) CFbsBitmap; |
697 // CFbsBitmap * bitmap = new (ELeave) CFbsBitmap; |
698 CleanupStack::PushL(bitmap); |
698 // CleanupStack::PushL(bitmap); |
699 |
699 // |
700 TRAPD(loaderror, iPodcastModel.ImageHandler().LoadFileAndScaleL(bitmap, feedInfo->ImageFileName(), TSize(KPodcastImageWidth, KPodcastImageHeight), *this)); |
700 // TRAPD(loaderror, iPodcastModel.ImageHandler().LoadFileAndScaleL(bitmap, feedInfo->ImageFileName(), TSize(KPodcastImageWidth, KPodcastImageHeight), *this)); |
701 |
701 // |
702 if(loaderror == KErrNone) |
702 // if(loaderror == KErrNone) |
703 { |
703 // { |
704 CActiveScheduler::Start(); |
704 // CActiveScheduler::Start(); |
705 if(iLastImageHandlerError == KErrNone) |
705 // if(iLastImageHandlerError == KErrNone) |
706 { |
706 // { |
707 CEikImage* image = static_cast<CEikImage*>(note->ControlOrNull(EPodcastShowInfoImage)); |
707 // CEikImage* image = static_cast<CEikImage*>(note->ControlOrNull(EPodcastShowInfoImage)); |
708 image->SetBitmap(bitmap); |
708 // image->SetBitmap(bitmap); |
709 CleanupStack::Pop(bitmap); |
709 // CleanupStack::Pop(bitmap); |
710 bitmap = NULL; |
710 // bitmap = NULL; |
711 } |
711 // } |
712 else |
712 // else |
713 { |
713 // { |
714 CleanupStack::PopAndDestroy(bitmap); |
714 // CleanupStack::PopAndDestroy(bitmap); |
715 bitmap = NULL; |
715 // bitmap = NULL; |
716 } |
716 // } |
717 } |
717 // } |
718 else |
718 // else |
719 { |
719 // { |
720 CleanupStack::PopAndDestroy(bitmap); |
720 // CleanupStack::PopAndDestroy(bitmap); |
721 bitmap = NULL; |
721 // bitmap = NULL; |
722 } |
722 // } |
723 } |
723 // } |
724 |
724 |
725 note->RunLD(); |
725 note->RunLD(); |
726 } |
726 } |
727 } |
727 } |
728 |
728 |