UPnPCommonUtils Class Reference
UPnP Framework's common utility functions
upnputilities.lib
- Since
- S60 3.0
Member Functions Documentation
DeleteTempFilesL()
IMPORT_C void | DeleteTempFilesL | ( | ) | [static] |
Delete upnp genereated temporary files from download locations both from phone memory and memory card Leave in case of fatal errors
- Since
- S60 3.1
DesC8ToInt(const TDesC8 &)
IMPORT_C TInt | DesC8ToInt | ( | const TDesC8 & | aObject | ) | [static] |
Convert
TDesC8 to TInt
- Since
- S60 3.1
Parameters
const TDesC8 & aObject | Descriptor to convert |
FileExtensionByMimeTypeL(const TDesC8 &)
IMPORT_C HBufC * | FileExtensionByMimeTypeL | ( | const TDesC8 & | aMimeType | ) | [static] |
Return the file extension according a mime type
FindContainerByTitle(const CUpnpContainerList &, const TDesC8 &)
Return container with given title from list of containers
FixListboxItemTextL(const TDesC8 &)
IMPORT_C HBufC8 * | FixListboxItemTextL | ( | const TDesC8 & | aText | ) | [static] |
Removes the tab character of the given text string and returns a new fixed file title string.
Parameters
const TDesC8 & aText | (const TDesC8&) listboxe item text to be checked |
GetMimeTypeByExtensionL(const TDesC &)
IMPORT_C HBufC8 * | GetMimeTypeByExtensionL | ( | const TDesC & | aFileName | ) | [static] |
Resolves the MIME type of a file by it's extension. Leaves in error cases.
IntToDesC8LC(const TInt &)
IMPORT_C HBufC8 * | IntToDesC8LC | ( | const TInt & | aObject | ) | [static] |
Convert TInt to
TDesC8 - Since
- S60 3.1
Parameters
const TInt & aObject | TInt to convert |
IsAudioSupported(const TDesC8 &)
IMPORT_C TBool | IsAudioSupported | ( | const TDesC8 & | aProtocolInfo | ) | [static] |
Checks if device supports audio
IsImageSupported(const TDesC8 &)
IMPORT_C TBool | IsImageSupported | ( | const TDesC8 & | aProtocolInfo | ) | [static] |
Checks if device supports images
IsPlaylistContainerL(const CUpnpObject &)
Checks if the given CUpnpObject is a playlist container. Leaves if the given object is not correctly formed.
Parameters
const CUpnpObject & aContainer | (const CUpnpObject&) filename to be checked |
IsVideoSupported(const TDesC8 &)
IMPORT_C TBool | IsVideoSupported | ( | const TDesC8 & | aProtocolInfo | ) | [static] |
Checks if device supports video
MemoryCardStateL()
IMPORT_C TBool | MemoryCardStateL | ( | ) | [static] |
Returns status whether memory card is inserted or not.
RenameFileL(const TDesC &)
IMPORT_C HBufC * | RenameFileL | ( | const TDesC & | aFilePath | ) | [static] |
Rename the downloaded file to s_upnpfwtemp(s is original filename) used in play remote item on local device
- Since
- S60 3.1
Parameters
const TDesC & aFilePath | original file path |
ReplaceIllegalFilenameCharactersL(const TDesC8 &)
IMPORT_C HBufC8 * | ReplaceIllegalFilenameCharactersL | ( | const TDesC8 & | aFileName | ) | [static] |
Replaces the illegal filename characters of the given filename string and returns a new fixed filename string. The following characters are replaced with an underscore: >, <, ", \, /, *, |, : and ?. 8bit version.
Parameters
const TDesC8 & aFileName | (const TDesC8&) filename to be checked |
ReplaceIllegalFilenameCharactersL(const TDesC &)
IMPORT_C HBufC * | ReplaceIllegalFilenameCharactersL | ( | const TDesC & | aFileName | ) | [static] |
Replaces the illegal filename characters of the given filename string and returns a new fixed filename string. The following characters are replaced with an underscore: >, <, ", \, /, *, |, : and ?. 16bit version.
Parameters
const TDesC & aFileName | (const TDesC&) filename to be checked |
ReplacePlaceHolderInURIL(CUpnpItem &, const TInetAddr &)
IMPORT_C void | ReplacePlaceHolderInURIL | ( | CUpnpItem & | aItem, |
| const TInetAddr & | aAddress |
| ) | [static] |
Replaces IP address and port number placeholders of the RES element's URI string of the given item.
Parameters
CUpnpItem & aItem | (CUpnpItem&) the item which RES element's URI is to be updated |
const TInetAddr & aAddress | (const TInetAddr&) the address and port number of the updated URI |
ResolveFileTypeL(const TDesC &)
Resolves the type of a file. Leaves in error cases.
ResolveMimeTypeL(const TDesC &)
IMPORT_C HBufC8 * | ResolveMimeTypeL | ( | const TDesC & | aFileName | ) | [static] |
Resolves the MIME type of a file by it's content, using the platform MIME recognizer. Leaves in error cases.
TTimeToUPnPDateL(TTime)
IMPORT_C HBufC * | TTimeToUPnPDateL | ( | TTime | aTime | ) | [static] |
Converts TTime to UPnP date string
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.