harvester/harvesterplugins/VideoPlugin/inc/harvestervideoplugin.h
branchRCL_3
changeset 63 e538444823de
parent 47 b73252188534
equal deleted inserted replaced
57:2872ae438bf7 63:e538444823de
    99         	}
    99         	}
   100 
   100 
   101         ~CVideoHarvestData()
   101         ~CVideoHarvestData()
   102         	{
   102         	{
   103         	delete iCopyright;
   103         	delete iCopyright;
   104         	iCopyright = NULL;
       
   105             delete iAuthor;
   104             delete iAuthor;
   106             iAuthor = NULL;
       
   107             delete iGenre;
   105             delete iGenre;
   108             iGenre = NULL;
       
   109             delete iPerformer;
   106             delete iPerformer;
   110             iPerformer = NULL;
       
   111             delete iDescription;
   107             delete iDescription;
   112             iDescription = NULL;
       
   113             delete iTitle;
   108             delete iTitle;
   114             iTitle = NULL;
       
   115 
   109 
   116         	delete iMimeBuf;
   110         	delete iMimeBuf;
   117         	iMimeBuf = NULL;
       
   118         	}
   111         	}
   119     };
   112     };
   120 
   113 
   121 /**
   114 /**
   122  * Helper class to hold all property definitions 
   115  * Helper class to hold all property definitions 
   160 		CHarvesterVideoPluginPropertyDefs();
   153 		CHarvesterVideoPluginPropertyDefs();
   161 	
   154 	
   162 		void ConstructL(CMdEObjectDef& aObjectDef);
   155 		void ConstructL(CMdEObjectDef& aObjectDef);
   163 
   156 
   164 	public:	
   157 	public:	
   165 		static CHarvesterVideoPluginPropertyDefs* NewL();
   158 		static CHarvesterVideoPluginPropertyDefs* NewL(CMdEObjectDef& aObjectDef);
   166 		void SetByObjectDefL( CMdEObjectDef& aObjectDef );
       
   167 	};
   159 	};
   168 
   160 
   169 class CHarvesterVideoPlugin : public CHarvesterPlugin
   161 class CHarvesterVideoPlugin : public CHarvesterPlugin
   170   	{
   162   	{
   171 	public:
   163 	public:
   238 	
   230 	
   239 		const THarvestingHandling* FindHandler( const TDesC& aUri );
   231 		const THarvestingHandling* FindHandler( const TDesC& aUri );
   240 		
   232 		
   241 		void CheckForCodecSupport( HBufC* aMimeBuffer, CVideoHarvestData& aVHD );
   233 		void CheckForCodecSupport( HBufC* aMimeBuffer, CVideoHarvestData& aVHD );
   242 		
   234 		
   243         void InitPropDefsL( CMdEObjectDef& aObjectDef );
       
   244 
       
   245 	private:
   235 	private:
   246 		RArray<THarvestingHandling> iMimeTypeMappings;
   236 		RArray<THarvestingHandling> iMimeTypeMappings;
   247 		
   237 		
   248 		CHarvesterVideoPluginPropertyDefs* iPropDefs;
   238 		CHarvesterVideoPluginPropertyDefs* iPropDefs;
   249 		
   239