--- a/harvester/harvesterplugins/OMADRMPlugin/inc/harvesteromadrmplugin.h Wed Jul 14 07:57:22 2010 +0300
+++ b/harvester/harvesterplugins/OMADRMPlugin/inc/harvesteromadrmplugin.h Fri Jul 23 10:03:59 2010 +0300
@@ -18,13 +18,17 @@
#ifndef __CHARVESTEROMADRMPLUGIN_H__
#define __CHARVESTEROMADRMPLUGIN_H__
+#include <mdeobject.h>
#include <e32base.h>
#include <apmstd.h>
-#include "harvesterplugin.h"
+#include <imageconversion.h>
+#include <harvesterplugin.h>
+#include <harvesterdata.h>
+
// FORWARD DECLARATION
-class CMdEObjectDef;
-class CMdEObject;
+class CFileData;
+class CHarvestData;
/**
* A data transfer class for harvested drm metadata.
@@ -84,7 +88,12 @@
CMdEPropertyDef* iAuthorPropertyDef;
CMdEPropertyDef* iGenrePropertyDef;
CMdEPropertyDef* iDefaultFolderPropertyDef;
+ CMdEPropertyDef* iWidthPropertyDef;
+ CMdEPropertyDef* iHeightPropertyDef;
+ // Image property definitions
+ CMdEPropertyDef* iFrameCountPropertyDef;
+ CMdEPropertyDef* iBitsPerSamplePropertyDef;
private:
CHarvesterOmaDrmPluginPropertyDefs();
@@ -126,35 +135,60 @@
private:
/**
+ * Gathers data from file to meta data object.
+ *
+ * @param aMetadataObject A reference to meta data object to gather the data.
+ * @param aDRMharvestData
+ * @param aFileData
+ * @param aHarvestData
+ */
+ TInt GatherDataL( CMdEObject& aMetadataObject, CDRMHarvestData& aDRMharvestData,
+ CFileData& aFileData, CHarvestData& aHarvestData );
+
+
+
+ /**
+
* C++ constructor - not exported;
* implicitly called from NewL()
*
* @return an instance of CHarvesterOMADRMPlugin.
*/
- CHarvesterOMADRMPlugin();
+
+ /**
+ * Handle addition of new mde video objects.
+ *
+ * @param aMetadataObject A reference to meta data object to gather the data.
+ * @param aDRMharvestData
+ * @param aFileData
+ * @param aHarvestData
+ */
+ void HandleObjectPropertiesL( CHarvestData& aHarvestData, CDRMHarvestData& aDRMharvestData, CFileData& aFileData,
+ CHarvesterData& aHarvesterData, TBool aIsAdd );
- /**
- * 2nd phase construction, called by NewLC()
+ // Default constructor
+ CHarvesterOMADRMPlugin();
+ /**
+ * 2nd phase construction, called by NewLC()
*/
void ConstructL();
- /**
- * Gathers data from file to meta data object.
- *
- * @param aMetadataObject A reference to meta data object to gather the data.
- * @param aHarvestData An object to store harvested video file data.
- */
- void GatherDataL( CMdEObject& aMetadataObject, CDRMHarvestData& aHarvestData );
+ protected:
+ /**
+ * Handle to File server session.
+ */
+ RFs iFs;
+
+ private:
+ /**
+ * image decoder
+ */
+
+
- /**
- * Handle addition of new mde video objects.
- *
- * @param aMetadataObject A reference to meta data object to gather the data.
- * @param aHarvestData An object containing harvested video file data.
- */
- void HandleObjectPropertiesL( CHarvesterData& aHD, CDRMHarvestData& aVHD, TBool aIsAdd );
+
- private:
+
CHarvesterOmaDrmPluginPropertyDefs* iPropDefs;
TInt iMaxTextLength;
@@ -167,6 +201,7 @@
HBufC* iPhoneSoundsPath;
HBufC* iMmcSoundsPath;
+
};
#endif // __CHarvesterOMADRMPlugin_H__