254 * @since S60 3.2.3 |
254 * @since S60 3.2.3 |
255 * @param aText (const TDesC8&) listboxe item text to be checked |
255 * @param aText (const TDesC8&) listboxe item text to be checked |
256 * @return HBufC8* fixed text string |
256 * @return HBufC8* fixed text string |
257 **/ |
257 **/ |
258 IMPORT_C static HBufC8* FixListboxItemTextL( |
258 IMPORT_C static HBufC8* FixListboxItemTextL( |
259 const TDesC8& aText ); |
259 const TDesC8& aText ); |
260 }; |
260 |
|
261 /** |
|
262 * Returns the file type according a mime type |
|
263 * |
|
264 * @param const TDesC8& mime type |
|
265 * @return TUPnPItemType file type |
|
266 */ |
|
267 IMPORT_C static TUPnPItemType FileTypeByMimeTypeL( |
|
268 const TDesC8& aMimeType ); |
|
269 |
|
270 /** |
|
271 * Same as ReplaceIllegalFilenameCharactersL(), but also replaces the last |
|
272 * character by underscore if it's a dot ('.'). 8bit version. |
|
273 * |
|
274 * @param aDirName (const TDesC8&) directory name to be checked |
|
275 * @return HBufC8* fixed directory name string |
|
276 */ |
|
277 IMPORT_C static HBufC8* ReplaceIllegalDirNameCharactersL( |
|
278 const TDesC8& aDirName ); |
|
279 |
|
280 /** |
|
281 * Same as ReplaceIllegalFilenameCharactersL(), but also replaces the last |
|
282 * character by underscore if it's a dot ('.'). 16bit version. |
|
283 * |
|
284 * @param aDirName (const TDesC&) directory name to be checked |
|
285 * @return HBufC* fixed directory name string |
|
286 */ |
|
287 IMPORT_C static HBufC* ReplaceIllegalDirNameCharactersL( |
|
288 const TDesC& aDirName ); |
|
289 |
|
290 |
|
291 private: |
|
292 |
|
293 static void GetMimeTypeforImageExtensionsL( const TDesC& aExt ,HBufC8** aMimeType); |
|
294 |
|
295 static void GetMimeTypeforAudioVideoExtensionsL( const TDesC& aExt ,HBufC8** aMimeType); |
|
296 |
|
297 static void GetMimeTypeforExtensionsL( const TDesC& aExt ,HBufC8** aMimeType); |
|
298 |
|
299 static void GetFileExtensionForMimeTypesL(const TDesC8& aMimeType,HBufC** aFileExt); |
|
300 |
|
301 static void GetFileExtensionForImageMimeTypesL(const TDesC8& aMimeType,HBufC** aFileExt); |
|
302 |
|
303 static void GetFileExtensionForBMPandMP3MimeTypesL(const TDesC8& aMimeType,HBufC** aFileExt); |
|
304 |
|
305 static void GetFileExtensionForAudioMimeTypesL(const TDesC8& aMimeType,HBufC** aFileExt); |
|
306 |
|
307 static void GetFileExtensionForVideoMimeTypesL(const TDesC8& aMimeType,HBufC** aFileExt); |
|
308 |
|
309 }; |
261 |
310 |
262 |
311 |
263 #endif // UPNPCOMMONUTILS_H |
312 #endif // UPNPCOMMONUTILS_H |
264 |
313 |
265 // End of File |
314 // End of File |