equal
deleted
inserted
replaced
120 |
120 |
121 CleanupStack::PopAndDestroy( clipDetails ); |
121 CleanupStack::PopAndDestroy( clipDetails ); |
122 } |
122 } |
123 |
123 |
124 // --------------------------------------------------------------------------- |
124 // --------------------------------------------------------------------------- |
|
125 // CHarvesterWMVPlugin::GetMimeType (from CHarvesterPlugin) |
|
126 // --------------------------------------------------------------------------- |
|
127 // |
|
128 void CHarvesterWMVPlugin::GetMimeType( const TDesC& aUri, TDes& aMimeType ) |
|
129 { |
|
130 aMimeType.Zero(); |
|
131 |
|
132 ContentAccess::CContent* content = NULL; |
|
133 |
|
134 TRAPD( err, content = ContentAccess::CContent::NewL( aUri ) ); |
|
135 if (err == KErrNone) |
|
136 { |
|
137 err = content->GetStringAttribute( ContentAccess::EMimeType, aMimeType ); |
|
138 delete content; |
|
139 } |
|
140 } |
|
141 |
|
142 // --------------------------------------------------------------------------- |
125 // Default constructor |
143 // Default constructor |
126 // --------------------------------------------------------------------------- |
144 // --------------------------------------------------------------------------- |
127 // |
145 // |
128 CHarvesterWMVPlugin::CHarvesterWMVPlugin() : CHarvesterPlugin(), iPropDefs( NULL ) |
146 CHarvesterWMVPlugin::CHarvesterWMVPlugin() : CHarvesterPlugin(), iPropDefs( NULL ) |
129 { |
147 { |
202 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
220 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
203 *iPropDefs->iLastModifiedDatePropertyDef, &aClipDetails.iModifiedDate, aIsAdd ); |
221 *iPropDefs->iLastModifiedDatePropertyDef, &aClipDetails.iModifiedDate, aIsAdd ); |
204 // File size |
222 // File size |
205 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
223 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
206 *iPropDefs->iSizePropertyDef, &aClipDetails.iFileSize, aIsAdd ); |
224 *iPropDefs->iSizePropertyDef, &aClipDetails.iFileSize, aIsAdd ); |
|
225 // Mime Type |
|
226 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
|
227 *iPropDefs->iItemTypePropertyDef, &aClipDetails.iMimeType, aIsAdd ); |
207 } |
228 } |
208 |
229 } |
209 // Mime Type |
230 |
210 CMdeObjectWrapper::HandleObjectPropertyL(mdeObject, |
|
211 *iPropDefs->iItemTypePropertyDef, &aClipDetails.iMimeType, aIsAdd ); |
|
212 } |
|