UPnPFileUtility Class Reference

class UPnPFileUtility

Utility for working with local files in upnp context. The class contains static methods that can be used to check various things related to downloading files to local filesystem, or when playing local files via upnp.

upnpavcontrollerhelper.lib
Since
S60 3.2
Public Member Functions
IMPORT_C TBoolFitsInMemory(const CUpnpElement &)
IMPORT_C TBoolIsFileProtectedL(const TDesC &)
Private Member Functions
TBool FitsInMemoryL(const CUpnpElement &)

Member Functions Documentation

FitsInMemory(const CUpnpElement &)

IMPORT_C TBoolFitsInMemory(const CUpnpElement &aResource)[static]
Checks if the given remote object (and the given particular resource) can fit in memory when downloaded using current default copy target setting
Since
S60 3.2

Parameters

const CUpnpElement & aResourcethe resource to download

FitsInMemoryL(const CUpnpElement &)

TBool FitsInMemoryL(const CUpnpElement &aResource)[private, static]
Checks if the given remote object (and the given particular resource) can fit in memory when downloaded using current default copy target setting
Since
S60 3.2

Parameters

const CUpnpElement & aResourcethe resource to download

IsFileProtectedL(const TDesC &)

IMPORT_C TBoolIsFileProtectedL(const TDesC &aFilePath)[static]

Checks if given file content is protected. Note that if a file is protected, it can not be copied to a remote upnp mediaserver, nor it can be played via a remote renderer. A client should use this interface before attempting any of these operations for usability sake. Currently supports checks for OEM-DRM and WM-DRM. The method will leave if the file is not found, or if the protection status can not be checked for some reason.

Since
S60 3.2

Parameters

const TDesC & aFilePathfull path to file