videocollection/hgmyvideos/src/vcxhgmyvideosvideomodelhandler.cpp
branchRCL_3
changeset 20 2d690156cf8f
parent 18 baf439b22ddd
equal deleted inserted replaced
18:baf439b22ddd 20:2d690156cf8f
   123 //
   123 //
   124 void CVcxHgMyVideosVideoModelHandler::ConstructL()
   124 void CVcxHgMyVideosVideoModelHandler::ConstructL()
   125     {
   125     {
   126     iVideoArray = CVcxHgMyVideosVideoList::NewL();
   126     iVideoArray = CVcxHgMyVideosVideoList::NewL();
   127 
   127 
       
   128     iVideoIndicator = CMyVideosIndicator::NewL();
       
   129 
   128     iDataUpdater = CVcxHgMyVideosVideoDataUpdater::NewL( iModel,
   130     iDataUpdater = CVcxHgMyVideosVideoDataUpdater::NewL( iModel,
   129                                                          iScroller,                                                        
   131                                                          iScroller,                                                        
   130                                                          *iVideoArray );
   132                                                          *iVideoArray,
   131 
   133                                                          *iVideoIndicator );
   132     iVideoIndicator = CMyVideosIndicator::NewL();
   134 
   133     }
   135     }
   134 
   136 
   135 // -----------------------------------------------------------------------------
   137 // -----------------------------------------------------------------------------
   136 // Destructor
   138 // Destructor
   137 // -----------------------------------------------------------------------------
   139 // -----------------------------------------------------------------------------
   789 // CVcxHgMyVideosVideoModelHandler::UpdateVideoListItemL()
   791 // CVcxHgMyVideosVideoModelHandler::UpdateVideoListItemL()
   790 // -----------------------------------------------------------------------------
   792 // -----------------------------------------------------------------------------
   791 // 
   793 // 
   792 void CVcxHgMyVideosVideoModelHandler::UpdateVideoListItemL( TInt aListIndex )
   794 void CVcxHgMyVideosVideoModelHandler::UpdateVideoListItemL( TInt aListIndex )
   793     {
   795     {
       
   796     IPTVLOGSTRING2_LOW_LEVEL( "CVcxHgMyVideosVideoModelHandler::UpdateVideoListItemL() ENTER list index = %d", aListIndex );
       
   797 
   794     if ( aListIndex >= 0 && aListIndex < iScroller.ItemCount() )
   798     if ( aListIndex >= 0 && aListIndex < iScroller.ItemCount() )
   795         {
   799         {
   796         TVcxHgMyVideosIndicatorHelper indicatorHelper;
   800         TVcxHgMyVideosIndicatorHelper indicatorHelper;
   797         CMPXMedia* media( NULL );
   801         CMPXMedia* media( NULL );
   798         
   802         
   854                 }
   858                 }
   855             if ( isMarked )
   859             if ( isMarked )
   856                 {
   860                 {
   857                 item.SetFlags( CHgItem::EHgItemFlagMarked );
   861                 item.SetFlags( CHgItem::EHgItemFlagMarked );
   858                 }
   862                 }
   859             if ( VideoIndicator().IsIndicatorShown( *media ) )
   863             if ( item.Icon() && VideoIndicator().IsIndicatorShown( *media ) )
   860                 {
   864                 {
   861                 item.SetFlags( CHgItem::EHgItemFlagsIconOverlayIndicator );
   865                 item.SetFlags( CHgItem::EHgItemFlagsIconOverlayIndicator );
   862                 }
   866                 }
   863             if ( media->IsSupported( KMPXMediaGeneralDate ) )
   867             if ( media->IsSupported( KMPXMediaGeneralDate ) )
   864                 {
   868                 {
   865                 TInt64 itemDate = media->ValueTObjectL<TInt64>( KMPXMediaGeneralDate );
   869                 TInt64 itemDate = media->ValueTObjectL<TInt64>( KMPXMediaGeneralDate );
   866                 item.SetTime( itemDate );
   870                 item.SetTime( itemDate );
   867                 }    
   871                 }    
   868             }
   872             }
   869         }
   873         }
       
   874 
       
   875     IPTVLOGSTRING_LOW_LEVEL( "CVcxHgMyVideosVideoModelHandler::UpdateVideoListItemL() RETURN" );
   870     }
   876     }
   871 
   877 
   872 // -----------------------------------------------------------------------------
   878 // -----------------------------------------------------------------------------
   873 // CVcxHgMyVideosVideoModelHandler::DeleteItemL()
   879 // CVcxHgMyVideosVideoModelHandler::DeleteItemL()
   874 // -----------------------------------------------------------------------------
   880 // -----------------------------------------------------------------------------