harvester/harvesterplugins/AudioPlugin/inc/harvesteraudioplugin.h
branchRCL_3
changeset 63 e538444823de
parent 57 2872ae438bf7
equal deleted inserted replaced
57:2872ae438bf7 63:e538444823de
    54 		CMdEPropertyDef* iCopyrightPropertyDef;
    54 		CMdEPropertyDef* iCopyrightPropertyDef;
    55 		CMdEPropertyDef* iThumbnailPropertyDef;
    55 		CMdEPropertyDef* iThumbnailPropertyDef;
    56 		CMdEPropertyDef* iDatePropertyDef;
    56 		CMdEPropertyDef* iDatePropertyDef;
    57 		CMdEPropertyDef* iDrmPropertyDef;
    57 		CMdEPropertyDef* iDrmPropertyDef;
    58 		CMdEPropertyDef* iDefaultFolderPropertyDef;
    58 		CMdEPropertyDef* iDefaultFolderPropertyDef;
    59 		CMdEPropertyDef* iTrackPropertyDef;
       
    60 		CMdEPropertyDef* iBitratePropertyDef;
       
    61 
    59 
    62 		// Audio property definitions
    60 		// Audio property definitions
    63 		CMdEPropertyDef* iAlbumPropertyDef;
    61 		CMdEPropertyDef* iAlbumPropertyDef;
    64 		CMdEPropertyDef* iComposerPropertyDef;		
    62 		CMdEPropertyDef* iComposerPropertyDef;		
    65 		CMdEPropertyDef* iOriginalArtistPropertyDef;
    63 		CMdEPropertyDef* iOriginalArtistPropertyDef;
    66 		CMdEPropertyDef* iSampleRatePropertyDef;
    64 		CMdEPropertyDef* iTrackPropertyDef;
    67 		CMdEPropertyDef* iAlbumArtistPropertyDef;
       
    68 		
       
    69 
    65 
    70 	private:
    66 	private:
    71 		CHarvesterAudioPluginPropertyDefs();
    67 		CHarvesterAudioPluginPropertyDefs();
    72 	
    68 	
    73 		void ConstructL( CMdEObjectDef& aObjectDef );
    69 		void ConstructL(CMdEObjectDef& aObjectDef);
    74 
    70 
    75 	public:	
    71 	public:	
    76 		static CHarvesterAudioPluginPropertyDefs* NewL();
    72 		static CHarvesterAudioPluginPropertyDefs* NewL(CMdEObjectDef& aObjectDef);
    77 		void SetByObjectDefL( CMdEObjectDef& aObjectDef );
       
    78 	};
    73 	};
    79 
    74 
    80 class CHarvesterAudioPlugin : public CHarvesterPlugin,
    75 class CHarvesterAudioPlugin : public CHarvesterPlugin,
    81                                             public MThumbnailManagerObserver
    76                                             public MThumbnailManagerObserver
    82 	{
    77 	{
   151 		 * Get song name, artist, album, genre and composer from normal music
   146 		 * Get song name, artist, album, genre and composer from normal music
   152          * file (eg. mp3).
   147          * file (eg. mp3).
   153 		 */
   148 		 */
   154         void GetMusicPropertiesL( CHarvesterData* aHD, TBool aIsAdd, TPtrC aMimeType );
   149         void GetMusicPropertiesL( CHarvesterData* aHD, TBool aIsAdd, TPtrC aMimeType );
   155 
   150 
   156         void InitPropDefsL( CMdEObjectDef& aObjectDef );
       
   157 
       
   158 	private:
   151 	private:
   159 		CAudioMDParser* iAudioParser;
   152 		CAudioMDParser* iAudioParser;
   160 		
   153 		
   161 		CHarvesterAudioPluginPropertyDefs* iPropDefs;
   154 		CHarvesterAudioPluginPropertyDefs* iPropDefs;
   162 		
   155