RHttpDownload Class Reference

#include <mw/downloadmgrclient.h>

class RHttpDownload : public RSubSessionBase

Inherits from

  • RHttpDownload
    Public Member Enumerations
    enumTCodProgressState { ENotActive, EPaused, EInProgress }
    Public Member Functions
    voidClose()
    IMPORT_C TIntDelete()
    IMPORT_C TIntGetBoolAttribute(const TUint, TBool &)
    IMPORT_C TIntGetBoolAttribute(const TUint, const TInt32 &, TBool &)
    IMPORT_C TIntGetFileHandleAttribute(RFile &)
    IMPORT_C TIntGetIntAttribute(const TUint, TInt32 &)
    IMPORT_C TIntGetIntAttribute(const TUint, const TInt32 &, TInt32 &)
    TInt GetProductDownloadedSize()
    IMPORT_C TIntGetStringAttribute(const TUint, TDes16 &)
    IMPORT_C TIntGetStringAttribute(const TUint, TDes8 &)
    IMPORT_C TIntGetStringAttribute(const TUint, const TInt32 &, TDes16 &)
    IMPORT_C TIntGetStringAttribute(const TUint, const TInt32 &, TDes8 &)
    TBool IsClosed()
    IMPORT_C TIntMove()
    IMPORT_C TIntPause()
    IMPORT_C TIntReset()
    voidResumeCodDownloadL()
    IMPORT_C TIntSetBoolAttribute(const TUint, TBool)
    IMPORT_C TIntSetDownloadDataAttribute(const TDesC8 &)
    IMPORT_C TIntSetFileHandleAttribute(RFile &)
    IMPORT_C TIntSetIntAttribute(const TUint, TInt32)
    IMPORT_C TIntSetStringAttribute(const TUint, const TDesC16 &)
    IMPORT_C TIntSetStringAttribute(const TUint, const TDesC8 &)
    IMPORT_C TIntSetStringAttribute(const TUint, const TInt32 &, const TDesC16 &)
    IMPORT_C TIntSetTrackDataAttribute(const TInt, const TDesC8 &)
    IMPORT_C TIntStart()
    Inherited Functions
    RSubSessionBase::CloseSubSession(TInt)
    RSubSessionBase::CreateAutoCloseSubSession(RSessionBase &,TInt,const TIpcArgs &)
    RSubSessionBase::CreateSubSession(const RSessionBase &,TInt)
    RSubSessionBase::CreateSubSession(const RSessionBase &,TInt,const TIpcArgs &)
    RSubSessionBase::RSubSessionBase()
    RSubSessionBase::Send(TInt)const
    RSubSessionBase::Send(TInt,const TIpcArgs &)const
    RSubSessionBase::SendReceive(TInt)const
    RSubSessionBase::SendReceive(TInt,TRequestStatus &)const
    RSubSessionBase::SendReceive(TInt,const TIpcArgs &)const
    RSubSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
    RSubSessionBase::Session()const
    RSubSessionBase::SubSessionHandle()const

    Detailed Description

    Creates a download manager subsession and performs operations on it

    Since
    Series 60 2.8

    Member Enumeration Documentation

    Enum TCodProgressState

    Cod download progress states

    EnumeratorValueDescription
    ENotActive
    EPaused
    EInProgress

    Member Function Documentation

    Close ( )

    voidClose()

    Closes download subsession.

    Returns: None.

    Delete ( )

    IMPORT_C TIntDelete()

    Deletes downloading.

    Returns: None.

    GetBoolAttribute ( const TUint, TBool & )

    IMPORT_C TIntGetBoolAttribute(const TUintaAttribute,
    TBool &aValue
    )

    Gets the value for a TBool attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be retrived.
    aValueOn completion, contains the requested TBool attribute.

    Returns: None.

    GetBoolAttribute ( const TUint, const TInt32 &, TBool & )

    IMPORT_C TIntGetBoolAttribute(const TUintaAttribute,
    const TInt32 &aMoIndex,
    TBool &aValue
    )

    Gets the value for a TBool attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be retrived.
    aMoIndexIdentifies the media object index.
    aValueOn completion, contains the requested TBool attribute.

    Returns: None.

    GetFileHandleAttribute ( RFile & )

    IMPORT_C TIntGetFileHandleAttribute(RFile &aFile)

    Gets the download's destination file's handle.

    ParameterDescription
    aFileRFile that adopts file handle from download.

    GetIntAttribute ( const TUint, TInt32 & )

    IMPORT_C TIntGetIntAttribute(const TUintaAttribute,
    TInt32 &aValue
    )

    Gets the value for a TInt attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be retrived.
    aValueOn completion, contains the requested TInt attribute.

    Returns: None.

    GetIntAttribute ( const TUint, const TInt32 &, TInt32 & )

    IMPORT_C TIntGetIntAttribute(const TUintaAttribute,
    const TInt32 &aMoIndex,
    TInt32 &aValue
    )

    Gets the value for a TInt attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be retrived.
    aMoIndexIdentifies the media object index.
    aValueOn completion, contains the requested TInt attribute.

    Returns: None.

    GetProductDownloadedSize ( )

    TInt GetProductDownloadedSize()

    Get Downloaded Size of product.

    Returns: TInt.

    GetStringAttribute ( const TUint, TDes16 & )

    IMPORT_C TIntGetStringAttribute(const TUintaAttribute,
    TDes16 &aValue
    )

    Gets the value for a TDes16 attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be retrived.
    aValueOn completion, contains the requested TDes16 attribute.

    Returns: None.

    GetStringAttribute ( const TUint, TDes8 & )

    IMPORT_C TIntGetStringAttribute(const TUintaAttribute,
    TDes8 &aValue
    )

    Gets the value for a TDes8 attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be retrived.
    aValueOn completion, contains the requested TDes8 attribute.

    Returns: None.

    GetStringAttribute ( const TUint, const TInt32 &, TDes16 & )

    IMPORT_C TIntGetStringAttribute(const TUintaAttribute,
    const TInt32 &aMoIndex,
    TDes16 &aValue
    )

    Gets the value for a TDes16 attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be retrived.
    aMoIndexIdentifies the media object index.
    aValueOn completion, contains the requested TDes16 attribute.

    Returns: None.

    GetStringAttribute ( const TUint, const TInt32 &, TDes8 & )

    IMPORT_C TIntGetStringAttribute(const TUintaAttribute,
    const TInt32 &aMoIndex,
    TDes8 &aValue
    )

    Gets the value for a TDes8 attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be retrived.
    aMoIndexIdentifies the media object index.
    aValueOn completion, contains the requested TDes8 attribute.

    Returns: None.

    IsClosed ( )

    TBool IsClosed()[inline]

    Indicates whether the download is closed.

    Returns: TBool - ETrue if download is closed else EFalse.

    Move ( )

    IMPORT_C TIntMove()

    Moves downloaded content to the previously specified location

    Returns: None.

    Pause ( )

    IMPORT_C TIntPause()

    Pauses downloading.

    Returns: None.

    Reset ( )

    IMPORT_C TIntReset()

    Resets downloading.

    Returns: None.

    ResumeCodDownloadL ( )

    voidResumeCodDownloadL()

    Resume COD download.

    Returns: None.

    SetBoolAttribute ( const TUint, TBool )

    IMPORT_C TIntSetBoolAttribute(const TUintaAttribute,
    TBoolaValue
    )

    Sets the value for a TDesC attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be set.
    aValueThe value to be set.

    Returns: None.

    SetDownloadDataAttribute ( const TDesC8 & )

    IMPORT_C TIntSetDownloadDataAttribute(const TDesC8 &aValue)

    Sets the download data (media information).

    ParameterDescription
    aValueThe value to be set.

    Returns: None.

    SetFileHandleAttribute ( RFile & )

    IMPORT_C TIntSetFileHandleAttribute(RFile &aFile)

    Sets the download's destination file handle.

    ParameterDescription
    aFileRFile to be transfered to server.

    Returns: KErrNotSupported on non-support platform. KErrBadHandle is file is not opened.

    SetIntAttribute ( const TUint, TInt32 )

    IMPORT_C TIntSetIntAttribute(const TUintaAttribute,
    TInt32aValue
    )

    Sets the value for a TInt attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be set.
    aValueThe value to be set.

    Returns: None.

    SetStringAttribute ( const TUint, const TDesC16 & )

    IMPORT_C TIntSetStringAttribute(const TUintaAttribute,
    const TDesC16 &aValue
    )

    Sets the value for a TDesC attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be set.
    aValueThe value to be set.

    Returns: None.

    SetStringAttribute ( const TUint, const TDesC8 & )

    IMPORT_C TIntSetStringAttribute(const TUintaAttribute,
    const TDesC8 &aValue
    )

    Sets the value for a TDesC8 attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be set.
    aValueThe value to be set.

    Returns: None.

    SetStringAttribute ( const TUint, const TInt32 &, const TDesC16 & )

    IMPORT_C TIntSetStringAttribute(const TUintaAttribute,
    const TInt32 &aMoIndex,
    const TDesC16 &aValue
    )

    Sets the value for a TDesC attribute.

    ParameterDescription
    aAttributeIdentifies the attribute to be set.
    aMoIndexIdentifies the media object index.
    aValueThe value to be set.

    Returns: None.

    SetTrackDataAttribute ( const TInt, const TDesC8 & )

    IMPORT_C TIntSetTrackDataAttribute(const TIntaIndex,
    const TDesC8 &aValue
    )

    Sets the download data (media information).

    ParameterDescription
    aValueThe value to be set.

    Returns: None.

    Start ( )

    IMPORT_C TIntStart()

    Starts downloading.

    Returns: None.