[webkit-qt] decidePolicyForNavigationAction QML API

Caio Marcelo de Oliveira Filho caio.oliveira at openbossa.org
Thu Oct 13 11:48:09 PDT 2011


On Thu, Oct 13, 2011 at 3:40 PM,  <simon.hausmann at nokia.com> wrote:
> I think you need only two, no?
>
> request.accepted = true
>
> or
>
> request.accepted = false
>
> and
>
> request.download = true
> (which could imply accepted = false)

This is confusing... I think using three functions for the three
possible answers is better.

If this is async, the request can outlive the function that handles
the signal, this is not the case for mouse.accepted, it needs to be
decided before the event handler function returns.

If you want to avoid functions, an enumeration is better than two booleans.


Cheers,

-- 
Caio Marcelo de Oliveira Filho
OpenBossa - INdT


More information about the webkit-qt mailing list