photosgallery/viewframework/dataprovider/inc/glxbinding.h
branchRCL_3
changeset 23 b023a8d2866a
parent 0 4e91876724a2
equal deleted inserted replaced
21:f9e827349359 23:b023a8d2866a
    66 	/**
    66 	/**
    67 	 * PopulateT populates the visual item with the data from the media item
    67 	 * PopulateT populates the visual item with the data from the media item
    68 	 * @param aItem Visual item to be populated
    68 	 * @param aItem Visual item to be populated
    69 	 * @param aMedia Media item 
    69 	 * @param aMedia Media item 
    70 	 * @param aIsFocused the item is focused or not
    70 	 * @param aIsFocused the item is focused or not
       
    71 	 * @param aTextureId textureid
    71 	 */
    72 	 */
    72 	/// T for "throws" (instead of L for "leaves")
    73 	/// T for "throws" (instead of L for "leaves")
    73 	virtual void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia, 
    74 	virtual void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia, 
    74 		TBool aIsFocused ) const = 0;
    75 		TBool aIsFocused, TInt aTextureId = KErrNotFound ) const = 0;
    75 	
    76 	
    76 	/**
    77 	/**
    77 	 * HasRelevantAttributes Checks whether the attribute is relevent to the context
    78 	 * HasRelevantAttributes Checks whether the attribute is relevent to the context
    78 	 * @param aAttrbutes MPX attributes
    79 	 * @param aAttrbutes MPX attributes
    79 	 */
    80 	 */
   158     
   159     
   159 private: 
   160 private: 
   160 
   161 
   161     // From CGlxBinding
   162     // From CGlxBinding
   162     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia, 
   163     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia, 
   163         TBool aIsFocused ) const;
   164         TBool aIsFocused,TInt aTextureId = KErrNotFound ) const;
   164 
   165 
   165     /**
   166     /**
   166 	 * @todo
   167 	 * @todo
   167 	 */        
   168 	 */        
   168     TResponse HandleFocusChanged( TBool aIsGained );
   169     TResponse HandleFocusChanged( TBool aIsGained );
   277 	void ConstructL( const Alf::mulvisualitem::TVisualAttribute& aMulTag/*const char* const aMulTag*/, const char* const aString );
   278 	void ConstructL( const Alf::mulvisualitem::TVisualAttribute& aMulTag/*const char* const aMulTag*/, const char* const aString );
   278 
   279 
   279 private: 
   280 private: 
   280     /// From CGlxBinding
   281     /// From CGlxBinding
   281     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   282     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   282         TBool aIsFocused ) const;
   283         TBool aIsFocused,TInt aTextureId = KErrNotFound ) const;
   283     
   284     
   284 private:
   285 private:
   285     /// Holds MPX data 
   286     /// Holds MPX data 
   286     HBufC* iStringBuffer;
   287     HBufC* iStringBuffer;
   287     };
   288     };
   325       * @param aAttribute MPX attribute name 
   326       * @param aAttribute MPX attribute name 
   326       */
   327       */
   327     CGlxMpxAttributeBinding( const TMPXAttribute& aAttribute, TInt aFormatStringId );
   328     CGlxMpxAttributeBinding( const TMPXAttribute& aAttribute, TInt aFormatStringId );
   328     // From CGlxBinding
   329     // From CGlxBinding
   329     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   330     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   330         TBool aIsFocused ) const;
   331         TBool aIsFocused, TInt aTextureId = KErrNotFound ) const;
   331 	
   332 	
   332     /**
   333     /**
   333       * HasRelevantAttributes
   334       * HasRelevantAttributes
   334       * @param aAttribute MPX attribute name 
   335       * @param aAttribute MPX attribute name 
   335       */	
   336       */	
   386     
   387     
   387     TResponse HandleFocusChanged( TBool aIsGained );
   388     TResponse HandleFocusChanged( TBool aIsGained );
   388     
   389     
   389 private: // From CGlxBinding
   390 private: // From CGlxBinding
   390     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   391     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   391         TBool aIsFocused ) const;
   392         TBool aIsFocused, TInt aTextureId = KErrNotFound ) const;
   392 	
   393 	
   393     /**
   394     /**
   394        * HasRelevantAttributes
   395        * HasRelevantAttributes
   395        * @param aAttribute MPX attribute name 
   396        * @param aAttribute MPX attribute name 
   396        */
   397        */
   433     
   434     
   434     TResponse HandleFocusChanged( TBool aIsGained );
   435     TResponse HandleFocusChanged( TBool aIsGained );
   435     
   436     
   436 private: // From CGlxBinding
   437 private: // From CGlxBinding
   437     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   438     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   438         TBool aIsFocused ) const;
   439         TBool aIsFocused, TInt aTextureId = KErrNotFound ) const;
   439 	
   440 	
   440     /**
   441     /**
   441        * HasRelevantAttributes
   442        * HasRelevantAttributes
   442        * @param aAttribute MPX attribute name 
   443        * @param aAttribute MPX attribute name 
   443        */
   444        */
   479       */
   480       */
   480     ~CGlxIconBinding();
   481     ~CGlxIconBinding();
   481     
   482     
   482 private: // From CGlxBinding
   483 private: // From CGlxBinding
   483     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   484     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   484         TBool aIsFocused ) const;
   485         TBool aIsFocused, TInt aTextureId = KErrNotFound ) const;
   485         
   486         
   486 private:
   487 private:
   487     const CGlxMulIconProvider* iIconProvider;
   488     const CGlxMulIconProvider* iIconProvider;
   488     
   489     
   489     TSize iIconSize;
   490     TSize iIconSize;
   519     ~CGlxCommandBinding();
   520     ~CGlxCommandBinding();
   520     
   521     
   521 private:    
   522 private:    
   522 // From CGlxBinding
   523 // From CGlxBinding
   523     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   524     void PopulateT( Alf::MulVisualItem& aItem, const TGlxMedia& aMedia,
   524         TBool aIsFocused ) const;
   525         TBool aIsFocused,TInt textureId = KErrNotFound ) const;
   525     
   526     
   526 private:    
   527 private:    
   527     MGlxBoundCommand* iCommand;
   528     MGlxBoundCommand* iCommand;
   528     };
   529     };
   529 #endif
   530 #endif