CUpnpResParameters Class Reference

class CUpnpResParameters : public CBase

CUpnpResParameters is created to encapsulate information that is needed in a contentdirectory res element.

dlnaprofiler.lib
Since
S60 v3.1

Inherits from

Constructor & Destructor Documentation

CUpnpResParameters()

CUpnpResParameters ( ) [private]

~CUpnpResParameters()

~CUpnpResParameters ( ) [virtual]

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

DurationL()

IMPORT_C HBufC8 * DurationL ( ) const

DurationL returns the duration in the following form: duration = hours ":" minutes ":" seconds hours = 1*5 DIGIT; 0-99999 minutes = 2 DIGIT ; 00-59 seconds = 2 DIGIT ["." 3 DIGIT] ; 00-59 (.000-.999)

Since
S60 v3.1

FileSizeL()

IMPORT_C HBufC8 * FileSizeL ( ) const

FileSizeL returns the size of the file in bytes as descriptor.

Since
S60 v3.1

IsAudioOrVideoFile()

IMPORT_C TBool IsAudioOrVideoFile ( ) const

IsAudioOrVideoFile returns true if file is audio or video file, false otherwise.

Since
S60 v3.1

IsImageFile()

IMPORT_C TBool IsImageFile ( ) const

IsImageFile returns true if file is image file, false otherwise.

Since
S60 v3.1

MimeType()

const TDesC8 & MimeType ( )

MimeType is a getter for mime type.

Since
S60 v3.1

NewL()

IMPORT_C CUpnpResParameters * NewL ( ) [static]

NewLC()

IMPORT_C CUpnpResParameters * NewLC ( ) [static]

ProtocolInfo()

IMPORT_C const TDesC8 & ProtocolInfo ( ) const

ProtocolInfo returns the protocolinfo string.

Since
S60 v3.1

ResolutionL()

IMPORT_C HBufC8 * ResolutionL ( ) const

ResolutionL returns the resolution in form widthXheight.

Since
S60 v3.1

SetDurationInSeconds(const TInt64)

void SetDurationInSeconds ( const TInt64 aDuration )

SetDurationInSeconds sets the duration attribute.

Since
S60 v3.1

Parameters

const TInt64 aDuration

SetFileSize(const TInt)

void SetFileSize ( const TInt aFileSize )

SetFileSize sets the file size attribute.

Since
S60 v3.1

Parameters

const TInt aFileSize

SetMimetypeL(const TDesC8 &)

void SetMimetypeL ( const TDesC8 & aMimetype )

SetMimetypeL sets the mime type attribute.

Since
S60 v3.1

Parameters

const TDesC8 & aMimetype

SetProtocolInfoL(const TDesC8 &)

void SetProtocolInfoL ( const TDesC8 & aProtocolInfo )

SetProtocolInfoL sets the protocolinfo attribute.

Since
S60 v3.1

Parameters

const TDesC8 & aProtocolInfo

SetResolution(const TSize)

void SetResolution ( const TSize aResolution )

SetResolution sets the resolution attribute.

Since
S60 v3.1

Parameters

const TSize aResolution

Member Data Documentation

TInt64 iDurationInSeconds

TInt64 iDurationInSeconds [private]

TInt iFileSize

TInt iFileSize [private]

HBufC8 * iMimetype

HBufC8 * iMimetype [private]

HBufC8 * iProtocolInfo

HBufC8 * iProtocolInfo [private]

TSize iResolution

TSize iResolution [private]