67 |
67 |
68 #ifdef MDS_MULTIPLE_STAGE_IMAGE_PROCESSING |
68 #ifdef MDS_MULTIPLE_STAGE_IMAGE_PROCESSING |
69 const TUid KBGPSUid = { 0x0ADC2480 }; |
69 const TUid KBGPSUid = { 0x0ADC2480 }; |
70 #endif |
70 #endif |
71 |
71 |
72 CHarvesterImagePluginPropertyDefs::CHarvesterImagePluginPropertyDefs() : CBase(), |
72 CHarvesterImagePluginPropertyDefs::CHarvesterImagePluginPropertyDefs() : CBase() |
73 iCreationDatePropertyDef( NULL ) |
|
74 { |
73 { |
75 } |
74 } |
76 |
75 |
77 void CHarvesterImagePluginPropertyDefs::ConstructL( CMdEObjectDef& aObjectDef ) |
76 void CHarvesterImagePluginPropertyDefs::ConstructL(CMdEObjectDef& aObjectDef) |
78 { |
77 { |
79 SetByObjectDefL( aObjectDef ); |
78 CMdENamespaceDef& nsDef = aObjectDef.NamespaceDef(); |
|
79 |
|
80 // Image property definitions |
|
81 CMdEObjectDef& objectDef = nsDef.GetObjectDefL( Object::KBaseObject ); |
|
82 iCreationDatePropertyDef = &objectDef.GetPropertyDefL( Object::KCreationDateProperty ); |
|
83 iLastModifiedDatePropertyDef = &objectDef.GetPropertyDefL( Object::KLastModifiedDateProperty ); |
|
84 iSizePropertyDef = &objectDef.GetPropertyDefL( Object::KSizeProperty ); |
|
85 iTimeOffsetPropertyDef = &objectDef.GetPropertyDefL( Object::KTimeOffsetProperty ); |
|
86 iItemTypePropertyDef = &objectDef.GetPropertyDefL( Object::KItemTypeProperty ); |
|
87 iDefaultFolderPropertyDef = &objectDef.GetPropertyDefL( Object::KInDefaultFolder ); |
|
88 |
|
89 // Media property definitions |
|
90 CMdEObjectDef& mediaDef = nsDef.GetObjectDefL( MediaObject::KMediaObject ); |
|
91 iWidthPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KWidthProperty ); |
|
92 iHeightPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KHeightProperty ); |
|
93 iDescriptionPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KDescriptionProperty ); |
|
94 iCommentPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KCommentProperty ); |
|
95 iReleaseDatePropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KReleaseDateProperty ); |
|
96 iCopyrightPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KCopyrightProperty ); |
|
97 iCaptureDatePropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KCaptureDateProperty ); |
|
98 iResolutionUnitPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KResolutionUnitProperty ); |
|
99 iArtistPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KArtistProperty ); |
|
100 |
|
101 // Image property definitions |
|
102 CMdEObjectDef& imageDef = nsDef.GetObjectDefL( Image::KImageObject ); |
|
103 iPixelYDimensionPropertyDef = &imageDef.GetPropertyDefL( Image::KPixelYDimensionProperty ); |
|
104 iPixelXDimensionPropertyDef = &imageDef.GetPropertyDefL( Image::KPixelXDimensionProperty ); |
|
105 iBitsPerSamplePropertyDef = &imageDef.GetPropertyDefL( Image::KBitsPerSampleProperty ); |
|
106 iFrameCountPropertyDef = &imageDef.GetPropertyDefL( Image::KFrameCountProperty ); |
|
107 iDateTimeOriginalPropertyDef = &imageDef.GetPropertyDefL( Image::KDateTimeOriginalProperty ); |
|
108 iDateTimeDigitizedPropertyDef = &imageDef.GetPropertyDefL( Image::KDateTimeDigitizedProperty ); |
|
109 iDateTimePropertyDef = &imageDef.GetPropertyDefL( Image::KDateTimeProperty ); |
|
110 iWhiteBalancePropertyDef = &imageDef.GetPropertyDefL( Image::KWhiteBalanceProperty ); |
|
111 iFlashPropertyDef = &imageDef.GetPropertyDefL( Image::KFlashProperty ); |
|
112 iExposureProgramPropertyDef = &imageDef.GetPropertyDefL( Image::KExposureProgramProperty ); |
|
113 iMakePropertyDef = &imageDef.GetPropertyDefL( Image::KMakeProperty ); |
|
114 iModelPropertyDef = &imageDef.GetPropertyDefL( Image::KModelProperty ); |
|
115 iOrientationPropertyDef = &imageDef.GetPropertyDefL( Image::KOrientationProperty ); |
|
116 iXResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KXResolutionProperty ); |
|
117 iYResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KYResolutionProperty ); |
|
118 iYCbCrPositioningPropertyDef = &imageDef.GetPropertyDefL( Image::KYCbCrPositioningProperty ); |
|
119 iExposureTimePropertyDef = &imageDef.GetPropertyDefL( Image::KExposureTimeProperty ); |
|
120 iFNumberPropertyDef = &imageDef.GetPropertyDefL( Image::KFNumberProperty ); |
|
121 iExifVersionPropertyDef = &imageDef.GetPropertyDefL( Image::KExifVersionProperty ); |
|
122 iShutterSpeedValuePropertyDef = &imageDef.GetPropertyDefL( Image::KShutterSpeedValueProperty ); |
|
123 iApertureValuePropertyDef = &imageDef.GetPropertyDefL( Image::KApertureValueProperty ); |
|
124 iFocalLengthPropertyDef = &imageDef.GetPropertyDefL( Image::KFocalLengthProperty ); |
|
125 iFlashPixVersionPropertyDef = &imageDef.GetPropertyDefL( Image::KFlashPixVersionProperty ); |
|
126 iColourSpacePropertyDef = &imageDef.GetPropertyDefL( Image::KColourSpaceProperty ); |
|
127 iISOSpeedRatingsPropertyDef = &imageDef.GetPropertyDefL( Image::KISOSpeedRatingsProperty ); |
|
128 iComponentsConfigurationPropertyDef = &imageDef.GetPropertyDefL( Image::KComponentsConfigurationProperty ); |
|
129 iExposureBiasValuePropertyDef = &imageDef.GetPropertyDefL( Image::KExposureBiasValueProperty ); |
|
130 iSamplesPerPixelPropertyDef = &imageDef.GetPropertyDefL( Image::KSamplesPerPixelProperty ); |
|
131 iThumbCompressionPropertyDef = &imageDef.GetPropertyDefL( Image::KThumbCompressionProperty ); |
|
132 iThumbXResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KThumbXResolutionProperty ); |
|
133 iThumbYResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KThumbYResolutionProperty ); |
|
134 iThumbResolutionUnitPropertyDef = &imageDef.GetPropertyDefL( Image::KThumbResolutionUnitProperty ); |
|
135 iFocalLengthIn35mmFilmPropertyDef = &imageDef.GetPropertyDefL( Image::KFocalLengthIn35mmFilmProperty ); |
|
136 iMeteringModePropertyDef = &imageDef.GetPropertyDefL( Image::KMeteringModeProperty ); |
|
137 iRelatedSoundFilePropertyDef = &imageDef.GetPropertyDefL( Image::KRelatedSoundFileProperty ); |
|
138 iFocalPlaneResolutionUnitPropertyDef = &imageDef.GetPropertyDefL( Image::KFocalPlaneResolutionUnitProperty ); |
|
139 iFocalPlaneXResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KFocalPlaneXResolutionProperty ); |
|
140 iFocalPlaneYResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KFocalPlaneYResolutionProperty ); |
|
141 iDraftPropertyDef = &imageDef.GetPropertyDefL( Image::KDraftProperty ); |
80 } |
142 } |
81 |
143 |
82 CHarvesterImagePluginPropertyDefs* CHarvesterImagePluginPropertyDefs::NewL() |
144 CHarvesterImagePluginPropertyDefs* CHarvesterImagePluginPropertyDefs::NewL(CMdEObjectDef& aObjectDef) |
83 { |
145 { |
84 CHarvesterImagePluginPropertyDefs* self = |
146 CHarvesterImagePluginPropertyDefs* self = |
85 new (ELeave) CHarvesterImagePluginPropertyDefs(); |
147 new (ELeave) CHarvesterImagePluginPropertyDefs(); |
86 return self; |
148 CleanupStack::PushL( self ); |
87 } |
149 self->ConstructL( aObjectDef ); |
88 |
150 CleanupStack::Pop( self ); |
89 void CHarvesterImagePluginPropertyDefs::SetByObjectDefL(CMdEObjectDef& aObjectDef) |
151 return self; |
90 { |
152 } |
91 CMdENamespaceDef& nsDef = aObjectDef.NamespaceDef(); |
|
92 |
|
93 // Image property definitions |
|
94 CMdEObjectDef& objectDef = nsDef.GetObjectDefL( Object::KBaseObject ); |
|
95 iCreationDatePropertyDef = &objectDef.GetPropertyDefL( Object::KCreationDateProperty ); |
|
96 iLastModifiedDatePropertyDef = &objectDef.GetPropertyDefL( Object::KLastModifiedDateProperty ); |
|
97 iSizePropertyDef = &objectDef.GetPropertyDefL( Object::KSizeProperty ); |
|
98 iTimeOffsetPropertyDef = &objectDef.GetPropertyDefL( Object::KTimeOffsetProperty ); |
|
99 iItemTypePropertyDef = &objectDef.GetPropertyDefL( Object::KItemTypeProperty ); |
|
100 iDefaultFolderPropertyDef = &objectDef.GetPropertyDefL( Object::KInDefaultFolder ); |
|
101 |
|
102 // Media property definitions |
|
103 CMdEObjectDef& mediaDef = nsDef.GetObjectDefL( MediaObject::KMediaObject ); |
|
104 iWidthPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KWidthProperty ); |
|
105 iHeightPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KHeightProperty ); |
|
106 iDescriptionPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KDescriptionProperty ); |
|
107 iCommentPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KCommentProperty ); |
|
108 iReleaseDatePropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KReleaseDateProperty ); |
|
109 iCopyrightPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KCopyrightProperty ); |
|
110 iCaptureDatePropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KCaptureDateProperty ); |
|
111 iResolutionUnitPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KResolutionUnitProperty ); |
|
112 iArtistPropertyDef = &mediaDef.GetPropertyDefL( MediaObject::KArtistProperty ); |
|
113 |
|
114 // Image property definitions |
|
115 CMdEObjectDef& imageDef = nsDef.GetObjectDefL( Image::KImageObject ); |
|
116 iPixelYDimensionPropertyDef = &imageDef.GetPropertyDefL( Image::KPixelYDimensionProperty ); |
|
117 iPixelXDimensionPropertyDef = &imageDef.GetPropertyDefL( Image::KPixelXDimensionProperty ); |
|
118 iBitsPerSamplePropertyDef = &imageDef.GetPropertyDefL( Image::KBitsPerSampleProperty ); |
|
119 iFrameCountPropertyDef = &imageDef.GetPropertyDefL( Image::KFrameCountProperty ); |
|
120 iDateTimeOriginalPropertyDef = &imageDef.GetPropertyDefL( Image::KDateTimeOriginalProperty ); |
|
121 iDateTimeDigitizedPropertyDef = &imageDef.GetPropertyDefL( Image::KDateTimeDigitizedProperty ); |
|
122 iDateTimePropertyDef = &imageDef.GetPropertyDefL( Image::KDateTimeProperty ); |
|
123 iWhiteBalancePropertyDef = &imageDef.GetPropertyDefL( Image::KWhiteBalanceProperty ); |
|
124 iFlashPropertyDef = &imageDef.GetPropertyDefL( Image::KFlashProperty ); |
|
125 iExposureProgramPropertyDef = &imageDef.GetPropertyDefL( Image::KExposureProgramProperty ); |
|
126 iMakePropertyDef = &imageDef.GetPropertyDefL( Image::KMakeProperty ); |
|
127 iModelPropertyDef = &imageDef.GetPropertyDefL( Image::KModelProperty ); |
|
128 iOrientationPropertyDef = &imageDef.GetPropertyDefL( Image::KOrientationProperty ); |
|
129 iXResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KXResolutionProperty ); |
|
130 iYResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KYResolutionProperty ); |
|
131 iYCbCrPositioningPropertyDef = &imageDef.GetPropertyDefL( Image::KYCbCrPositioningProperty ); |
|
132 iExposureTimePropertyDef = &imageDef.GetPropertyDefL( Image::KExposureTimeProperty ); |
|
133 iFNumberPropertyDef = &imageDef.GetPropertyDefL( Image::KFNumberProperty ); |
|
134 iExifVersionPropertyDef = &imageDef.GetPropertyDefL( Image::KExifVersionProperty ); |
|
135 iShutterSpeedValuePropertyDef = &imageDef.GetPropertyDefL( Image::KShutterSpeedValueProperty ); |
|
136 iApertureValuePropertyDef = &imageDef.GetPropertyDefL( Image::KApertureValueProperty ); |
|
137 iFocalLengthPropertyDef = &imageDef.GetPropertyDefL( Image::KFocalLengthProperty ); |
|
138 iFlashPixVersionPropertyDef = &imageDef.GetPropertyDefL( Image::KFlashPixVersionProperty ); |
|
139 iColourSpacePropertyDef = &imageDef.GetPropertyDefL( Image::KColourSpaceProperty ); |
|
140 iISOSpeedRatingsPropertyDef = &imageDef.GetPropertyDefL( Image::KISOSpeedRatingsProperty ); |
|
141 iComponentsConfigurationPropertyDef = &imageDef.GetPropertyDefL( Image::KComponentsConfigurationProperty ); |
|
142 iExposureBiasValuePropertyDef = &imageDef.GetPropertyDefL( Image::KExposureBiasValueProperty ); |
|
143 iSamplesPerPixelPropertyDef = &imageDef.GetPropertyDefL( Image::KSamplesPerPixelProperty ); |
|
144 iThumbCompressionPropertyDef = &imageDef.GetPropertyDefL( Image::KThumbCompressionProperty ); |
|
145 iThumbXResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KThumbXResolutionProperty ); |
|
146 iThumbYResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KThumbYResolutionProperty ); |
|
147 iThumbResolutionUnitPropertyDef = &imageDef.GetPropertyDefL( Image::KThumbResolutionUnitProperty ); |
|
148 iFocalLengthIn35mmFilmPropertyDef = &imageDef.GetPropertyDefL( Image::KFocalLengthIn35mmFilmProperty ); |
|
149 iMeteringModePropertyDef = &imageDef.GetPropertyDefL( Image::KMeteringModeProperty ); |
|
150 iRelatedSoundFilePropertyDef = &imageDef.GetPropertyDefL( Image::KRelatedSoundFileProperty ); |
|
151 iFocalPlaneResolutionUnitPropertyDef = &imageDef.GetPropertyDefL( Image::KFocalPlaneResolutionUnitProperty ); |
|
152 iFocalPlaneXResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KFocalPlaneXResolutionProperty ); |
|
153 iFocalPlaneYResolutionPropertyDef = &imageDef.GetPropertyDefL( Image::KFocalPlaneYResolutionProperty ); |
|
154 iDraftPropertyDef = &imageDef.GetPropertyDefL( Image::KDraftProperty ); |
|
155 } |
|
156 |
153 |
157 /** |
154 /** |
158 * Default constructor |
155 * Default constructor |
159 */ |
156 */ |
160 CHarvesterImagePlugin::CHarvesterImagePlugin() : CHarvesterPlugin(), |
157 CHarvesterImagePlugin::CHarvesterImagePlugin() : CHarvesterPlugin(), |