CUpnpResResolver Class Reference

class CUpnpResResolver : public CBase

CUpnpResResolver is a class for resolving res field attributes for a given file.

CUpnpResResolver class can be used to resolve a res field attributes for a media file (image, AV, video). Attributes resolved for media files are:
  • Protocolinfo for all files.

  • Resolution and size for images.

  • Duration and size for videos.

  • Duration and size for music.

dlnaprofiler.lib
Since
S60 v3.1

Inherits from

Constructor & Destructor Documentation

CUpnpResResolver()

CUpnpResResolver ( ) [private]

~CUpnpResResolver()

~CUpnpResResolver ( ) [virtual]

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

GetAudioDurationL(const TDesC &)

void GetAudioDurationL ( const TDesC & aFilename ) [private]

GetAudioDurationL obtains the duration of a audio file. After call the duration is in iDuration member variable.

Since
S60 v3.1

Parameters

const TDesC & aFilename

GetFileSizeL(RFile &)

TInt GetFileSizeL ( RFile & aFile ) [private]

GetFileSizeL returns the size of file in bytes.

Since
S60 v3.1

Parameters

RFile & aFile

GetImageResolutionL(RFile &, const TDesC8 &)

TSize GetImageResolutionL ( RFile & aFile,
const TDesC8 & aMimetype
) [private]

GetImageResolutionL returns the resolution of the image.

Since
S60 v3.1

Parameters

RFile & aFile
const TDesC8 & aMimetype

GetMimetypeL(RFile &)

HBufC8 * GetMimetypeL ( RFile & aFile ) [private]

GetMimetypeL returns the mime type of the file.

Since
S60 v3.1

Parameters

RFile & aFile

GetResParametersL(const TDesC &)

IMPORT_C CUpnpResParameters * GetResParametersL ( const TDesC & aFilename )

GetResParametersL resolves parameters that will be needed in res-element attributes.

Since
S60 v3.1

Parameters

const TDesC & aFilename

GetVideoDurationL(RFile &)

void GetVideoDurationL ( RFile & aFile ) [private]

GetVideoDurationL obtains the duration of a video file. After call the duration is in iDuration member variable.

Since
S60 v3.1

Parameters

RFile & aFile

MapcInitComplete(TInt, const TTimeIntervalMicroSeconds &)

void MapcInitComplete ( TInt aError,
const TTimeIntervalMicroSeconds & aDuration
) [private]

From MMdaAudioPlayerCallback . MapcInitComplete

Since
S60 v3.1

Parameters

TInt aError error code
const TTimeIntervalMicroSeconds & aDuration duration of the file

MapcPlayComplete(TInt)

void MapcPlayComplete ( TInt aError ) [private]

From MMdaAudioPlayerCallback . MapcPlayComplete

Since
S60 v3.1

Parameters

TInt aError error code

NewL()

IMPORT_C CUpnpResResolver * NewL ( ) [static]

NewLC()

IMPORT_C CUpnpResResolver * NewLC ( ) [static]

Member Data Documentation

CMdaAudioPlayerUtility * iAudioplayer

CMdaAudioPlayerUtility * iAudioplayer [private]

TTimeIntervalMicroSeconds iDuration

TTimeIntervalMicroSeconds iDuration [private]

CActiveSchedulerWait * iWait

CActiveSchedulerWait * iWait [private]