RHttpDownloadMgr Class Reference

#include <mw/downloadmgrclient.h>

class RHttpDownloadMgr : public RSessionBase

Inherits from

  • RHttpDownloadMgr
    Public Member Functions
    RHttpDownloadMgr()
    IMPORT_C voidAddObserverL(MHttpDownloadMgrObserver &)
    IMPORT_C voidClose()
    IMPORT_C voidConnectL(TUid, MHttpDownloadMgrObserver &, TBool)
    IMPORT_C RHttpDownload &CreateClientSideDownloadL(TInt, TBool &)
    IMPORT_C RHttpDownload &CreateCodDownloadL(const TDesC8 &, const TDesC8 &, const TDesC8 &, CEikonEnv *, TBool &)
    IMPORT_C RHttpDownload &CreateDownloadL(const TDesC8 &, TBool &)
    IMPORT_C RHttpDownload &CreateDownloadL(const TDesC8 &)
    IMPORT_C const CDownloadArray &CurrentDownloads()
    IMPORT_C TIntDeleteAll()
    IMPORT_C TIntDisconnect()
    IMPORT_C RHttpDownload *FindDownload(const TDesC8 &, const TDesC8 &)
    IMPORT_C TIntGetBoolAttribute(const TUint, TBool &)
    IMPORT_C TIntGetIntAttribute(const TUint, TInt32 &)
    IMPORT_C TIntGetStringAttribute(const TUint, TDes16 &)
    IMPORT_C TIntGetStringAttribute(const TUint, TDes8 &)
    TBool IsNewDownloadPossible()
    IMPORT_C TIntPauseAll()
    IMPORT_C voidRemoveObserver(MHttpDownloadMgrObserver &)
    IMPORT_C TIntResetAll()
    IMPORT_C TIntSetBoolAttribute(const TUint, TBool)
    IMPORT_C TIntSetDefaultBoolAttribute(const TUint, TBool)
    IMPORT_C TIntSetDefaultIntAttribute(const TUint, TInt32)
    IMPORT_C TIntSetDefaultStringAttribute(const TUint, const TDesC16 &)
    IMPORT_C TIntSetDefaultStringAttribute(const TUint, const TDesC8 &)
    IMPORT_C TIntSetIntAttribute(const TUint, TInt32)
    IMPORT_C voidSetNextUriObserver(MHttpDownloadMgrNextUriObserver *)
    IMPORT_C TIntSetStringAttribute(const TUint, const TDesC16 &)
    IMPORT_C TIntSetStringAttribute(const TUint, const TDesC8 &)
    IMPORT_C TIntStartAll()
    IMPORT_C TVersionVersion()
    Protected Member Functions
    RHttpDownload &AddToArrayL(RHttpDownload *)
    voidHandleDMgrEventL(RHttpDownload &, THttpDownloadEvent)
    Inherited Attributes
    RHandleBase::iHandle
    Inherited Enumerations
    RHandleBase:TAttributes
    RSessionBase:TAttachMode
    Inherited Functions
    RHandleBase::Attributes()const
    RHandleBase::BTraceId()const
    RHandleBase::DoExtendedClose()
    RHandleBase::Duplicate(const RThread &,TOwnerType)
    RHandleBase::FullName()const
    RHandleBase::FullName(TDes &)const
    RHandleBase::Handle()const
    RHandleBase::HandleInfo(THandleInfo *)
    RHandleBase::Name()const
    RHandleBase::NotifyDestruction(TRequestStatus &)
    RHandleBase::Open(const TFindHandleBase &,TOwnerType)
    RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
    RHandleBase::RHandleBase()
    RHandleBase::RHandleBase(TInt)
    RHandleBase::SetHandle(TInt)
    RHandleBase::SetHandleNC(TInt)
    RSessionBase::CreateSession(RServer2,const TVersion &)
    RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
    RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
    RSessionBase::CreateSession(const TDesC &,const TVersion &)
    RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
    RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
    RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
    RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
    RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
    RSessionBase::Open(TInt,TOwnerType)
    RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
    RSessionBase::Send(TInt)const
    RSessionBase::Send(TInt,const TIpcArgs &)const
    RSessionBase::SendReceive(TInt)const
    RSessionBase::SendReceive(TInt,TRequestStatus &)const
    RSessionBase::SendReceive(TInt,const TIpcArgs &)const
    RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
    RSessionBase::SetReturnedHandle(TInt)
    RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
    RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
    RSessionBase::ShareAuto()
    RSessionBase::ShareProtected()

    Detailed Description

    Creates a download manager session and performs operations on it

    Since
    Series 60 2.8

    Constructor & Destructor Documentation

    RHttpDownloadMgr ( )

    IMPORT_CRHttpDownloadMgr()

    C++ default constructor.

    Member Function Documentation

    AddObserverL ( MHttpDownloadMgrObserver & )

    IMPORT_C voidAddObserverL(MHttpDownloadMgrObserver &aObserver)

    Adds client to the observer list.

    ParameterDescription
    aObserverObserver.

    Returns: None.

    AddToArrayL ( RHttpDownload * )

    RHttpDownload &AddToArrayL(RHttpDownload *aElement)[protected]

    Adds the created download to the list. If it is already added, then it will do nothing.

    ParameterDescription
    aElementDownload subsession.

    Returns: RHttpDownload& reference to the added item in the list.

    Close ( )

    IMPORT_C voidClose()

    Reimplemented from RHandleBase::Close()

    Closes download manager session.

    Returns: None.

    ConnectL ( TUid, MHttpDownloadMgrObserver &, TBool )

    IMPORT_C voidConnectL(TUidaAppUid,
    MHttpDownloadMgrObserver &aObserver,
    TBoolaMaster
    )

    Creates a download manager session.

    ParameterDescription
    aAppUidClient application's UID.
    aObserverObserver
    aMasterIndicates whether (if ETrue) this instance inherints all downloads of other instances. (stand-alone app flag).

    Returns: None.

    CreateClientSideDownloadL ( TInt, TBool & )

    IMPORT_C RHttpDownload &CreateClientSideDownloadL(TIntaHttpTransaction,
    TBool &aResult
    )

    Creates a new download in client side.

    ParameterDescription
    aHttpTransactionhttp transaction.
    aResultThe result is true if the download is created. If the URL is already being downloaded the seult is false.

    CreateCodDownloadL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, CEikonEnv *, TBool & )

    IMPORT_C RHttpDownload &CreateCodDownloadL(const TDesC8 &aUrl,
    const TDesC8 &aBuf,
    const TDesC8 &aMimeType,
    CEikonEnv *aEikEnv,
    TBool &aResult
    )

    Creates a new download subsession for COD.

    ParameterDescription
    aUrlThe url from the COD is downloaded.
    aBufThe COD descriptor.
    aMimeTypeThe mimetype.
    aEikEnvEikon environment or NULL. Can be NULL if download does not require UI functionality.
    aResultThe result is true if the download is created. If the URL is already being downloaded the seult is false.

    Returns: RHttpDownload&

    CreateDownloadL ( const TDesC8 &, TBool & )

    IMPORT_C RHttpDownload &CreateDownloadL(const TDesC8 &aUrl,
    TBool &aResult
    )

    Creates a new download subsession.

    ParameterDescription
    aUrlThe url to be downloaded.
    aResultThe result is true if the download is created. If the URL is already being downloaded the seult is false.

    Returns: RHttpDownload&

    CreateDownloadL ( const TDesC8 & )

    IMPORT_C RHttpDownload &CreateDownloadL(const TDesC8 &aUrl)

    Creates a new download subsession. It creates a new one even if the URL is already beeing downloaded.

    ParameterDescription
    aUrlThe url to be downloaded. If the URL is already being downloaded the seult is false.

    Returns: RHttpDownload&

    CurrentDownloads ( )

    IMPORT_C const CDownloadArray &CurrentDownloads()const

    Returns a list of the current downloads.

    Returns: CDownloadArray

    DeleteAll ( )

    IMPORT_C TIntDeleteAll()

    Deletes all downloads.

    Returns: None.

    Disconnect ( )

    IMPORT_C TIntDisconnect()

    Disconnect the http connection and pauses all downloads.

    Returns: None.

    FindDownload ( const TDesC8 &, const TDesC8 & )

    IMPORT_C RHttpDownload *FindDownload(const TDesC8 &aUrl,
    const TDesC8 &aMsgBody
    )
    Finds if the download is already created
    Since
    2.8
    ParameterDescription
    aUrlgiven URL
    aMsgBodyMessage body from post operation

    Returns: Returns a pointer to the found download or null. This pointer is NOT owned by the client!

    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.

    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.

    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.

    HandleDMgrEventL ( RHttpDownload &, THttpDownloadEvent )

    voidHandleDMgrEventL(RHttpDownload &aDownload,
    THttpDownloadEventaEvent
    )[protected]

    Indicates an event.

    ParameterDescription
    aDownloadThe download with which the event occured.
    aEventEvent type.

    Returns: None.

    IsNewDownloadPossible ( )

    TBool IsNewDownloadPossible()

    Checks for possibility of a new donload

    Returns: TBool,possibility of a new download.

    PauseAll ( )

    IMPORT_C TIntPauseAll()

    Pauses all downloads.

    Returns: None.

    RemoveObserver ( MHttpDownloadMgrObserver & )

    IMPORT_C voidRemoveObserver(MHttpDownloadMgrObserver &aObserver)

    Removes client from the observer list.

    ParameterDescription
    aObserverObserver.

    Returns: None.

    ResetAll ( )

    IMPORT_C TIntResetAll()

    Resets all downloads.

    Returns: None.

    SetBoolAttribute ( const TUint, TBool )

    IMPORT_C TIntSetBoolAttribute(const TUintaAttribute,
    TBoolaValue
    )

    Sets the value for a TBool attribute.

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

    Returns: None.

    SetDefaultBoolAttribute ( const TUint, TBool )

    IMPORT_C TIntSetDefaultBoolAttribute(const TUintaAttribute,
    TBoolaValue
    )

    Sets the value for the default TBool attribute.

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

    Returns: None.

    SetDefaultIntAttribute ( const TUint, TInt32 )

    IMPORT_C TIntSetDefaultIntAttribute(const TUintaAttribute,
    TInt32aValue
    )

    Sets the value for the default TInt attribute.

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

    Returns: None.

    SetDefaultStringAttribute ( const TUint, const TDesC16 & )

    IMPORT_C TIntSetDefaultStringAttribute(const TUintaAttribute,
    const TDesC16 &aValue
    )

    Sets the value for the default TDesC attribute.

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

    Returns: None.

    SetDefaultStringAttribute ( const TUint, const TDesC8 & )

    IMPORT_C TIntSetDefaultStringAttribute(const TUintaAttribute,
    const TDesC8 &aValue
    )

    Sets the value for the default TDesC8 attribute.

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

    Returns: None.

    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.

    SetNextUriObserver ( MHttpDownloadMgrNextUriObserver * )

    IMPORT_C voidSetNextUriObserver(MHttpDownloadMgrNextUriObserver *aObserver)

    Set next uri observer.

    ParameterDescription
    aObserverObserver.

    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.

    StartAll ( )

    IMPORT_C TIntStartAll()

    Resumes all downloads.

    Returns: None.

    Version ( )

    IMPORT_C TVersionVersion()const

    Gives version information.

    Returns: TVersion Contains version information.