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()
voidExternalizeL(RWriteStream &)
TInt GlobalErrorId()
TBool HasType(const TDesC8 &)
TPtrC8 Icon()
voidInternalizeL(RReadStream &)
TInt LastErrorId()
TInt Method()
TPtrC Name()
TBool Pausable()
TBool ProgressiveDownload()
TPtrC8 RedirUrl()
TBool Redirected()
voidResetTypes()
TInt Result()
voidSetDesRemovable(TInt32)
TBool SetDestFilenameL(const TDesC &)
TBool SetDownloadedSize(TInt)
voidSetGlobalErrorId(TInt)
TBool SetIconL(const TDesC8 &)
voidSetLastErrorId(TInt)
voidSetMethod(TInt)
TBool SetNameL(const TDesC &)
voidSetPausable(TBool)
voidSetProgressiveDownload(TBool)
TBool SetRedirUrlL(const TDesC8 &)
voidSetRedirected(TBool)
voidSetResult(TInt)
TBool SetSize(TUint)
voidSetSourceUriL(const TDesC8 &)
voidSetState(TMediaObjectState)
voidSetStatusCode(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 &)

voidExternalizeL(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 & aTypeType to find.

Icon()

TPtrC8 Icon()const [inline]

Get Icon attribute.

InternalizeL(RReadStream &)

voidInternalizeL(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()

voidResetTypes()[pure virtual]

Reset the Type array.

Result()

TInt Result()const [inline]

Gets the result of Media Object @ return iResult

SetDesRemovable(TInt32)

voidSetDesRemovable(TInt32aDesRemovable)[pure virtual]

Set destination removable attribute.

Parameters

TInt32 aDesRemovableWhether removable media drive.

SetDestFilenameL(const TDesC &)

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

Set destination filename attribute.

Parameters

const TDesC & aDestFilenameDestination filename.

SetDownloadedSize(TInt)

TBool SetDownloadedSize(TIntaDownloadedSize)[pure virtual]

Set downloaded size attribute.

Parameters

TInt aDownloadedSizeDownloaded size of the media object.

SetGlobalErrorId(TInt)

voidSetGlobalErrorId(TIntaGlobalErrorId)[pure virtual]

Set global error id attribute.

Parameters

TInt aGlobalErrorIdGlobal error ID.

SetIconL(const TDesC8 &)

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

Set Icon attribute.

Parameters

const TDesC8 & aIcon

SetLastErrorId(TInt)

voidSetLastErrorId(TIntaLastErrorId)[pure virtual]

Set last error id attribute.

Parameters

TInt aLastErrorIdLast error ID.

SetMethod(TInt)

voidSetMethod(TIntaMethod)[pure virtual]

Set method attribute.

Parameters

TInt aMethodHttp request method.

SetNameL(const TDesC &)

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

Set Name attribute.

Parameters

const TDesC & aName

SetPausable(TBool)

voidSetPausable(TBoolaPausable)[pure virtual]

Set Pausable attribute.

Parameters

TBool aPausableWhether download pausable or not.

SetProgressiveDownload(TBool)

voidSetProgressiveDownload(TBoolaProgressiveDl)[pure virtual]

Set Progressive download attribute.

Parameters

TBool aProgressiveDlProgressive Download setting.

SetRedirUrlL(const TDesC8 &)

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

Set redir Url attribute.

Parameters

const TDesC8 & aRedirUrlRedirected Url.

SetRedirected(TBool)

voidSetRedirected(TBoolaRedirected)[pure virtual]

Set Progressive download attribute.

Parameters

TBool aRedirectedWhether redirected or not.

SetResult(TInt)

voidSetResult(TIntaResult)[pure virtual]

Set result attribute.

Parameters

TInt aResult

SetSize(TUint)

TBool SetSize(TUintaSize)[pure virtual]

Set Size attribute.

Parameters

TUint aSize

SetSourceUriL(const TDesC8 &)

voidSetSourceUriL(const TDesC8 &aSourceUri)[pure virtual]

Set source URI.

Parameters

const TDesC8 & aSourceUriSource URI.

SetState(TMediaObjectState)

voidSetState(TMediaObjectStateaState)[pure virtual]

Set state attribute.

Parameters

TMediaObjectState aState

SetStatusCode(TInt)

voidSetStatusCode(TIntaStatusCode)[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 & aTempFilenameTempPath 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]