×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    6

    Unhappy how to use the download manager in brctlinterface

    I have developed a browser using BlCtlInterface. Now I want it to download a file using download manager. So I change my code like this:
    iBrCtlInterface = CreateBrowserControlL( this,
    rect,
    TBrCtlDefs::ECapabilityDisplayScrollBar | TBrCtlDefs::ECapabilityLoadHttpFw |
    TBrCtlDefs::ECapabilityGraphicalHistory | TBrCtlDefs::ECapabilityGraphicalPage|TBrCtlDefs::ECapabilityConfirmDownloads|
    TBrCtlDefs::ECapabilityUseDlMgr
    ,
    TBrCtlDefs::ECommandIdBase,
    iBbSoftkeysObserver,
    iBbLinkResolver,
    iBbSpecialLoadObserver,
    iBbLayoutObserver,
    iBbDialogProvider);
    But I can't download any file. Do I need to write my own download manager? Or is there any other requirements to use the download manager the interface provides?
    And when the server asks the host application to download a file, how does it tell the client(the browser)?

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: how to use the download manager in brctlinterface

    I think this is probably what you want to use:
    You can pass commands to the browser HandleDownloadCommandL
    You could of course implement your own through MBrCtlDownloadObserver though its probably not recommended
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    6

    Unhappy Re: how to use the download manager in brctlinterface

    Quote Originally Posted by Paul.Todd View Post
    I think this is probably what you want to use:
    You can pass commands to the browser HandleDownloadCommandL
    You could of course implement your own through MBrCtlDownloadObserver though its probably not recommended
    Thank you for your explanation. But the most serious problem for me is that I can't download any file!! When I clicke a link to a file, my browser does nothing at all. If I just want to download a file into a given place and do not want any other operation, should I write some other functions? I have use the HandleDownloadCommandL function.

  4. #4
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: how to use the download manager in brctlinterface

    It could be something to do with the fact you are supplying a iBbLinkResolver so the framework might be expecting you to handle url download resolution yourself.

    You could of course look in HttpDownloadObserver.cpp in the webkit code to see how Nokia implemented it.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

Similar Threads

  1. wap site video download cannot be completed
    By erikwi in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2007-08-25, 19:24
  2. Download Manager UI
    By myohol in forum Symbian
    Replies: 4
    Last Post: 2007-06-25, 11:23
  3. Download Manager API
    By jarruots in forum Symbian
    Replies: 1
    Last Post: 2006-11-06, 04:45
  4. OMA download question
    By josefeg in forum Digital Rights Management & Content Downloading
    Replies: 2
    Last Post: 2006-10-12, 12:45
  5. Download failed
    By agouraud in forum Digital Rights Management & Content Downloading
    Replies: 2
    Last Post: 2004-05-13, 05:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×