198 * @param aValueArray the attribute values. |
198 * @param aValueArray the attribute values. |
199 * @param aName the name of the attribute to be removed. |
199 * @param aName the name of the attribute to be removed. |
200 * |
200 * |
201 * @return void |
201 * @return void |
202 */ |
202 */ |
203 static void ObjectUtils::RemoveAttributeL( CDesCArray& aNameArray, |
203 static void RemoveAttributeL( CDesCArray& aNameArray, |
204 CDesCArray& aValueArray, const TDesC& aName ); |
204 CDesCArray& aValueArray, const TDesC& aName ); |
205 |
205 |
206 /** |
206 /** |
207 * Returns the content type associated with the given class-id. |
207 * Returns the content type associated with the given class-id. |
208 * |
208 * |
209 * @param aClassId the classid to lookup. |
209 * @param aClassId the classid to lookup. |
210 * |
210 * |
211 * @return the associated content type of NULL if no association exists. |
211 * @return the associated content type of NULL if no association exists. |
212 */ |
212 */ |
213 static TDesC* ObjectUtils::GetAssociatedContentType(const TDesC& aClassId); |
213 static TDesC* GetAssociatedContentType(const TDesC& aClassId); |
214 |
214 |
215 /** |
215 /** |
216 * Returns the source param name associated with the given class-id. |
216 * Returns the source param name associated with the given class-id. |
217 * |
217 * |
218 * @param aClassId the classid to lookup. |
218 * @param aClassId the classid to lookup. |
219 * |
219 * |
220 * @return the associated source param name of NULL if no association exists. |
220 * @return the associated source param name of NULL if no association exists. |
221 */ |
221 */ |
222 static TDesC* ObjectUtils::GetAssociatedSourceParamName(const TDesC& aClassId); |
222 static TDesC* GetAssociatedSourceParamName(const TDesC& aClassId); |
223 |
223 |
224 /** |
224 /** |
225 * General purpose panic function for Object related errors. |
225 * General purpose panic function for Object related errors. |
226 * |
226 * |
227 * @since 2.6 |
227 * @since 2.6 |
235 * |
235 * |
236 * @since 2.8 |
236 * @since 2.8 |
237 * @param aUrl The uri with file name and extension. |
237 * @param aUrl The uri with file name and extension. |
238 * @return the content type of the uri |
238 * @return the content type of the uri |
239 */ |
239 */ |
240 static HBufC* ObjectUtils::GetContentTypeByUrl(const TDesC* aUri); |
240 static HBufC* GetContentTypeByUrl(const TDesC* aUri); |
241 |
241 |
242 private: // Private Methods |
242 private: // Private Methods |
243 /** |
243 /** |
244 * C++ default constructor. |
244 * C++ default constructor. |
245 */ |
245 */ |
287 * @param aClassId the class-id used to map to the requested value. |
287 * @param aClassId the class-id used to map to the requested value. |
288 * @param aValueSelector used to select the cooresponding value |
288 * @param aValueSelector used to select the cooresponding value |
289 * (either KParamName or KContentType) |
289 * (either KParamName or KContentType) |
290 * @return the value or NULL on out of memory. |
290 * @return the value or NULL on out of memory. |
291 */ |
291 */ |
292 static TDesC* ObjectUtils::GetClassidAssociation(const TDesC& aClassId, |
292 static TDesC* GetClassidAssociation(const TDesC& aClassId, |
293 TInt aValueSelector); |
293 TInt aValueSelector); |
294 }; |
294 }; |
295 |
295 |
296 #endif // OBJECTUTILS_H |
296 #endif // OBJECTUTILS_H |