CMediaDataBase Class Reference

class CMediaDataBase : public CBase

Media Data Base.

Inherits from

Public Member Functions
~CMediaDataBase ()
TBool AddTypeL (const TDesC8 &)
TInt Bytes ()
TBool DesRemovable ()
TPtrC DestFilename ()
TInt DownloadedSize ()
void ExternalizeL ( RWriteStream &)
TInt GlobalErrorId ()
TBool HasType (const TDesC8 &)
TPtrC8 Icon ()
void InternalizeL ( RReadStream &)
TInt LastErrorId ()
TInt Method ()
TPtrC Name ()
TBool Pausable ()
TBool ProgressiveDownload ()
TPtrC8 RedirUrl ()
TBool Redirected ()
void ResetTypes ()
TInt Result ()
void SetDesRemovable ( TInt32 )
TBool SetDestFilenameL (const TDesC &)
TBool SetDownloadedSize ( TInt )
void SetGlobalErrorId ( TInt )
TBool SetIconL (const TDesC8 &)
void SetLastErrorId ( TInt )
void SetMethod ( TInt )
TBool SetNameL (const TDesC &)
void SetPausable ( TBool )
void SetProgressiveDownload ( TBool )
TBool SetRedirUrlL (const TDesC8 &)
void SetRedirected ( TBool )
void SetResult ( TInt )
TBool SetSize ( TUint )
void SetSourceUriL (const TDesC8 &)
void SetState ( TMediaObjectState )
void SetStatusCode ( TInt )
TBool SetTempFilenameL (const TDesC &)
TBool SetTypeL (const TDesC8 &)
TBool SetUrlL (const TDesC8 &)
TInt Size ()
TPtrC8 SourceUri ()
TMediaObjectState State ()
TInt StatusCode ()
TPtrC TempFilename ()
TPtrC8 Type ()
const MDesC8Array & Types ()
TInt TypesCount ()
TPtrC8 Url ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Protected Attributes
TInt32 iDesRemovableStatus
HBufC * iDestFilename
TInt iDownloadedSize
TInt iGlobalErrorId
HBufC8 * iIcon
TInt iLastErrorId
TInt iMethod
HBufC * iName
TBool iPausable
TBool iProgressiveDl
HBufC8 * iRedirUrl
TBool iRedirected
TInt iResult
TUint iSize
HBufC8 * iSourceUri
TMediaObjectState iState
TInt iStatusCode
HBufC * iTempFilename
CDesC8ArrayFlat * iTypes
HBufC8 * iUrl

Constructor & Destructor Documentation

~CMediaDataBase()

~CMediaDataBase ( ) [inline, virtual]

Destructor.

Member Functions Documentation

AddTypeL(const TDesC8 &)

TBool AddTypeL ( const TDesC8 & aType ) [pure virtual]

Set Type attribute.

Parameters

const TDesC8 & aType

Bytes()

TInt Bytes ( ) const [pure virtual]

Get size of this class including actual memory occupied by descriptors.

DesRemovable()

TBool DesRemovable ( ) const [inline]

Get Destination Removable.

DestFilename()

TPtrC DestFilename ( ) const [inline]

Get Destination Filename.

DownloadedSize()

TInt DownloadedSize ( ) const [inline]

Get Downloaded Size.

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aStream ) const [pure virtual]

Writes 'this' to the stream.

Parameters

RWriteStream & aStream

GlobalErrorId()

TInt GlobalErrorId ( ) const [inline]

Get Global Error Id.

HasType(const TDesC8 &)

TBool HasType ( const TDesC8 & aType ) const [inline]

Check if aType appears in the type list.

Parameters

const TDesC8 & aType Type to find.

Icon()

TPtrC8 Icon ( ) const [inline]

Get Icon attribute.

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream ) [pure virtual]

Initializes 'this' from stream.

Parameters

RReadStream & aStream

LastErrorId()

TInt LastErrorId ( ) const [inline]

Get Last Error Id.

Method()

TInt Method ( ) const [inline]

Get Method.

Name()

TPtrC Name ( ) const [inline]

Get Name attribute.

Pausable()

TBool Pausable ( ) const [inline]

Get Pausable attribute.

ProgressiveDownload()

TBool ProgressiveDownload ( ) const [inline]

ProgressiveDownload (DD specific).

RedirUrl()

TPtrC8 RedirUrl ( ) const [inline]

Get Redirected Url.

Redirected()

TBool Redirected ( ) const [inline]

Is Redirected?

ResetTypes()

void ResetTypes ( ) [pure virtual]

Reset the Type array.

Result()

TInt Result ( ) const [inline]

Gets the result of Media Object @ return iResult

SetDesRemovable(TInt32)

void SetDesRemovable ( TInt32 aDesRemovable ) [pure virtual]

Set destination removable attribute.

Parameters

TInt32 aDesRemovable Whether removable media drive.

SetDestFilenameL(const TDesC &)

TBool SetDestFilenameL ( const TDesC & aDestFilename ) [pure virtual]

Set destination filename attribute.

Parameters

const TDesC & aDestFilename Destination filename.

SetDownloadedSize(TInt)

TBool SetDownloadedSize ( TInt aDownloadedSize ) [pure virtual]

Set downloaded size attribute.

Parameters

TInt aDownloadedSize Downloaded size of the media object.

