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