photosgallery/viewframework/dataprovider/src/glxbinding.cpp
branchRCL_3
changeset 23 b023a8d2866a
parent 13 bcb43dc84c44
equal deleted inserted replaced
21:f9e827349359 23:b023a8d2866a
   161 // ----------------------------------------------------------------------------
   161 // ----------------------------------------------------------------------------
   162 // PopulateT
   162 // PopulateT
   163 // ----------------------------------------------------------------------------
   163 // ----------------------------------------------------------------------------
   164 //
   164 //
   165 void CGlxTemplateBinding::PopulateT( Alf::MulVisualItem& aItem, 
   165 void CGlxTemplateBinding::PopulateT( Alf::MulVisualItem& aItem, 
   166 	const TGlxMedia& /*aMedia*/, TBool aIsFocused ) const
   166 	const TGlxMedia& /*aMedia*/, TBool aIsFocused, TInt /*aTextureId*/ ) const
   167     {
   167     {
   168     TRACER("CGlxTemplateBinding::PopulateT");
   168     TRACER("CGlxTemplateBinding::PopulateT");
   169     // need to get the MUL field for the editable template from Akash
   169     // need to get the MUL field for the editable template from Akash
   170     
   170     
   171     aItem.SetAttribute(  Alf::mulvisualitem::KAttributeTemplate , 
   171     aItem.SetAttribute(  Alf::mulvisualitem::KAttributeTemplate , 
   332 // ----------------------------------------------------------------------------
   332 // ----------------------------------------------------------------------------
   333 // populate visual item
   333 // populate visual item
   334 // ----------------------------------------------------------------------------
   334 // ----------------------------------------------------------------------------
   335 //
   335 //
   336 void CGlxStringBinding::PopulateT( MulVisualItem& aItem, const TGlxMedia& /*aMedia*/,
   336 void CGlxStringBinding::PopulateT( MulVisualItem& aItem, const TGlxMedia& /*aMedia*/,
   337         TBool /*aIsFocused*/ ) const
   337         TBool /*aIsFocused*/, TInt /*aTextureId*/ ) const
   338     {
   338     {
   339     TRACER("CGlxStringBinding::PopulateT");
   339     TRACER("CGlxStringBinding::PopulateT");
   340     aItem.SetAttribute( MulTag(), *iStringBuffer );
   340     aItem.SetAttribute( MulTag(), *iStringBuffer );
   341     }
   341     }
   342 	
   342 	
   397 // ----------------------------------------------------------------------------
   397 // ----------------------------------------------------------------------------
   398 // populate visual item
   398 // populate visual item
   399 // ----------------------------------------------------------------------------
   399 // ----------------------------------------------------------------------------
   400 //
   400 //
   401 void CGlxMpxAttributeBinding::PopulateT( MulVisualItem& aItem/**/, const 
   401 void CGlxMpxAttributeBinding::PopulateT( MulVisualItem& aItem/**/, const 
   402     TGlxMedia& aMedia, TBool /*aIsFocused*/ ) const
   402     TGlxMedia& aMedia, TBool /*aIsFocused*/, TInt /*aTextureId*/ ) const
   403     {
   403     {
   404     TRACER("CGlxMpxAttributeBinding::PopulateT");
   404     TRACER("CGlxMpxAttributeBinding::PopulateT");
   405     //T is used for throws as per C++ standard.Hence used instead of "L"
   405     //T is used for throws as per C++ standard.Hence used instead of "L"
   406     //Ignoring this for code scanner warnings - Leaving functions called in non-leaving functions.
   406     //Ignoring this for code scanner warnings - Leaving functions called in non-leaving functions.
   407     CGlxUStringConverter* stringConverter = CGlxUStringConverter::NewL();
   407     CGlxUStringConverter* stringConverter = CGlxUStringConverter::NewL();
   508 // ----------------------------------------------------------------------------
   508 // ----------------------------------------------------------------------------
   509 // populate visual item
   509 // populate visual item
   510 // ----------------------------------------------------------------------------
   510 // ----------------------------------------------------------------------------
   511 //
   511 //
   512 void CGlxThumbnailBinding::PopulateT( MulVisualItem& aItem, const TGlxMedia& 
   512 void CGlxThumbnailBinding::PopulateT( MulVisualItem& aItem, const TGlxMedia& 
   513     aMedia, TBool aIsFocused ) const
   513     aMedia, TBool aIsFocused, TInt aTextureId ) const
   514     {
   514     {
   515     TRACER("CGlxThumbnailBinding::PopulateT");
   515     TRACER("CGlxThumbnailBinding::PopulateT");
   516     //T is used for throws as per C++ standard.Hence used instead of "L"
   516     //T is used for throws as per C++ standard.Hence used instead of "L"
   517     //Ignoring this for code scanner warnings - Leaving functions called in non-leaving functions.
   517     //Ignoring this for code scanner warnings - Leaving functions called in non-leaving functions.
   518     SetAttributeT( aItem, MulTag(), 
   518     SetAttributeT( aItem, MulTag(), 
   519         std::auto_ptr< GlxThumbnailVariantType >( 
   519         std::auto_ptr< GlxThumbnailVariantType >( 
   520             GlxThumbnailVariantType::NewL( aMedia, iThumbnailSize, 
   520             GlxThumbnailVariantType::NewL( aMedia, iThumbnailSize, 
   521         aIsFocused ) ) );
   521         aIsFocused, aTextureId ) ) );
   522         //@todo
   522         //@todo
   523     }
   523     }
   524 
   524 
   525 // ----------------------------------------------------------------------------
   525 // ----------------------------------------------------------------------------
   526 // checks whether the attributes are relevant, returns EFalse always
   526 // checks whether the attributes are relevant, returns EFalse always
   633 // ----------------------------------------------------------------------------
   633 // ----------------------------------------------------------------------------
   634 // populate visual item
   634 // populate visual item
   635 // ----------------------------------------------------------------------------
   635 // ----------------------------------------------------------------------------
   636 //
   636 //
   637 void CGlxFullScreenThumbnailBinding::PopulateT( MulVisualItem& aItem, const TGlxMedia& 
   637 void CGlxFullScreenThumbnailBinding::PopulateT( MulVisualItem& aItem, const TGlxMedia& 
   638     aMedia, TBool aIsFocused ) const
   638     aMedia, TBool aIsFocused, TInt aTextureId ) const
   639     {
   639     {
   640     TRACER("CGlxFullScreenThumbnailBinding::PopulateT");
   640     TRACER("CGlxFullScreenThumbnailBinding::PopulateT");
   641     //T is used for throws as per C++ standard.Hence used instead of "L"
   641     //T is used for throws as per C++ standard.Hence used instead of "L"
   642     //Ignoring this for code scanner warnings - Leaving functions called in non-leaving functions.
   642     //Ignoring this for code scanner warnings - Leaving functions called in non-leaving functions.
   643     SetAttributeT( aItem, MulTag(), 
   643     SetAttributeT( aItem, MulTag(), 
   644         std::auto_ptr< GlxThumbnailVariantType >( 
   644         std::auto_ptr< GlxThumbnailVariantType >( 
   645         GlxThumbnailVariantType::NewL( aMedia, iFullScreenThumbnailSize, 
   645         GlxThumbnailVariantType::NewL( aMedia, iFullScreenThumbnailSize, 
   646         aIsFocused ) ) );
   646         aIsFocused, aTextureId ) ) );
   647         
   647         
   648     }
   648     }
   649 
   649 
   650 // ----------------------------------------------------------------------------
   650 // ----------------------------------------------------------------------------
   651 // checks whether the attributes are relevant, returns EFalse always
   651 // checks whether the attributes are relevant, returns EFalse always
   768 // ----------------------------------------------------------------------------
   768 // ----------------------------------------------------------------------------
   769 // populate visual item
   769 // populate visual item
   770 // ----------------------------------------------------------------------------
   770 // ----------------------------------------------------------------------------
   771 //
   771 //
   772 void CGlxIconBinding::PopulateT( MulVisualItem& aItem, 
   772 void CGlxIconBinding::PopulateT( MulVisualItem& aItem, 
   773            const TGlxMedia& aMedia, TBool /*aIsFocused*/ ) const
   773            const TGlxMedia& aMedia, TBool /*aIsFocused*/, TInt /*aTextureId*/ ) const
   774     {
   774     {
   775     
   775     
   776     TRACER("CGlxIconBinding::PopulateT");
   776     TRACER("CGlxIconBinding::PopulateT");
   777     if(iIconProvider)
   777     if(iIconProvider)
   778     {
   778     {
   839 // ----------------------------------------------------------------------------
   839 // ----------------------------------------------------------------------------
   840 // populate visual item
   840 // populate visual item
   841 // ----------------------------------------------------------------------------
   841 // ----------------------------------------------------------------------------
   842 //
   842 //
   843 void CGlxCommandBinding::PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& /*aMedia*/,
   843 void CGlxCommandBinding::PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& /*aMedia*/,
   844         TBool /*aIsFocused*/ ) const
   844         TBool /*aIsFocused*/, TInt /*aTextureId*/ ) const
   845     {
   845     {
   846     TRACER("CGlxCommandBinding::PopulateT");
   846     TRACER("CGlxCommandBinding::PopulateT");
   847     GlxCommandBindingUtility::SetT( aItem, *iCommand );
   847     GlxCommandBindingUtility::SetT( aItem, *iCommand );
   848     }
   848     }
   849   
   849