SetGlobalErrorId(TInt)

void SetGlobalErrorId ( TInt aGlobalErrorId ) [pure virtual]

Set global error id attribute.

Parameters

TInt aGlobalErrorId Global error ID.

SetIconL(const TDesC8 &)

TBool SetIconL ( const TDesC8 & aIcon ) [pure virtual]

Set Icon attribute.

Parameters

const TDesC8 & aIcon

SetLastErrorId(TInt)

void SetLastErrorId ( TInt aLastErrorId ) [pure virtual]

Set last error id attribute.

Parameters

TInt aLastErrorId Last error ID.

SetMethod(TInt)

void SetMethod ( TInt aMethod ) [pure virtual]

Set method attribute.

Parameters

TInt aMethod Http request method.

SetNameL(const TDesC &)

TBool SetNameL ( const TDesC & aName ) [pure virtual]

Set Name attribute.

Parameters

const TDesC & aName

SetPausable(TBool)

void SetPausable ( TBool aPausable ) [pure virtual]

Set Pausable attribute.

Parameters

TBool aPausable Whether download pausable or not.

SetProgressiveDownload(TBool)

void SetProgressiveDownload ( TBool aProgressiveDl ) [pure virtual]

Set Progressive download attribute.

Parameters

TBool aProgressiveDl Progressive Download setting.

SetRedirUrlL(const TDesC8 &)

TBool SetRedirUrlL ( const TDesC8 & aRedirUrl ) [pure virtual]

Set redir Url attribute.

Parameters

const TDesC8 & aRedirUrl Redirected Url.

SetRedirected(TBool)

void SetRedirected ( TBool aRedirected ) [pure virtual]

Set Progressive download attribute.

Parameters

TBool aRedirected Whether redirected or not.

SetResult(TInt)

void SetResult ( TInt aResult ) [pure virtual]

Set result attribute.

Parameters

TInt aResult

SetSize(TUint)

TBool SetSize ( TUint aSize ) [pure virtual]

Set Size attribute.

Parameters

TUint aSize

SetSourceUriL(const TDesC8 &)

void SetSourceUriL ( const TDesC8 & aSourceUri ) [pure virtual]

Set source URI.

Parameters

const TDesC8 & aSourceUri Source URI.

SetState(TMediaObjectState)

void SetState ( TMediaObjectState aState ) [pure virtual]

Set state attribute.

Parameters

TMediaObjectState aState

SetStatusCode(TInt)

void SetStatusCode ( TInt aStatusCode ) [pure virtual]

Set StatusCode attribute.

Parameters

TInt aStatusCode

SetTempFilenameL(const TDesC &)

TBool SetTempFilenameL ( const TDesC & aTempFilename ) [pure virtual]

Set Temp filename attribute.

Parameters

const TDesC & aTempFilename TempPath filename.

SetTypeL(const TDesC8 &)

TBool SetTypeL ( const TDesC8 & aType ) [pure virtual]

Set Type attribute (replace all).

Parameters

const TDesC8 & aType

SetUrlL(const TDesC8 &)

TBool SetUrlL ( const TDesC8 & aUrl ) [pure virtual]

Set Url attribute.

Parameters

const TDesC8 & aUrl

Size()

TInt Size ( ) const [inline]

Get Size attribute.

SourceUri()

TPtrC8 SourceUri ( ) const [inline]

Get source URI.

State()

TMediaObjectState State ( ) const [inline]

Get media state attribute.

StatusCode()

TInt StatusCode ( ) const [inline]

Gets the StatusCode of Media Object @ return iStatusCode

TempFilename()

TPtrC TempFilename ( ) const [inline]

Get TempPath Filename.

Type()

TPtrC8 Type ( ) const [inline]

Get Type attribute.

Types()

const MDesC8Array & Types ( ) const [inline]

Get Type attribute list.

TypesCount()

TInt TypesCount ( ) const [inline]

Get number of elements in the type list.

Url()

TPtrC8 Url ( ) const [inline]

Get Url attribute.

Member Data Documentation

TInt32 iDesRemovableStatus

TInt32 iDesRemovableStatus [protected]

HBufC * iDestFilename

HBufC * iDestFilename [protected]

TInt iDownloadedSize

TInt iDownloadedSize [protected]

TInt iGlobalErrorId

TInt iGlobalErrorId [protected]

HBufC8 * iIcon

HBufC8 * iIcon [protected]

TInt iLastErrorId

TInt iLastErrorId [protected]

TInt iMethod

TInt iMethod [protected]

HBufC * iName

HBufC * iName [protected]

TBool iPausable

TBool iPausable [protected]

TBool iProgressiveDl

TBool iProgressiveDl [protected]

HBufC8 * iRedirUrl

HBufC8 * iRedirUrl [protected]

TBool iRedirected

TBool iRedirected [protected]

TInt iResult

TInt iResult [protected]

TUint iSize

TUint iSize [protected]

HBufC8 * iSourceUri

HBufC8 * iSourceUri [protected]

TMediaObjectState iState

TMediaObjectState iState [protected]

TInt iStatusCode

TInt iStatusCode [protected]

HBufC * iTempFilename

HBufC * iTempFilename [protected]

CDesC8ArrayFlat * iTypes

CDesC8ArrayFlat * iTypes [protected]

HBufC8 * iUrl

HBufC8 * iUrl [protected]