photosgallery/collectionframework/plugins/glxcollectionpluginmonths/inc/glxcollectionpluginmonths.h
changeset 2 7d9067c6fcb1
parent 0 4e91876724a2
child 47 f9e827349359
equal deleted inserted replaced
1:9ba538e329bd 2:7d9067c6fcb1
   102     		TArray<TMPXAttribute> aCpiAttributes, TGlxMediaId aMediaId);
   102     		TArray<TMPXAttribute> aCpiAttributes, TGlxMediaId aMediaId);
   103 
   103 
   104 	TBool IsUpdateMessageIgnored(CMPXMessage& aMessage);
   104 	TBool IsUpdateMessageIgnored(CMPXMessage& aMessage);
   105 
   105 
   106     TGlxFilterProperties DefaultFilter(TInt aLevel);
   106     TGlxFilterProperties DefaultFilter(TInt aLevel);
       
   107     
       
   108 private:
       
   109     /**
       
   110      * enum TMonthStringType
       
   111      *
       
   112      * This is mainly passed as a param to be used by the method 
       
   113      * GetMonthNameAsStringLC().
       
   114      * GetMonthNameAsStringLC() manipulates and returns the months name in 
       
   115      * Title format or sub-title format based on this enum which is passed as 
       
   116      * param.
       
   117      */  
       
   118     enum TMonthStringType
       
   119         {
       
   120         EMonthNameAsSubtitle, /// Month name is desired in sub-title format
       
   121         EMonthNameAsTitle  /// Month name is desired in title format
       
   122         };
       
   123 
       
   124 private:
       
   125     /**
       
   126      * Utility method to take a TMonth param, and convert it into a string. This
       
   127      * string is returned to the calling method. The returned string can contain
       
   128      * the month name in sub-title or title format. Subtitle format is used in 
       
   129      * the list views to signify months ("Jan", "Feb", ... ). Title format is 
       
   130      * used in mpnth-grid views to name the view ("January", "February", ...).     
       
   131      *
       
   132      * @param aMonth The month whose name is desired as a string.
       
   133      * @param aStrType enum specified by calling method to tell how it wants the 
       
   134      * month string to be.   
       
   135      */  
       
   136     HBufC* GetMonthNameAsStringLC( const TMonth& aMonth,
       
   137             const TMonthStringType& aStrType);
   107     };
   138     };
   108 
   139 
   109 #endif      // C_GLXCOLLECTIONPLUGINMONTHS_H
   140 #endif      // C_GLXCOLLECTIONPLUGINMONTHS_H
   110 
   141